getApiTokenForDelegatingAccount
POST {{app_url}}/api/getApiTokenForDelegatingAccount
Retrieve a user’s API token of a given type, for a given user that is linked to a given account.
This can allow a central team to get API tokens for other teams, and thus take action on behalf
of those teams.
Possible values for tokenType are logRead
, logWrite
, configRead
, and configWrite
.
Request Body
{"token"=>"{{config-write-token}}", "delegatingAccount"=>"scalyr+a-non-root-account@company.com", "tokenType"=>"logRead"}
RESPONSES
status: OK
{"status":"success","token":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXE4-"}