Generate an OAuth Token

Returns an OAuth access token or a refresh token. You must pass a valid access token in the header of each API call.

For information about how to create an access token, see Generate an OAuth Token Using Your Key. For information about how to create a refresh token, see Generate an OAuth Token Using a Refresh Token.

Response Body

Name

Type

Description

Available Version

access_token

string

Access token for authorization.

1.0

expires_in

integer

Number of seconds that the token will expire from the time it was generated.

1.0

refresh_token

string

Refresh token that can be used to generate an access token. Only returned when you pass the scope=offline parameter to the endpoint.

2.0

token_type

string

Type of token returned. Always Bearer.

1.0

Language