Exchange user access_token with project access_token
POST
/oauth2/tokenGet project scoped access_token by providing user access_token and project_id.
Typical scope is "profile project".
Request
Query Params
grant_type
string
required
Example:
token_exchange
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}}",
"project_id": "{{project_id}}",
"access_token": "{{user_access_token}}",
"scope": "profile project"
}
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"
}
Modified at 7 months ago