Authentication

OAuth2 authentication endpoints for obtaining and refreshing access tokens

Get access token using client credentials

post

Authenticate using your OAuth2 client credentials to obtain an organization-level access token.

Authorizations
AuthorizationstringRequired

HTTP Basic authentication using OAuth2 client credentials (base64-encoded client_id:client_secret)

Responses
chevron-right
200

Access token issued successfully

application/json

OAuth2 access token response

access_tokenstringRequired

Access token for authenticating API requests. Use as Bearer token in the Authorization header.

Example: ct6Q2h1OiDHJaePbBgrpCgN3xfLPc9WYnCC6tRFd
token_typestring · enumRequired

Token type

Example: BearerPossible values:
expires_ininteger · int32Required

Token expiration time in seconds.

Example: 86400
refresh_tokenstring · nullableOptional

Refresh token for obtaining new access tokens.

Example: fx8TlqzAxg5b8Ukzp46rD-FXpxrNxHKX3BZQjGhG
post
/oauth2/token?grant_type=client_credentials

Get access token using user credentials

post

Authenticate using OAuth2 client credentials along with the user's email and password to obtain a user-level access token. The user must belong to the same organization (or its child) as the OAuth2 client.

Authorizations
AuthorizationstringRequired

HTTP Basic authentication using OAuth2 client credentials (base64-encoded client_id:client_secret)

Body
userEmailstring · emailRequired

User email address

Example: [email protected]
passwordstring · passwordRequired

User password

Example: mySecretPassword123
Responses
chevron-right
200

Access token issued successfully

application/json

OAuth2 access token response

access_tokenstringRequired

Access token for authenticating API requests. Use as Bearer token in the Authorization header.

Example: ct6Q2h1OiDHJaePbBgrpCgN3xfLPc9WYnCC6tRFd
token_typestring · enumRequired

Token type

Example: BearerPossible values:
expires_ininteger · int32Required

Token expiration time in seconds.

Example: 86400
refresh_tokenstring · nullableOptional

Refresh token for obtaining new access tokens.

Example: fx8TlqzAxg5b8Ukzp46rD-FXpxrNxHKX3BZQjGhG
post
/oauth2/token?grant_type=user_credentials

Refresh an access token

post

Exchange a refresh token for a new access token. Each refresh token can only be used once — after use, the previous refresh token is invalidated and a new one is returned.

Authorizations
AuthorizationstringRequired

HTTP Basic authentication using OAuth2 client credentials (base64-encoded client_id:client_secret)

Query parameters
refresh_tokenstringRequired

The refresh token obtained from a previous token response

Responses
chevron-right
200

Access token refreshed successfully

application/json

OAuth2 access token response

access_tokenstringRequired

Access token for authenticating API requests. Use as Bearer token in the Authorization header.

Example: ct6Q2h1OiDHJaePbBgrpCgN3xfLPc9WYnCC6tRFd
token_typestring · enumRequired

Token type

Example: BearerPossible values:
expires_ininteger · int32Required

Token expiration time in seconds.

Example: 86400
refresh_tokenstring · nullableOptional

Refresh token for obtaining new access tokens.

Example: fx8TlqzAxg5b8Ukzp46rD-FXpxrNxHKX3BZQjGhG
post
/oauth2/token?grant_type=refresh_token

Last updated

Was this helpful?