Create user access_token
POST
/oauth2/tokenA request to obtain an access_token for a user using username and password
exchange user access_token with project access_token
obtain an access_token from refresh_token
Request
Query Params
grant_type
string
required
Example:
password
Body Params application/json
client_id
string
required
Client ID
client_secret
string
required
Client Secret ID
project_id
string | null
optional
Project ID
access_token
string | null
optional
Access Token
scope
string
required
Default value: profile project
refresh_token
string | null
optional
Refresh Token
Example
{
"client_id": "{{client_id}}",
"client_secret": "{{client_secret}}",
"scope": "profile agency"
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
access_token
string
required
token_type
string
required
scope
array[string]
required
expire_in
integer
required
refresh_token
string
required
Example
{
"access_token": "string",
"token_type": "string",
"scope": [
"string"
],
"expire_in": 0,
"refresh_token": "string"
}
Last modified: 9 months ago