---
title: "Create user access token"
method: POST
path: "/resources/users/access-tokens/v1"
tags: ["Personal tokens"]
---

# Create user access token

`POST /resources/users/access-tokens/v1`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/users/access-tokens/v1`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/users/access-tokens/v1/post.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `frontegg-tenant-id` string, required
- `frontegg-user-id` string, required

## Request body

- CreateUserAccessTokenRequest
  - `description` string
  - `expiresInMinutes` number: Token expiration time in minutes. In case of undefined, the token won't be expired

## Response `201`

- UserAccessTokenResponse
  - `id` string, required
  - `description` string
  - `createdAt` string, date-time, required
  - `secret` string
  - `expires` string, date-time

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
