交互式 OpenAPI
Authentication
Session login/register, TOTP 2FA, OIDC SSO, GDPR export/delete, and X-Bryfo-Step-Up elevation.
GET
Public authentication capabilities and maintenance banner
curl -X GET 'https://mail.example.com/api/v1/auth/providers'Example Response200
Empty
POST
application/json- body
email*stringFormat
emailpassword*stringtotp_code?string6-digit TOTP code or single-use recovery code when totp_enabled=true
Sets HttpOnly bryfo_session cookie and returns User profile
application/json- response
user?curl -X POST 'https://mail.example.com/api/v1/auth/login' \ -H 'Content-Type: application/json' \ -d '{ "email": "user@example.com", "password": "string"}'Example Response
{ "user": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "email": "user@example.com", "display_name": "string", "role": "admin", "totp_enabled": true, "has_password": true, "is_active": true, "screener_enabled": true, "created_at": "2019-08-24T14:15:22Z" }}POST
application/json- body
email*stringFormat
emaildisplay_name?stringpassword*stringLength
8 <= length <= 128invite_code?stringverify_code?stringturnstile_token?stringtos_accepted?booleanAccount created and session established
curl -X POST 'https://mail.example.com/api/v1/auth/register' \ -H 'Content-Type: application/json' \ -d '{ "email": "user@example.com", "password": "stringst"}'Example Response
Empty
GET
SessionCookiecookie
bryfo_session<token>HttpOnly, SameSite=Lax session cookie (7-day sliding TTL, 30-day cap).
Current user profile
application/json- response
id*stringFormat
uuidemail*stringFormat
emaildisplay_name*stringrole*stringValue in
"admin""member"totp_enabled*booleanhas_password*booleanis_active*booleanscreener_enabled*booleancreated_at*stringFormat
date-timecurl -X GET 'https://mail.example.com/api/v1/auth/me' \ --cookie 'bryfo_session='Example Response200
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "email": "user@example.com", "display_name": "string", "role": "admin", "totp_enabled": true, "has_password": true, "is_active": true, "screener_enabled": true, "created_at": "2019-08-24T14:15:22Z"}POST
SessionCookiecookie
bryfo_session<token>HttpOnly, SameSite=Lax session cookie (7-day sliding TTL, 30-day cap).
application/json- body
password?stringtotp_code?stringrecovery_code?stringStep-up token minted (10-minute TTL)
curl -X POST 'https://mail.example.com/api/v1/auth/step-up' \ --cookie 'bryfo_session=' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
Empty
GET
SessionCookieStepUpTokencookie
bryfo_session<token>HttpOnly, SameSite=Lax session cookie (7-day sliding TTL, 30-day cap).
header
X-Bryfo-Step-Up<token>10-minute session-bound elevation token minted via POST /api/v1/auth/step-up.
ZIP archive stream
curl -X GET 'https://mail.example.com/api/v1/account/export' \ -H 'X-Bryfo-Step-Up: ' \ --cookie 'bryfo_session='Example Response200
Empty