OAuth 2.0

OAuth 2.0 Token Endpoint

Token endpoint (RFC 6749 section 3.2). Exchanges an authorization code for access and refresh tokens (authorization_code grant), or exchanges a refresh token for new tokens (refresh_token grant).

post/oauth/token

Request

  • Base URL: https://api.eu-west-1.aws.dash0.com
  • URL: https://api.eu-west-1.aws.dash0.com/oauth/token
  • Auth: none declared

Response

Tokens issued successfully.

access_tokenstring required

The access token issued by the authorization server.

token_typestring required

The type of token issued (always "Bearer").

expires_ininteger required

Lifetime of the access token in seconds.

refresh_tokenstring

The refresh token for obtaining new access tokens.

scopestring

Space-separated list of granted scopes.

dataset_restriction'restricted' | 'unrestricted'
datasetsstring[]

Example response

{
  "token_type": "Bearer"
}

Changes

No recorded changes to this operation across all 1 revision of this API.