Tokens
Long-lived credentials for publishing from a script, a CI job or an agent. A token is shown once when it is created and is recoverable nowhere afterwards, so what is listed here is a name and a prefix rather than a secret.
Lists the account's access tokens, including revoked ones.
Lists the account's access tokens, including revoked ones. › Responses
OK
What colleagues hold on the same account, and only what an owner is entitled to know about them. Empty for a member, and empty for an owner whose colleagues have none.
A separate list rather than the same rows with fields blanked out, because a row that is sometimes missing its prefix is a row whose type is a lie — and the screen showing it has to branch on something either way.
The caller's own tokens on this account, newest first, including revoked ones.
Issues an access token and returns its plaintext, which is not recoverable later.
Issues an access token and returns its plaintext, which is not recoverable later. › Request Body
expiresInDays^-?(?:0|[1-9]\d*)$ · requiredHow long it should last, or null for a token that never expires on its own.
nameWhat to call the token, so its owner can tell it from their others.
Issues an access token and returns its plaintext, which is not recoverable later. › Responses
Created
createdAtWhen it was issued.
expiresAtWhen it stops working on its own, or null.
idULID of the new token.
nameThe name it was given.
prefixIts first characters, which is what every later listing shows.
tokenThe plaintext. Returned exactly once and recoverable nowhere.
Revokes an access token. Idempotent: revoking a revoked token succeeds.
path Parameters
tokenIdRevokes an access token. Idempotent: revoking a revoked token succeeds. › Responses
OK
idULID of the token that no longer works.
revokedAtWhen it stopped working, which is unchanged if it already had.