For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Tokens

List API Tokens

get

Returns a paginated list of API tokens with obfuscated token IDs.

Authorizations
Query parameters
pageintegerOptional

The page number of results

Example: 1
limitintegerOptional

The number of results to return per page

Example: 10
Responses
200

OK

application/json
totalinteger · int32OptionalExample: 25
nextPagenumber · int32 · nullableOptionalExample: 2
get/v2/api-tokens

Create a new API token

post

Creates a new API token. Returns the full token only once. Token must be saved securely by the user.

Authorizations
Body
labelstringRequired

The label of the API token.

Example: CI/CD Token
rolestring · enumRequired

The role of the API token.

Example: developerPossible values:
Responses
201

API Token created

application/json
idstringRequired

The ID of the API token.

Example: 6592008029c8c3e4dc76256c
obfuscatedTokenstringRequired

The string representing the token obfuscated

Example: tok_abcd****
tokenstringRequired

The full token string

Example: tok_abcdefghijklmnopqrstuvwxyz
accountIdstringOptional

The ID of the account.

Example: 6592008029c8c3e4dc76256c
labelstringRequired

The label of the API token.

Example: CI/CD Token
createdBystringRequired

The email of the user who created the API token.

Example: admin@enterprise.com
createdstringRequired

The date and time the API token was created.

Example: 2021-01-01T00:00:00.000Z
lastUsedstring · nullableOptional

The date and time the API token was last used.

Example: 2021-01-01T00:00:00.000Z
rolestring · enumRequired

The role of the API token.

Example: developerPossible values:
post/v2/api-tokens

Get an API token by id

get

Retrieve a specific API token’s info.

Authorizations
Path parameters
idstringRequired

The id for the API token

Example: 6592008029c8c3e4dc76256c
Responses
200

The API token

application/json
idstringRequired

The ID of the API token.

Example: 6592008029c8c3e4dc76256c
obfuscatedTokenstringRequired

The string representing the token obfuscated

Example: tok_abcd****
labelstringRequired

The label of the API token.

Example: CI/CD Token
rolestring · enumRequired

The role of the API token.

Example: developerPossible values:
lastUsedstring · nullableOptional

The date and time the API token was last used.

Example: 2021-01-01T00:00:00.000Z
createdstringRequired

The date and time the API token was last used.

Example: 2021-01-01T00:00:00.000Z
createdBystringRequired

The email of the user who created the API token.

Example: admin@enterprise.com
get/v2/api-tokens/{id}

Rekove an API token

delete

Revoke an API token.

Authorizations
Path parameters
idstringRequired

The id for the API token to revoke

Example: 6592008029c8c3e4dc76256c
Responses
204

API Token rekoved

No content

delete/v2/api-tokens/{id}

No content

Last updated