Gets all user API tokens in an organization.
OAuth 2.0 scopes required: read:tokens:admin
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
string
string
string
integer
string
string
string
string
string
Returned if the request is successful.
integer
integer
string
1
2
3
curl --request GET \
--url 'https://api.atlassian.com/admin/api-access/v1/orgs/{orgId}/api-tokens' \
--header 'Accept: application/json'1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"data": [
{
"id": "<string>",
"label": "<string>",
"status": "ALLOWED",
"createdAt": "<string>",
"expiresAt": "<string>",
"lastActiveAt": "<string>",
"user": {
"id": "<string>",
"orgId": "<string>",
"name": "<string>",
"email": "<string>"
},
"scopes": [
"<string>"
]
}
],
"links": {
"self": "<string>",
"next": "<string>",
"prev": "<string>"
}
}Revokes all managed user API tokens in an organization by orgID.
OAuth 2.0 scopes required: delete:tokens:admin
Forge and OAuth2 apps cannot access this REST resource.
string
RequiredSuccessful operation
1
2
curl --request DELETE \
--url 'https://api.atlassian.com/admin/api-access/v1/orgs/{orgId}/api-tokens'Gets count of user API tokens in an organization.
OAuth 2.0 scopes required: read:tokens:admin
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
string
string
string
integer
string
string
string
string
string
Returned if the request is successful.
integer
integer
string
integer
1
2
3
curl --request GET \
--url 'https://api.atlassian.com/admin/api-access/v1/orgs/{orgId}/api-tokens/count' \
--header 'Accept: application/json'Gets count of API tokens for specified service accounts within an organization.
OAuth 2.0 scopes required: read:service-accounts-tokens:admin
Forge and OAuth2 apps cannot access this REST resource.
string
RequiredList of service account IDs to count API tokens for
array<string>
100Returned if the request is successful.
integer
integer
string
1
2
3
4
5
6
7
curl --request POST \
--url 'https://api.atlassian.com/admin/api-access/v1/orgs/{orgId}/service-accounts/count' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '[
"<string>"
]'1
2
3
4
5
6
7
8
9
10
11
{
"validServiceAccountIds": [
{
"serviceAccountId": "<string>",
"credentialsCount": 49
}
],
"invalidServiceAccountIds": [
"<string>"
]
}Retrieves API tokens for a specific service account within an organization.
OAuth 2.0 scopes required: read:service-accounts-tokens:admin
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
Requiredstring
Returned if the request is successful.
integer
integer
string
array<ApiToken>
List of API tokens for the service account
1
2
3
curl --request GET \
--url 'https://api.atlassian.com/admin/api-access/v1/orgs/{orgId}/service-accounts/{accountId}/api-tokens' \
--header 'Accept: application/json'1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[
{
"id": "<string>",
"label": "<string>",
"status": "ALLOWED",
"createdAt": "<string>",
"expiresAt": "<string>",
"lastActiveAt": "<string>",
"user": {
"id": "<string>",
"orgId": "<string>",
"name": "<string>",
"email": "<string>"
},
"scopes": [
"<string>"
]
}
]Revokes all API tokens for a specific service account within an organization.
OAuth 2.0 scopes required: delete:service-accounts-tokens:admin
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
RequiredReturned if the request is successful.
integer
integer
string
1
2
curl --request DELETE \
--url 'https://api.atlassian.com/admin/api-access/v1/orgs/{orgId}/service-accounts/{accountId}/api-tokens'Rate this page: