Skip to navigation

List API tokens

Beta

Lists your organization’s tokens and your own personal tokens, newest first, without their secret values. Use the filters to find tokens that need attention, such as stale, expiring or orphaned ones.

Token scopes: tokens:read

Beta: this version requires the X-Beta: true request header and its contract may change before it is promoted to stable. It is scheduled to become stable on 2027-02-03.

Authentication

AuthorizationBearer

Authentication

The Deel API uses bearer tokens to authenticate requests. All API calls must be made over HTTPS — calls over plain HTTP or without authentication will fail.

curl -X GET 'https://api.deel.training/rest/v2/contracts' \
  -H 'Authorization: Bearer YOUR-TOKEN-HERE'

Learn more about authentication

OR
AuthorizationBearer

Standard OAuth2 security scheme based on https://swagger.io/docs/specification/authentication/

Headers

X-BetaenumRequiredDefaults to true

Opts in to the beta version of this endpoint. Must be true.

Allowed values:

Query parameters

limitintegerOptional4-100
Maximum number of tokens to return in one page, newest first. Defaults to 100.
cursorstringOptional
Cursor from the previous page. A cursor carries the filters of the first page, so other filters sent with it are ignored.
token_typeenumOptional
Only return tokens of this type.
Allowed values:
signalenumOptional

Only return tokens that need attention for this reason: FULL_ACCESS holds every available scope, STALE is unused for a while, EXPIRING expires soon, ORPHANED belongs to someone who left, PERSONAL is a usable personal token, ACTIVE is any usable token, INVALIDATED was invalidated or has expired.

searchstringOptional<=100 characters

Case-insensitive match on the token label, one of its scopes, or its owner’s name or email.

owner_profile_idstringOptional
Only return tokens owned by this profile.
sortenumOptional
Sort order. Defaults to newest first.
Allowed values:

Response

A page of API tokens.
datalist of objects
The API tokens.
has_moreboolean
True when there is another page after this one.
next_cursorstring or null

Cursor for the next page; null when there are no more results.

total_countinteger or null

Tokens matching the filters across all pages; null on pages fetched with a cursor.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error