Dash0 acquires Polar Signals

OAuth 2.0

OAuth 2.0 Token Endpoint

post/oauth/token

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).

bash
Sample request
12
curl --request POST 'https://api.eu-west-1.aws.dash0.com/oauth/token' \
--data-urlencode 'grant_type=authorization_code'

Request body required

object
OAuthGrantTyperequired
  • authorization_code: The standard authorization code grant (RFC 6749 section 4.1).
  • refresh_token: Exchange a refresh token for new tokens (RFC 6749 section 6).
"authorization_code""refresh_token"
string

The authorization code (required for authorization_code grant).

string

Must match the redirect_uri used in the authorization request (required for authorization_code grant).

string

The client identifier.

string

PKCE code verifier (required for authorization_code grant). All public clients must use PKCE (RFC 7636).

string

The refresh token (required for refresh_token grant).

string

Space-separated list of requested scopes. For refresh_token grant, must be equal to or a subset of the originally granted scopes.

Responses

Tokens issued successfully.

stringrequired

The access token issued by the authorization server.

stringrequired

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

integerrequired

Lifetime of the access token in seconds.

string

The refresh token for obtaining new access tokens.

string

Space-separated list of granted scopes.

DatasetRestriction
"restricted""unrestricted"
string[]