Skip to main content
New here? Start with the Product Overview or watch the demo videos.

Authentication

All API requests require a Bearer token. Pass your API key in the Authorization header:
You can find your API key and assistant id in the Console. The base URL for all endpoints is:

Sending a Message

To send a message to your assistant, make a POST request to /messages:
The response includes a message_id you can use to poll for the assistant’s reply:

Polling for a Response

The assistant processes your message asynchronously. Poll GET /messages/{message_id} until status changes from "processing" to "completed":
Once complete, the response field contains the assistant’s reply:

Sending Attachments

To include files with your message, first upload each file via POST /messages/attachments, then reference them in the message. Step 1 — Upload the file:
This returns metadata for the uploaded file:
Step 2 — Send the message with attachments: Pass the returned metadata in the attachments array:
Then poll for the response as before. You can attach up to 10 files per message.

Tags

You can attach tags to messages for routing and context. Tags are arbitrary strings — use them however you like:
Tags are echoed back in the response as response_tags, so you can use them to route replies back to the right place.

Next Steps

  • Visit the Console to manage your assistants.
  • Join our Discord if you have questions.