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 User access token with the authorization code grant flow is a two-step process where you follow a consent request with an authorization code grant request. To mint a new User access token:

Getting a new User access token with the authorization code grant flow is a two-step process where you first get consent from the eBay users to make API calls on their behalf, and then generate the User access token for each user. See the Getting user consent and Exchanging the authorization code for a User access token topics for full details on these two steps.