Edit in GitHubLog an issue

How to get access tokens with OAuth

All calls to the Libraries API must include an access token in the headers.

In a production integration, you can get a user's access token through an OAuth 2.0 workflow.

Optionally, we offer the OAuth 2.0 Playground as a convenience during development, so you can start making API calls before you implement OAuth in your application.

Details on both options are provided in this document.


Adobe OAuth 2.0#

You can find more infomation about Adobe OAuth 2.0 in Adobe's Authentication documentation. We also offer a basic OAuth implementation example as part of our body of sample code.

OAuth 2.0 Playground#

For a production integration, you must set up an OAuth workflow. However, during development, you may want to temporarily skip that step and just start calling the API.

Even during development, you'll need to include an access token with every API call. To simplify the process of getting your own access token, we provide the OAuth 2.0 Playground.

On the OAuth 2.0 Playground:

  1. Follow the steps on the OAuth 2.0 Playground's Authorization tab.
  2. In the "Scopes" field, enter openid,creative_sdk,profile,address,AdobeID,email,cc_files,cc_libraries

On the Adobe Developer Console:

  1. Find and select your project.
  2. Modify or create an OAuth Web credential with the URI indicated on the OAuth 2.0 Playground page.

Back on the OAuth 2.0 Playground:

  1. Click the "Generate Tokens" button.
  2. From the Tokens tab, all you'll need is the access token.
  3. When the access token expires, you can use the OAuth 2.0 Playground to create a new one.

What you do with your access token will depend on what your next step is. See our tutorials to learn how to start making calls quickly.

Copyright © 2021 Adobe. All rights reserved.