Today the API that accepts tokens is the API trigger of flows: a
token with Start flow runs through the API starts a published flow.
Who can manage tokens
The screen needs the Manage API tokens permission. Administrators have it; to give it to a custom role, see Roles and permissions. It is marked sensitive: a token reaches the whole workspace and outlives its issuer. The platform support user, which an operator signs in as during a support visit, cannot open this screen and cannot issue, rotate or revoke a token.Issuing a token
Choose New token, name it, choose its permissions and an expiry in days.- Permissions. You can give a token only permissions you hold yourself. If you are not an administrator, you can give only the permissions that apply to the whole workspace, such as Manage settings or View the activity log. A permission that is limited to the assistants you are assigned to cannot be given to a token, because a token is not limited that way.
- Never given to a token. Manage API tokens, Manage roles, Manage users and the operator screens cannot be given to a token, whoever issues it.
- Expiry. Every token expires. The default is 90 days and the longest is 365 days; both are platform settings.
Using a token
A token is sent in theAuthorization header:
429.
The list
Each row shows the token’s name, the last four characters of its secret (…abcd), its
permissions, who issued it, when it expires, when it was last used and its status:
Active, Expired or Revoked. A permission marked sensitive is highlighted. The
issuer is shown as no longer having access when that person was deactivated, and as a
deleted user when the account is gone; the token keeps working either way.
Rotating a token
Rotate a token before it expires, or when you suspect its secret has been seen. Rotation issues a new token with the same name and shows it once, and it shortens the old token’s life: the old one keeps working for 24 hours (a platform setting) so the integration can switch over, and then stops. A rotation can keep the token’s permissions or drop some of them, but it never adds one, and you cannot give the new token anything you do not hold yourself. An expired or revoked token cannot be rotated; issue a new one instead. Fourteen days before a token expires, the workspace’s administrators are notified.Revoking a token
Revoking is immediate: the token is refused on its next request. A revoked token stays in the list for the record. The platform operator can also revoke a leaked token, when it is reported to them with the token itself; the operator can only revoke, never issue, rotate or read a token.In the activity log
Issuing, rotating and revoking are written to the Activity log with the token’s name and last four characters, never its secret. What an integration does through a token is recorded as API token with the labelAPI · <token name>, so
you can tell it from what a person did.