Skip to main content
POST
Get tokens

Authorizations

Authorization
string
header
required

Your application's client_id as the user name and client_secret as the password.

Body

application/x-www-form-urlencoded
grant_type
enum<string>
required
Available options:
authorization_code
code
string
required

The code Vega sent to your redirect URI. Valid for five minutes, once.

code_verifier
string
required

The verifier behind the code_challenge of the authorization request.

redirect_uri
string
required

The redirect_uri of the authorization request.

client_id
string

Only without HTTP Basic.

client_secret
string

Only without HTTP Basic.

Response

The tokens.

access_token
string
required
token_type
enum<string>
required
Available options:
Bearer
expires_in
integer
required

Seconds until the access token expires.

refresh_token
string
required

Replaces the refresh token you hold. Store it before using it.

scope
string
required

The granted scopes, separated by spaces.