---
title: "Get the current token policy"
method: GET
path: "/api/admin/tokens/policy"
tags: ["Token (Admin)"]
---

# Get the current token policy

`GET /api/admin/tokens/policy`

Returns the full admin-configured token policy. Requires admin (sudo) privileges.

## Headers

- `X-EDH-USER` string, required
- `X-EDH-TOKEN` string, required

## Response `200`

Token policy retrieved successfully

- object
  - `success` boolean
  - `message` object
    - `max_tokens_per_user` integer
    - `max_lifetime_hours` integer
    - `default_lifetime_hours` integer
    - `max_renewals` integer
    - `renewal_allowed` boolean
    - `require_expiration` boolean
    - `global_deny` object

## Other responses

- `401` — Not authorized (requires admin privileges)

---

[API](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api.md) · [All operations](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/engineering-development-hub-edh-api/revisions/058396b8f0f1/schema)
