---
title: "Create an admin JWT for bearer authentication"
method: GET
path: "/private/auth/admin_token"
tags: ["internal-auth"]
---

# Create an admin JWT for bearer authentication

`GET /private/auth/admin_token`

Create an admin JWT for bearer authentication

## Query parameters

- `userId` string, uuid
- `impersonatingUserEmail` string

## Response `200`

Admin Jwt for bearer authentication

- object
  - `data` object
    - `adminJwt` string — The auth Jwt issued to the admin
    - `info` AdminTokenInfo — Admin Token Info
      - `id` string, uuid, required — The UUID of the token
      - `impersonated_user_id` string, uuid, nullable — UUID of the user that the admin is impersonating
      - `expiry_time` string, required — Timestamp when the token will expire (UTC)
      - `impersonating_user_email` string, nullable — The email of the admin user who issued the token
      - `issuing_authority` string, nullable, required — The service account email used to issue the jwt
      - `metadata` EntityMetadata — Common metadata for entities
        - `created_on` string, nullable — Timestamp when the entity was created (UTC)
        - `updated_on` string, nullable — Timestamp when the entity was last updated (UTC)

## Other responses

- `400` — API Error
- `500` — API Error

## Changes

- **2022-06-13** `7856cb3301b2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/yugabyte/apis/yugabyte-cloud/changes/private/auth/admin_token/get.md)

---

[API](https://skmtc.dev/yugabyte/apis/yugabyte-cloud.md) · [All operations](https://skmtc.dev/yugabyte/apis/yugabyte-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/yugabyte/yugabyte-cloud/revisions/7856cb3301b2/schema)
