Skip to content

API basics

The relay listens on http://127.0.0.1:8080 by default. Every endpoint uses the /v1 prefix. The API reference describes parameters and schemas. These guides explain how to use the API and handle native behavior.

Every request requires the bearer token from RELAY_TOKEN:

Authorization: Bearer <token>

A missing or invalid token returns 401 invalid_authentication.

Public conversation IDs, message IDs, and Messages-owned media IDs are provider GUIDs. They are not SQLite row IDs.

Read error responses for the shared JSON error shape and HTTP status codes. Before retrying a send, read retry behavior. For permission and database problems, use troubleshooting.

The Messages database schema is private and changes between macOS releases. The current mapping was verified against the local macOS 27 schema. Startup schema checks fail when required tables or columns are missing. Optional columns follow the generated schema for null values or omitted fields. Unsupported capabilities are reported without invented values.