curl https://api.thanxsandbox.com/partner/scopes \
-H 'X-ClientId: ${client_id}' \
-H 'Accept-Version: v4.0' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${access_token}' \
{
"scopes": [
"subscribers.write"
]
}
Metadata
Get Scopes
Returns API scopes accessible to the current credentials
GET
/
partner
/
scopes
curl https://api.thanxsandbox.com/partner/scopes \
-H 'X-ClientId: ${client_id}' \
-H 'Accept-Version: v4.0' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${access_token}' \
{
"scopes": [
"subscribers.write"
]
}
This endpoint can be used to list out the scopes the API credentials currently
has access to.
curl https://api.thanxsandbox.com/partner/scopes \
-H 'X-ClientId: ${client_id}' \
-H 'Accept-Version: v4.0' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${access_token}' \
Response
array(string)
Scope granted to API credential being used
{
"scopes": [
"subscribers.write"
]
}