List API tokens

List information about all API tokens from an Organization. Filters on Workspace when Workspace ID is provided. When includeOnlyOrganizationTokens is true, only Organization API tokens are returned.

Path parameters

organizationIdstringRequired
The ID of the Organization to list tokens for.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

workspaceIdstringOptional
The ID of the Workspace to list API tokens for.
deploymentIdstringOptional
The ID of the Deployment to list API tokens for.
includeOnlyOrganizationTokensbooleanOptional
Whether to show only Organization API tokens.
offsetintegerOptional>=0Defaults to 0
Offset for pagination
limitintegerOptional>=0<=1000Defaults to 20
Limit for pagination
sortslist of enumsOptional

Sorting criteria, each criterion should conform to format ‘fieldName:asc’ or ‘fieldName:desc’

Response

OK
limitinteger
The limit of values in this page.
offsetinteger
The offset of values in this page.
tokenslist of objects
The list of API tokens in this page.
totalCountinteger
The total number of API tokens.

Errors