Agent-readable docs index: /docs/llms.txt. Full docs in one file: /docs/llms-full.txt. Download /docs/docs.zip to grep all markdown files locally.
/api/auth/sessionPOST
Exchange a read_write API key for an encrypted Bri web-session cookie. Use bearer keys directly for automation.
Request Bodyapplication/jsonrequired
apiKey *string
A read_write Bri API key.
Response
200 · Session created and cookie set.
data *object
Show properties
username *string
400 · The request body or parameter is invalid.
error *string
Human-readable error message.
401 · The bearer key is missing, malformed, revoked, or invalid.
error *string
Human-readable error message.
403 · The caller lacks the required permission or ownership.
error *string
Human-readable error message.
503 · A required Bri or AI service is not configured or available.
error *string
Human-readable error message.
Request example
curl -X POST "https://bri.fyi/api/auth/session" \ -H "Content-Type: application/json" \ -d '{ "apiKey": "string" }'