---
title: "Mint a one-time plaintext MCP token for a user"
method: POST
path: "/api/users/{id}/mcp-tokens"
tags: ["Users"]
---

# Mint a one-time plaintext MCP token for a user

`POST /api/users/{id}/mcp-tokens`

Returns the plaintext token exactly once. Subsequent reads only expose token summaries.

## Path parameters

- `id` string, required

## Request body

- object
  - `label` string, nullable

## Response `200`

Minted token plaintext, token summary and composed user

## Other responses

- `401` — Unauthorized
- `404` — User not found

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/4f62e32be8ec?raw)
