Gets count of user API keys in an organization.
OAuth 2.0 scopes required: read:tokens:admin
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-keys/count' \
--header 'Accept: application/json'
Gets all user API keys in an organization.
OAuth 2.0 scopes required: read:tokens:admin
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-keys' \
--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
27
28
29
30
{
"data": [
{
"id": "<string>",
"label": "<string>",
"createdAt": "<string>",
"expiresAt": "<string>",
"lastActiveAt": "<string>",
"systemAccountId": "<string>",
"resource": "<string>",
"orgId": "<string>",
"createdBy": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"scopes": [
"<string>"
],
"targetResources": [
"<string>"
]
}
],
"links": {
"self": "<string>",
"next": "<string>",
"prev": "<string>"
}
}
Creates a new user API key
OAuth 2.0 scopes required: write:tokens:admin
string
Requiredstring
Requiredstring
Requiredstring
Requiredarray<string>
Requiredarray<string>
Returned if the request is successful.
integer
integer
string
1
2
3
curl --request POST \
--url 'https://api.atlassian.com/admin/api-access/v1/orgs/{orgId}/api-keys?label={label}&expiresAt={expiresAt}&resource={resource}&scopes={scopes}' \
--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>",
"token": "<string>",
"resource": "<string>",
"label": "<string>",
"createdBy": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"createdAt": "<string>",
"expiresAt": "<string>",
"scopes": [
"<string>"
],
"targetResources": [
"<string>"
]
}
Revokes an existing API key
OAuth 2.0 scopes required: delete:tokens:admin
string
Requiredstring
RequiredReturned if the request is successful.
integer
integer
string
1
2
curl --request PATCH \
--url 'https://api.atlassian.com/admin/api-access/v1/orgs/{orgId}/api-keys/revoke/{apiKeyId}'
Rate this page: