---
title: "Create Token"
method: POST
path: "/api/cms/tokens"
tags: ["cms-tokens"]
---

# Create Token

`POST /api/cms/tokens`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/cms/tokens`
- Auth: HTTP bearer

Create a new CMS token. Returns the plaintext value ONCE.

## Request body

- CreateTokenRequest
  - `name` string, required
  - `permission` string
  - `spaces` string[]
  - `expires_at` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
