---
title: "Create a new user token"
method: POST
path: "/api/v1/usertoken/create"
tags: ["User token"]
---

# Create a new user token

`POST /api/v1/usertoken/create`

## Request body

- UserTokenCreateCommand
  - `expireDate` string, date-time, nullable
  - `isReadonly` boolean
  - `name` string, nullable
  - `endpoints` AvailableEndpointData[], nullable
    - `id` integer
    - `path` string, nullable
    - `method` string, nullable
    - `description` string, nullable
    - `controller` string, nullable
  - `bindALL` boolean

## Response `200`

OK

- UserTokenCreateDto
  - `accessKey` string, nullable
  - `secretKey` string, nullable

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error

---

[API](https://skmtc.dev/taikun/apis/taikun-webapi.md) · [All operations](https://skmtc.dev/taikun/apis/taikun-webapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/taikun/taikun-webapi/revisions/09395964d191/schema)
