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

# Create a new named API token

`POST /tokens/{email}/`

## Request

- Base URL: `https://quads.example.com/api/v3`
- URL: `https://quads.example.com/api/v3/tokens/{email}/`
- Auth: HTTP bearer

Generates a new API token with the given name. The raw token value is returned only in this response and cannot be retrieved again. Store it securely. Use as `Authorization: Bearer qat_...` for API access.

## Path parameters

- `email` string, required

## Request body

- object
  - `name` string, required

## Response `201`

Token created. The `token` field contains the raw value (shown only once).

- object
  - `id` integer
  - `name` string
  - `token_prefix` string: First 12 characters of the token for identification
  - `created_at` string
  - `last_used` string, nullable
  - `token` string: Raw token value (shown only once)

## Other responses

- `400`: Bad request (missing name or duplicate name)
- `403`: Forbidden
- `default`: Unexpected error

## Changes

- **2026-08-25** `f6728f2d9024`: 1 info
  - endpoint added
- **2026-07-17** `a060ee3d649d`: 1 breaking
  - api path removed without deprecation
- **2026-05-19** `3442a2bb058a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/quadsproject/apis/quads/changes/tokens/:email/post.md)

---

[API](https://skmtc.dev/quadsproject/apis/quads.md) - [All operations](https://skmtc.dev/quadsproject/apis/quads/llms.txt) - [OpenAPI document](https://skmtc.dev/quadsproject/apis/quads/revisions/9d9de833ae79?raw)
