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#
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:
- Follow the steps on the OAuth 2.0 Playground's Authorization tab.
- In the "Scopes" field, enter
On the Adobe Developer Console:
- Find and select your project.
- 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:
- Click the "Generate Tokens" button.
- From the Tokens tab, all you'll need is the access token.
- 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.
The OAuth 2.0 Playground is provided as a convenience for you during development. Production integrations must support a proper OAuth 2.0 workflow.