---
title: "Enable Admin Key"
method: POST
path: "/admin-key"
tags: ["Admin Key"]
---

# Enable Admin Key

`POST /admin-key`

Enables admin key access for the calling user within the site. If an admin key already exists for the user, a new one will be issued with an updated expiration time.

**Note:** The `durationInMinutes` field within the request body is optional. If the request body is empty or if the `durationInMinutes` is set to 0 minutes, a new admin key will be issued to the calling user with a default duration of 10 minutes.

**[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.

## Request body

- object
  - `durationInMinutes` integer — The requested duration of admin key access in minutes, up to a maximum of 60 minutes, after which the issued admin key will automatically expire.

## Response `200`

Returned if a new admin key is successfully issued 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

- `400` — Returned if the request body contains an invalid `durationInMinutes`.
- `401` — Returned if the authentication credentials are incorrect or missing from the request.
- `404` — Returned 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)
