Cloud
API Access / Reference / REST API

API Token

Postman Collection
OpenAPI
GET

Get all API tokens in an orgExperimental

Gets all user API tokens in an organization.

Request

Path parameters

orgId

string

Required

Query parameters

q

string

status

string

createdAtSearchType

string

createdAtUom

string

createdAtValue

integer

createdAtFrom

string

createdAtTo

string

createdAtRangeFrom

string

createdAtRangeTo

string

lastActiveAtSearchType

string

Responses

Returned if the request is successful.

Headers

X-RateLimit-Limit

integer

X-RateLimit-Remaining

integer

X-RateLimit-Reset

string

application/json

ApiTokenSearchResponse
GET/orgs/{orgId}/api-tokens
1 2 3 curl --request GET \ --url 'https://api.atlassian.com/admin/api-access/v1/orgs/{orgId}/api-tokens' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 { "data": [ { "id": "<string>", "label": "<string>", "status": "ALLOWED", "createdAt": "<string>", "expiresAt": "<string>", "lastActiveAt": "<string>", "user": { "id": "<string>", "orgId": "<string>", "name": "<string>", "email": "<string>" } } ], "links": { "self": "<string>", "next": "<string>", "prev": "<string>" } }
GET

Get API token count in an orgExperimental

Gets count of user API tokens in an organization.

Request

Path parameters

orgId

string

Required

Query parameters

q

string

status

string

createdAtSearchType

string

createdAtUom

string

createdAtValue

integer

createdAtFrom

string

createdAtTo

string

createdAtRangeFrom

string

createdAtRangeTo

string

lastActiveAtSearchType

string

Responses

Returned if the request is successful.

Headers

X-RateLimit-Limit

integer

X-RateLimit-Remaining

integer

X-RateLimit-Reset

string

application/json

integer

GET/orgs/{orgId}/api-tokens/count
1 2 3 curl --request GET \ --url 'https://api.atlassian.com/admin/api-access/v1/orgs/{orgId}/api-tokens/count' \ --header 'Accept: application/json'
DEL

Bulk revoke api tokens in an organization

Revokes all existing api tokens in an organizations, a token is revoked by userId.

Request

Path parameters

orgId

string

Required

Responses

Successful operation

DEL/v1/orgs/{orgId}/api-tokens
1 2 curl --request DELETE \ --url 'https://api.atlassian.com/admin/api-access/v1/v1/orgs/{orgId}/api-tokens'

Rate this page: