---
title: "Create a new API token"
method: POST
path: "/tokens"
tags: ["API Tokens"]
---

# Create a new API token

`POST /tokens`

Create a new API token

## Request body

- APITokenCreate
  - `token_id` string, required — The unique ID of this API token
  - `name` string, required — The user friendly name of the API token
  - `claims` object — Key value pairs of auth claims the API token is entitled to

## Response `201`

Successful Response

- APITokenPrivate
  - `token_id` string, required — The unique ID of this API token
  - `name` string, required — The user friendly name of the API token
  - `claims` object — Key value pairs of auth claims the API token is entitled to
  - `token` string, required — The decoded API token

## Other responses

- `422` — Validation Error

---

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