latestOpenAPI 3.0.12026-08-10234260964.0 KB

6cc88fde6435

API Tokens

Get an API token

Retrieves the specified API token.

get/users/{user_id}/api-tokens/{token_id}

Response

OK

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.