Patricia MCP Tokens API
The mcp-tokens API from Patricia — 2 operation(s) for mcp-tokens.
The mcp-tokens API from Patricia — 2 operation(s) for mcp-tokens.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/patricia-app:patricia-app-mcp-tokens-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Patricia MCP Tokens API
version: 0.1.0
tags:
- name: mcp-tokens
paths:
/v1/mcp-tokens:
get:
tags:
- mcp-tokens
summary: List personal MCP tokens
description: List the signed-in teammate's personal MCP tokens in this workspace.
operationId: list_mcp_tokens_v1_mcp_tokens_get
security:
- HTTPBearer: []
parameters:
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ListValidator'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
post:
tags:
- mcp-tokens
summary: Create personal MCP token
description: Create a personal MCP token for the signed-in teammate.
operationId: create_mcp_token_v1_mcp_tokens_post
security:
- HTTPBearer: []
parameters:
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/models__mcp_personal_token__McpPersonalToken__CreateValidator'
responses:
'201':
description: The created token, including its one-time plaintext.
content:
application/json:
schema:
$ref: '#/components/schemas/models__mcp_personal_token__McpPersonalToken__CreatedValidator'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
delete:
tags:
- mcp-tokens
summary: Revoke all personal MCP tokens
description: Revoke every personal MCP token owned by the signed-in teammate.
operationId: revoke_all_mcp_tokens_v1_mcp_tokens_delete
security:
- HTTPBearer: []
parameters:
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'204':
description: No content.
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/mcp-tokens/{id}:
delete:
tags:
- mcp-tokens
summary: Revoke personal MCP token
description: Revoke one personal MCP token. A teammate can revoke their own token. An owner or admin can revoke any token in the workspace.
operationId: revoke_mcp_token_v1_mcp_tokens__id__delete
security:
- HTTPBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
title: Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'204':
description: No content.
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
models__mcp_personal_token__McpPersonalToken__FullValidator:
properties:
id:
type: string
format: uuid
title: Id
tenant_id:
type: string
format: uuid
title: Tenant Id
user_id:
type: string
format: uuid
title: User Id
name:
type: string
title: Name
prefix:
type: string
title: Prefix
last_used_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Used At
revoked_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Revoked At
expires_at:
type: string
format: date-time
title: Expires At
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
type: object
required:
- id
- tenant_id
- user_id
- name
- prefix
- expires_at
- created_at
- updated_at
title: FullValidator
description: A stored token without its hash or one-time plaintext.
models__mcp_personal_token__McpPersonalToken__CreatedValidator:
properties:
id:
type: string
format: uuid
title: Id
tenant_id:
type: string
format: uuid
title: Tenant Id
user_id:
type: string
format: uuid
title: User Id
name:
type: string
title: Name
prefix:
type: string
title: Prefix
last_used_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Used At
revoked_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Revoked At
expires_at:
type: string
format: date-time
title: Expires At
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
plaintext_token:
type: string
title: Plaintext Token
type: object
required:
- id
- tenant_id
- user_id
- name
- prefix
- expires_at
- created_at
- updated_at
- plaintext_token
title: CreatedValidator
description: The create response with the one-time plaintext token.
ErrorResponse:
properties:
code:
type: string
title: Code
message:
type: string
title: Message
errors:
anyOf:
- items:
additionalProperties: true
type: object
type: array
- type: 'null'
title: Errors
type: object
required:
- code
- message
title: ErrorResponse
description: Standard error envelope, matching exception handler output.
models__mcp_personal_token__McpPersonalToken__CreateValidator:
properties:
name:
type: string
maxLength: 255
minLength: 1
title: Name
expires_at:
type: string
format: date-time
title: Expires At
additionalProperties: false
type: object
required:
- name
title: CreateValidator
description: A self-mint request. The server supplies all identity fields.
ListValidator:
properties:
items:
items:
$ref: '#/components/schemas/models__mcp_personal_token__McpPersonalToken__FullValidator'
type: array
title: Items
type: object
required:
- items
title: ListValidator
description: The complete self-scoped token list.
securitySchemes:
HTTPBearer:
type: http
scheme: bearer