API Tokens

Create an API token

Creates an API token

post/users/{user_id}/api-tokens

Request body

namestring required

The token name.

Response

Created

idstring uuid

The ID of the token.

namestring

The token name.

mfa_on_creationboolean

Whether the user had multi-factor authentication (MFA) enabled when they created the token.

tokenstring

The token in plain text (available only when created).

created_atstring date-time

The date and time when the token was created.

updated_atstring date-time

The date and time when the token was last updated.

last_used_atstring date-time nullable

The date and time when the token was last exchanged for an access token. This will be <code>null</code> for a token which has never been used, or not used since this API property was added. <strong>Note:</strong> After an API token is used, the derived access token may continue to be used until its expiry. This also applies to SSH certificate(s) derived from the access token.

Changes

No recorded changes to this endpoint across all 1 revision of this API.