Authentication
All API requests require a Bearer token. Pass your API key in theAuthorization header:
Sending a Message
To send a message to your assistant, make aPOST request to /messages:
message_id you can use to poll for the assistant’s reply:
Polling for a Response
The assistant processes your message asynchronously. PollGET /messages/{message_id} until status changes from "processing" to "completed":
response field contains the assistant’s reply:
Sending Attachments
To include files with your message, first upload each file viaPOST /messages/attachments, then reference them in the message.
Step 1 — Upload the file:
attachments array:
Tags
You can attach tags to messages for routing and context. Tags are arbitrary strings — use them however you like:response_tags, so you can use them to route replies back to the right place.
Next Steps
- Browse the full REST API Reference for detailed parameter docs and the interactive playground.
- Visit the Console to manage your assistants.
- Join our Discord if you have questions.
