Get Access Token
Use the client ID and client secret provided by Blameless to execute a client credential’s oAuth flow to get an access token.
HEADER
content-type: application/json
TYPE
GET
REQUIRED
No
URL
https://blamelesshq.auth0.com/oauth/token
Property | Type | Required | Description |
---|---|---|---|
Method | GET | ||
Customer | string | Yes | The slug of your organization cluster |
Path | string | Yes | /api/v1/incidents/<incidentId> |
Auth | Bearer with valid authorization token | ||
Path Parameters | integer | Yes | The incident ID |
client_id | integer | Yes | \<client ID\> Id key assigned |
client _secret | integer | Yes | \<client secret\> Key for security |
audience | string | Yes | \<customer\>.blameless.io |
grant_type | string | Yes | client_credentials client authenticaion string |
SAMPLE
{
"client_id": "\<client ID\>",
"client_secret": "\<client secret\>",
"audience": "\<customer\>.blameless.io",
"grant_type": "client_credentials"
}
Example Request
curl https://blamelesshq.auth0.com/oauth/token \\
\-X POST \\
\-H "content-type: application/json" \\
\-d
'{"client_id":"***","client_secret":"***","audience":"cruise.blameless.io","grant_type":
"client_credentials"}'
Example Response
{
"access_token": "****",
"token_type": "Bearer"
}