Token
Operations related to authentication token generation
Path parameters
account_idstringRequired
Account ID - Can be found in settings > account on the platform
Query parameters
expires_ininteger · int32OptionalDefault:
Expiration time in seconds (0 for non expiration time)
0
Body
grant_typestringOptionalDefault:
OAuth2 authorization type
client_credentials
scopestringOptionalDefault:
Needed scope (space separated) or * for all scope of the parent client.
*
client_idstringOptional
Client ID
client_secretstringOptional
Client Secret
Responses
200
200
application/json
400
400
application/json
post
POST /{account_id}/token HTTP/1.1
Host: auth.flagship.io
Content-Type: application/json
Accept: */*
Content-Length: 89
{
"grant_type": "client_credentials",
"scope": "*",
"client_id": "text",
"client_secret": "text"
}
{
"access_token": "{ACCESS_TOKEN}",
"expires_in": 0,
"refresh_token": "{REFRESH_TOKEN}",
"scope": "campaign.create campaign.update campaign.toggle env:*",
"token_type": "Bearer"
}
Was this helpful?