Get the caller identity and permissions
Returns the kind of credential, the account, and the permissions that the credential has now. For an API token, also its name, last four characters, expiry and last use.
Authentication
AuthorizationBearer
API token, for example amcld_.... Create one in the dashboard.
Response
kind
The kind of credential: api-token for an API token, legacy-api-key for an API key header pair, delegated for an app that acts as a user, first-party for the dashboard.
Allowed values:
account
The account that the credential belongs to.
permissions
The permissions that the credential has now.
user
The user, for the dashboard and for an app that acts as a user.
token
The API token, for an API token.
app
The app, for an app that acts as a user.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error