MCP tokens#
GET /api/me/mcp-tokens#
List my MCP tokens
Returns the signed-in officer’s own non-revoked MCP tokens.
Response 200 — The officer’s MCP tokens.
Model: McpTokenList
Field |
Type |
Required |
Description |
|---|---|---|---|
|
array of McpTokenSummary |
yes |
POST /api/me/mcp-tokens#
Create an MCP token
Creates an MCP token for the signed-in officer. The plaintext token is returned once and never stored.
Request body
Model: McpTokenCreate
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Response 201 — The new token, including its plaintext value.
Model: McpTokenCreated
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string (uuid) |
yes |
|
|
string |
yes |
|
|
string |
yes |
DELETE /api/me/mcp-tokens/{token_id}#
Revoke an MCP token
Revokes one of the signed-in officer’s own MCP tokens.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string (uuid) |
yes |
The MCP token’s ID. |
Response 204 — The token was revoked.