Skip to Content
Bryfo Docsv0.2.1
交互式 OpenAPI

AI

Hybrid RRF search, PII-redacted AI briefs, personal writing style, plain-English rules, BYOK, and Magpie chat.

GET
/api/v1/ai/search

Authorization

SessionCookie
cookiebryfo_session<token>

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

Query Parameters

q*string
account_id?string

Response Body

Ranked hybrid search hits across bodies and <= 2 MiB attachments

Example Request
curl -X GET 'https://mail.example.com/api/v1/ai/search?q=string' \  --cookie 'bryfo_session='
Example Response200
Empty
GET
/api/v1/ai/my-config

Authorization

SessionCookie
cookiebryfo_session<token>

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

Response Body

Masked personal AI configuration

Example Request
curl -X GET 'https://mail.example.com/api/v1/ai/my-config' \  --cookie 'bryfo_session='
Example Response200
Empty
PUT
/api/v1/ai/my-config

Authorization

SessionCookie
cookiebryfo_session<token>

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

Request Body

application/json
  1. body
mode?string
Value in"site""byok"
byok_base_url?string
byok_api_key?string
byok_chat_model?string
byok_classify_model?string
auto_predraft_enabled?boolean
digest_enabled?boolean

Response Body

Configuration saved

Example Request
curl -X PUT 'https://mail.example.com/api/v1/ai/my-config' \  --cookie 'bryfo_session=' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
Empty
POST
/api/v1/ai/digests/generate

Authorization

SessionCookie
cookiebryfo_session<token>

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

Response Body

Generated digest with actionable and low-priority thread highlights

Example Request
curl -X POST 'https://mail.example.com/api/v1/ai/digests/generate' \  --cookie 'bryfo_session='
Example Response200
Empty
POST
/api/v1/ai/conversations/{id}/messages

Authorization

SessionCookie
cookiebryfo_session<token>

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

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
content*string

Response Body

text/event-stream emitting tool_call, tool_result, delta, done, and error events

Example Request
curl -X POST 'https://mail.example.com/api/v1/ai/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/messages' \  --cookie 'bryfo_session=' \  -H 'Content-Type: application/json' \  -d '{  "content": "string"}'
Example Response200
Empty