---
title: "Create a personal access token"
method: POST
path: "/v3/personal-access-tokens"
tags: ["PersonalAccessTokens"]
---

# Create a personal access token

`POST /v3/personal-access-tokens`

Creates a new personal access token.

## Request body

- PersonalAccessTokenRequestModel
  - `name` string, required — Name of the access token.
  - `revoked` boolean, nullable — Set true to revoke the token.
  - `expiresAt` string, date-time, nullable — The date (UTC) after which the token will expire.
  - `scopes` string[], required — List of permissions for the token.

## Response `201`

Created

- PersonalAccessTokenSecretDto
  - `accessToken` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `409` — Conflict
- `429` — Too Many Requests
- `500` — Server Error

---

[API](https://skmtc.net/cryptlex/apis/cryptlex-web-api.md) · [All operations](https://skmtc.net/cryptlex/apis/cryptlex-web-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cryptlex/cryptlex-web-api/revisions/ec1259c12475/schema)
