v1

latestSwagger 2.02026-07-1362109210.4 KB
oauth

Create an oauth token

Create an OAuth 2.0 Bearer token. A valid bearer token is required for all other API requests.

Be sure to set the header Content-Type: "application/vnd.api+json". Otherwise, you will get an error 403 Forbidden. Using Content-Type: "application/json" is permitted (to support older oauth clients) but when using application/json the body should have a body in the following format instead of nesting under data.attributes:

{
  "grant_type": "client_credentials",
  "client_id": "95c78ab2-167f-40b8-8bec-8398d4b87454",
  "client_secret": "35d18dc9-a3dd-4948-b787-063a490b9354"
}
post/oauth/token

Query parameters

include'groups' | 'organization'

List of related resources to include in the response

Request body

Example request

{
  "data": {
    "type": "oauth/token",
    "attributes": {
      "grant_type": "client_credentials",
      "client_id": "95c78ab2-167f-40b8-8bec-8398d4b87454",
      "client_secret": "35d18dc9-a3dd-4948-b787-063a490b9354"
    }
  }
}

Response

Created