---
title: "POST /me/tokens"
method: POST
path: "/me/tokens"
tags: ["users"]
---

# POST /me/tokens

`POST /me/tokens`

Create an API credential for the authenticated user.

## Request body

- ReqBody
  - `name` string, nullable — Operator label ("warehouse-pg box").
  - `ttl_secs` integer, nullable — Token lifetime in seconds. Default 86400 (24h), max 30 days.

## Response `201`

Credential created

- ResBody
  - `expires_at` string, date-time, required
  - `token` string, required — Raw enrollment token, shown once in the response.
  - `token_id` string, required

## Other responses

- `400` — Invalid request
- `403` — Forbidden
- `422` — Limit exceeded

## Changes

- **2026-07-03** `e1c81d0f4235` — 6 breaking, 6 warning, 5 info
  - the `token` response's property type/format changed from `object`/`` to `string`/`` for status `201`
  - removed the required property `token/createdAt` from the response with the `201` status
  - removed the required property `token/hint` from the response with the `201` status
  - removed the required property `token/id` from the response with the `201` status
  - …13 more
- **2026-06-05** `45de91fcec33` — 1 info
  - endpoint added
- **2026-03-16** `eb2c08128881` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/timbal-ai/apis/timbal-platform-api/changes/me/tokens/post.md)

---

[API](https://skmtc.dev/timbal-ai/apis/timbal-platform-api.md) · [All operations](https://skmtc.dev/timbal-ai/apis/timbal-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/timbal-ai/timbal-platform-api/revisions/dd7e398ce0d3/schema)
