Authentication API

Generate access tokens that authorize API calls.

API Inputs

Request Inputs

The token request has one input, a header. It has no query parameters and no body.

Authorization

AttributeValue
TypeHeader
Data Typestring
Possible ValuesBasic {Base64-encoded username:password}
ExampleBasic dXNlcm5hbWU6cGFzc3dvcmQ=

Specifies your credentials, as a Base64-encoded username:password string with the Basic scheme. Required. Encode the username and password as one string, with the colon between them.

Response Fields

These fields are returned by a successful token request.

access_token

AttributeValue
TypeResponse Payload
Data Typestring
Possible ValuesA signed JSON Web Token
ExampleeyJhbGciOiJ...

The token to use as a Bearer token in the Authorization header of requests to the other APIs.

expires_in

AttributeValue
TypeResponse Payload
Data Typeinteger
Possible ValuesThe number of seconds until the token expires
Example3599

The number of seconds until the token expires. After expiry, request a new token.

token_type

AttributeValue
TypeResponse Payload
Data Typestring
Possible ValuesBearer
ExampleBearer

The token type. The value is always Bearer.

Error Fields

These fields are returned when the request fails.

error_message

AttributeValue
TypeResponse Payload
Data Typestring
Possible ValuesA description of the error
ExampleIncorrect username or password

A human-readable description of the error.