Appearance
Authentication
This page demonstrates how you authenticate your application against Depot to be able to make requests to the system.
Get Access Token
URL
POST - https://auth-depot.feeditback.com/5e753c81-b132-4843-8658-dae2e57cf388/oauth2/v2.0/token
Request
This is an example request showing what data will be required to be sent
json
{
"grant_type": "client_credentials",
"scope": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/.default",
"client_secret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"client_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx"
}Details
All of these details (except grant_type) should be provided to you by your contact at Depot.
Response
json
{
"token_type": "Bearer",
"expires_in": 3599,
"ext_expires_in": 3599,
"access_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}expires_in - This value is when your token expires by, this should be used as the source of truth. ext_expires_in - incase there is an outage then this will be updated to reflect the true time of expires.
- Please ignore the ext_expires_in value and just go by the expires_in.
Attach the returned access token to all requests to Depot as a Authorization header with 'Bearer ' prefixed before. Depending upon your access levels this access_token will give you access to the endpoints you have access.