---
title: "Create Mcp Token"
method: POST
path: "/mcp-tokens"
tags: ["mcp-tokens"]
---

# Create Mcp Token

`POST /mcp-tokens`

## Request body

- CreateMcpTokenRequest
  - `name` string, required
  - `expires_in_days` integer, nullable

## Response `201`

Successful Response

- CreateMcpTokenResponse — `token` is the plaintext secret, returned once after creation.
  - `token` string, required
  - `mcp_token` McpTokenSummary, required — A masked MCP token row; stored token hashes never cross this boundary.
    - `id` string, required
    - `name` string, required
    - `token_prefix` string, required
    - `created_at` string, required
    - `expires_at` string, nullable
    - `last_used_at` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/useauxos/apis/auxos.md) · [All operations](https://skmtc.dev/useauxos/apis/auxos/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/useauxos/auxos/revisions/2f853c0b59f4/schema)
