Getting a token
Tokens are obtained from the frontend Clerk SDK. Use your Clerk session object to retrieve a fresh token before each request.Sending the token
Include the token in theAuthorization header using the Bearer scheme.
How the backend uses it
The backend verifies the token against Clerk. On first sight, it provisions a User row keyed on your Clerk user id. There is no separate signup or login endpoint.There is no separate signup or login endpoint. Your Clerk session token is all you need.
Ownership and access control
Every resource — chats, messages, runs, attachments, and waitpoints — is scoped to the authenticated caller. If you request a resource owned by another user, the API returns404 NOT_FOUND. It never returns 403 or confirms that the resource exists.