APICurrentLast updated: November 7th 2022, @ 12:13:43 pm

PayPal REST APIs use OAuth 2.0 access tokens to authenticate requests. Your access token authorizes you to use the PayPal REST API server.

To call a REST API in your integration, you must exchange your client ID and secret for an access token. You can find your client ID and secret by logging in to the Developer Dashboard.

You can make the API call in any programming language. The following examples show you how to get your access token using cURL or Postman.


Copy the following code and modify it.

curl -v -X POST "" \
    -H "Content-Type: application/x-www-form-urlencoded" \
    -d "grant_type=client_credentials"
  1. Change CLIENT_ID to your client ID.
  2. Change CLIENT_SECRET to your secret.


In the Postman app, complete the following:

  1. Set the verb to POST.
  2. Enter as the request URL.
  3. Select the Authorization tab.
  4. From the TYPE list, select Basic Auth.
  5. In the Username field, enter your client ID.
  6. In the Password field, enter your secret.
  7. Select the Body tab.
  8. Select the x-www-form-urlencoded option.
  9. In the KEY field, enter grant_type.
  10. In the VALUE field, enter client_credentials.
  11. Select Send.

Step result

PayPal returns an access token and the number of seconds the access token is valid. When you make calls to a REST API, include the access token in the Authorization header with the designation as Bearer. Reuse the access token until it expires.

When your access token expires, call above /v1/oauth2/token again to request a new access token.

Sample response

  "scope": " openid**",
  "access_token": "A21AAFEpH4PsADK7qSS7pSRsgzfENtu-Q1ysgEDVDESseMHBYXVJYE8ovjj68elIDy8nF26AwPhfXTIeWAZHSLIsQkSYz9ifg",
  "token_type": "Bearer",
  "app_id": "APP-80W284485P519543T",
  "expires_in": 31668,
  "nonce": "2020-04-03T15:35:36ZaYZlGvEkV4yVSz8g6bAKFoGSEzuy3CQcz3ljhibkOHg"