Skip to Content
Bryfo Docsv0.2.1
Interactive OpenAPI

Mail

Unified threads, hybrid search, Screener, The Feed, and RFC 8058 bulk unsubscribe.

GET
/api/v1/threads

Authorization

SessionCookie
cookiebryfo_session<token>

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

Query Parameters

folder?string
Value in"inbox""awaiting""screener""snoozed""starred""sent""drafts""archive""spam""trash""all"
account_id?string
q?string

Structured operators (from:, to:, subject:, has:attachment, is:unread, after:, before:) + hybrid text query

limit?integer
Default50

Response Body

Paginated thread list

Example Request
curl -X GET 'https://mail.example.com/api/v1/threads' \  --cookie 'bryfo_session='
Example Response200
Empty
GET
/api/v1/feed

Authorization

SessionCookie
cookiebryfo_session<token>

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

Query Parameters

scope?string
unread_only?boolean
limit?integer
Rangevalue <= 50

Response Body

Sandboxed newsletter feed items with rewritten CID inline URLs

Example Request
curl -X GET 'https://mail.example.com/api/v1/feed' \  --cookie 'bryfo_session='
Example Response200
Empty
POST
/api/v1/screener/decide

Authorization

SessionCookie
cookiebryfo_session<token>

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

Request Body

application/json
  1. body
pattern*string
decision*string
Value in"allow""block"

Response Body

Rule recorded and matching pending threads transitioned

Example Request
curl -X POST 'https://mail.example.com/api/v1/screener/decide' \  --cookie 'bryfo_session=' \  -H 'Content-Type: application/json' \  -d '{  "pattern": "string",  "decision": "allow"}'
Example Response200
Empty
POST
/api/v1/subscriptions/bulk-unsubscribe

Authorization

SessionCookie
cookiebryfo_session<token>

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

Request Body

application/json
  1. body
senders*array<string>
Itemsitems <= 20
archive_existing?boolean
Defaulttrue

Response Body

Per-sender unsubscribe execution summary

Example Request
curl -X POST 'https://mail.example.com/api/v1/subscriptions/bulk-unsubscribe' \  --cookie 'bryfo_session=' \  -H 'Content-Type: application/json' \  -d '{  "senders": [    "string"  ]}'
Example Response200
Empty