---
title: "Get Admin Key"
method: GET
path: "/admin-key"
tags: ["Admin Key"]
---

# Get Admin Key

`GET /admin-key`

Returns information about the admin key if one is currently enabled for the calling user within the site.

**[Permissions](https://support.atlassian.com/user-management/docs/give-users-admin-permissions/#Centralized-user-management-content) required**:
User must be an organization or site admin.

## Response `200`

Returned if an admin key is currently enabled for the calling user.

- AdminKeyResponse
  - `accountId` string — User identifier.
  - `expirationTime` string, date-time — Timestamp in UTC that represents when the admin key will expire. In format "YYYY-MM-DDTHH:mm:ss.sssZ".

## Other responses

- `401` — Returned if the authentication credentials are incorrect or missing from the request.
- `404` — Returned if the calling user does not currently have an admin key, if the calling user does not have permission to use admin keys, or if the site is not a Confluence Cloud Premium or Enterprise instance.

---

[API](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api-v2.md) · [All operations](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-confluence-cloud-rest-api-v2/revisions/c4bd1ed570f2/schema)
