Description:
How can I get a new API access token, as the one I'm using has expired?
Answer:
For security reasons, access tokens have a limited lifespan and require renewal when they expire.
To create a new access token for Degreed's API, follow these steps:
1. Endpoint: Make a POST request to the endpoint https://degreed.com/oauth/token.
Use the following OAuth Base URLs when requesting an access token:
degreed.com Domain
| Data Center | Environment | API Base URL |
|---|---|---|
| US | Betatest | https://betatest.degreed.com/oauth/token |
| US | Production | https://degreed.com/oauth/token |
| EU | Betatest | https://eu.betatest.degreed.com/oauth/token |
| EU | Production | https://eu.degreed.com/oauth/token |
| CA | Betatest | https://ca.betatest.degreed.com/oauth/token |
| CA | Production | https://ca.degreed.com/oauth/token |
degreed.app Domain
| Data Center | Environment | API Base URL |
|---|---|---|
| US | Betatest | https://<your-organization>.beta.degreed.app/oauth/token |
| US | Production | https://<your-organization>.degreed.app/oauth/token |
| EU | Betatest | https://<your-organization>.beta.degreed.app/oauth/token |
| EU | Production | https://<your-organization>.degreed.app/oauth/token |
| CA | Betatest | https://<your-organization>.beta.degreed.app/oauth/token |
| CA | Production | https://<your-organization>.degreed.app/oauth/token |
Use the following parameters in your request:
2. Body Parameters:
grant_type: Specify the type of grant. Usually "client_credentials".
client_id: Your client ID.
client_secret: Your client secret.
scope: Specify the scope of access needed.
3. Response: On success, the API returns a JSON object containing the access_token, token_type, expires_in, and other details.
Additional Notes:
For more details, check the full Degreed API documentation.