Skip to Content
Bryfo Docsv0.2.1
Interactive OpenAPI

MCP

Scoped Bearer token management and Streamable HTTP /mcp human-approval controls.

POST
/api/v1/mcp/tokens

Authorization

cookiebryfo_session<token>

HttpOnly, SameSite=Lax session cookie (7-day sliding TTL, 30-day cap).

Request Body

application/json
  1. body
name*string
scope*string
Value in"read_only""draft_only""confirm_write""full"
allowed_account_ids?array<string>
apply_privacy_filter?boolean
Defaulttrue
expires_in_days?integer

Response Body

One-time plaintext Bearer token and stored metadata record

Example Request
curl -X POST 'https://mail.example.com/api/v1/mcp/tokens' \  --cookie 'bryfo_session=' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "scope": "read_only"}'
Example Response200
Empty