---
title: "Create token"
method: POST
path: "/token"
tags: ["Token"]
---

# Create token

`POST /token`

Create a personal access token.

## Response `200`

Personal access token ID and value.

- object
  - `data` object, required
    - `id` string, required — Personal token ID.
    - `token` string, required — Personal access token. Include this in the Authorization header (`Bearer <token>`) when accessing the Terminal API.

## Other responses

- `401` — Unauthorized
- `429` — Too Many Requests
- `500` — Internal Server Error

## Changes

- **2025-03-19** `1c6726b12e29` — 3 breaking, 18 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `401`
  - the response's body type/format changed from ``/`` to `object`/`` for status `429`
  - the response's body type/format changed from ``/`` to `object`/`` for status `500`
  - removed `#/components/schemas/ErrorResponse` from the response body `allOf` list for the response status `401`
  - …17 more
- **2025-03-07** `979a6c40552c` — 3 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `429`
  - added the non-success response with the status `500`
- **2024-12-18** `416a8af6f912` — 2 info
  - api tag `Token` added
  - api tag `Access` removed
- **2024-12-17** `967b257f759f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/terminaldotshop/apis/terminal-api/changes/token/post.md)

---

[API](https://skmtc.dev/terminaldotshop/apis/terminal-api.md) · [All operations](https://skmtc.dev/terminaldotshop/apis/terminal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/terminaldotshop/terminal-api/revisions/84ef614abb97/schema)
