Skip to main content
POST
/
v1
/
oauth2
/
token
Auth Token
curl --request POST \
  --url https://api.volteras.com/v1/oauth2/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>' \
  --data 'refresh_token=<string>' \
  --data 'grant_type=<string>'
{
  "access_token": "<string>",
  "token_type": "<string>",
  "expires_in": 123,
  "refresh_token": "<string>"
}

Body

application/x-www-form-urlencoded
client_id
string | null

Your client ID.

client_secret
string | null

Your client secret.

refresh_token
string | null

The refresh token acquired during authentication with the client_credentials grant_type.

grant_type
string

OAuth 2.0 grant type.

Response

200 - application/json

Successful Response

Schema of the APIAccessToken, returned by the authentication or refresh token

access_token
string
required

The access token used for authenticated requests.

token_type
string
required

Type of the token.

expires_in
integer
required

Integer with the seconds that the access token will be expired in.

refresh_token
string
required

The token used to refresh the authentication and retrieve a new access token.