API Reference
Relay exposes a REST API for programmatic access. All endpoints require authentication via a session cookie (web) or Bearer token (MCP).
Authentication
For API/MCP access, create a token in Settings and pass it as a Bearer token:
Authorization: Bearer relay_your_token_here
Rate limits
API rate limits depend on your plan. The Free plan allows 20 MCP reads and 5 MCP writes per day. Pro allows 200 reads and 50 writes per day. Rate limit info is returned in response headers.
Projects
/api/projectsList all projects for the authenticated user
/api/projectsCreate a new project
/api/projects/:idGet project details
/api/projects/:idUpdate project name/description
/api/projects/:idArchive a project
Memory
/api/projects/:id/memoryList memory items for a project
/api/projects/:id/memoryAdd a memory item (decision, note, task, etc.)
/api/projects/:id/memory/:memoryIdUpdate a memory item
/api/projects/:id/memory/:memoryIdDelete a memory item
/api/projects/:id/memory/batchBatch add/update memory items
/api/projects/:id/memory/searchSearch project memory
Context & Briefs
/api/projects/:id/context/composeGenerate a context brief for a target profile
/api/projects/:id/context/historyList generated context packets
/api/projects/:id/bootstrapGenerate a full bootstrap brief
/api/projects/:id/bootstrap/latestGet the latest cached bootstrap brief
/api/projects/:id/handoffGenerate a fresh-chat brief export (Pro only)
Work Sessions
/api/projects/:id/work-sessions/openOpen a new work session
/api/projects/:id/work-sessions/checkpointSave a checkpoint to the active session
/api/projects/:id/work-sessions/closeClose the active work session
Auth
/api/extension/tokensCreate an API token for MCP/extension
/api/extension/tokens/:idRevoke an API token