Quick reference — OAuth client credentials grant

This Quick Reference assumes you're familiar with the concepts covered in the topic The client credentials grant flow.

The client credentials grant request generates an Application access token. The request requires the following values:

  • The Base64-encoded OAuth credentials
  • The RuName value that eBay assigns to your application
  • The OAuth scope(s) required for access to the REST interfaces you plan to call
Request to get an Application access token
  HTTP method:   POST
  URL (Sandbox): https://api.sandbox.ebay.com/identity/v1/oauth2/token

  HTTP headers:
    Content-Type = application/x-www-form-urlencoded
    Authorization = Basic <B64-encoded-oauth-credentials>

  Request body (wrapped for readability):
    grant_type=client_credentials
    redirect_uri=<RuName-value>
    scope=https://api.ebay.com/oauth/api_scope
Response with an Application access token
  {
    "access_token":"v^1.1#i^1#p^1#r^0#I^3#f^0#t^H4s ... wu67e3xAhskz4DAAA",
    "expires_in":7200,
    "refresh_token":"N/A",
    "token_type":"Application Access Token"
  }