---
title: "Create Mcp Token"
method: POST
path: "/api/mcp_tokens"
tags: ["mcp-token-management"]
---

# Create Mcp Token

`POST /api/mcp_tokens`

## Request

- Base URL: `https://writer.swapp1990.org` (the document declares no server; this is the origin it was published from)
- URL: `https://writer.swapp1990.org/api/mcp_tokens`
- Auth: none declared

## Request body

- CreateMcpTokenInput
  - `name` string: Human-readable token label shown in the WriteForYou MCP token list.
  - `expires_in_days` integer, nullable: Optional token lifetime in days. Omit for the server default.

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api.md) · [All operations](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api/revisions/ce5e2a89ab4d?raw)
