Base URL
The API base URL is configurable at deployment time. The default is:/api/v1. For example, the full URL to list chats is:
Authentication
Every endpoint requires anAuthorization header with a Clerk session token:
401 UNAUTHORIZED. See the Authentication page for how to obtain and refresh tokens.
Versioning
The current API version is v1. All endpoints live under/api/v1. Future versions will be introduced under a new path prefix with a migration window.
Resource groups
Chats
Create, list, update, and delete chat sessions.
Runs
Start, cancel, and monitor agent runs within a chat.
Waitpoints
Respond to agent waitpoints that pause a turn for user input.
Attachments
Upload and complete file attachments for messages.