The authorization code grant flow is used to create an OAuth User access token.

OAuth client libraries

The processes in this topic describe how to manually get OAuth tokens. To help with this process, eBay offers several client libraries that you can use to quickly implement the minting of OAuth tokens in your applications:

Sequence for getting and using a User access token

The following sequence diagram outlines the authorization code grant flow, where a User access token is minted, then used in an API request:

Authorization token process flow
 Sequence diagram for generating a User access token

Getting a new access token for a user through the authorization code grant flow is a two-step process. First get consent from the eBay user to make API calls on their behalf (see Getting user consent), and then generate the User access token for each user (see Exchanging the authorization code for a User access token).