auth

Obtain Access Token

Authentication provides an access token in the response that is required for making requests to the API. Access tokens are active for 1-hour, you should request a new token before the current token expires. The access token provided in the response must be supplied in the standard HTTP Authorization header as Bearer token authentication to make requests to the API.

post/auth/token

Request

Request body

grant_typestring
client_idstring
client_secretstring

Response

Successful Response

access_tokenstring
token_typestring
expires_ininteger
scopestring
created_atinteger
idinteger
namestring
emailstring
gravatarstring
scopesstring[]

Example response

{
  "access_token": "EXAMPLE_ACCESS_TOKEN",
  "token_type": "Bearer",
  "expires_in": 3599,
  "scope": "authorized",
  "created_at": 1686949418,
  "id": 1,
  "name": "John Doe",
  "email": "user@example.com",
  "gravatar": "https://www.gravatar.com/avatar/3b0e9a78b5621fce924f7ce107180970371cf75f565dfaa5e4babe2e4866422a?d=mp",
  "scopes": [
    "authorized",
    "owner"
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.