Quickstart
Create a Thread on a published Agent, send one follow-up message, and read the public event log.Before you start
You need:- A published Agent in Mosoo.
- The Agent ID from the Agent’s API Access panel.
- A Human PAT or Organization Service token that is allowed to call that Agent.
If you opened the API docs from an Agent’s API Access action, use the
agentId shown for that published Agent.1. Create a Thread
A Thread is the API conversation container for a published Agent. Creating one also starts the first run.thread.id from the response:
2. Send another message
Use the Thread ID to continue the same Agent interaction.permission_decision or user_interrupt events when the Agent is waiting for input.
3. Read the event log
Read public events in chronological order.4. Attach a file
Add a file to the Thread when the Agent needs input from a document or payload.Common next calls
Create a Thread
Start a new API interaction with a published Agent.
Send events
Continue a Thread with messages, permission decisions, or interrupts.
List events
Read the public event log for a Thread.
Add files
Attach base64-encoded files to a Thread.
Notes
- A token alone does not unlock every Agent.
- The Agent must be published.
- The caller must pass Organization membership and Agent access checks.
- Service tokens must select published Agents explicitly.
- Use
Idempotency-Keyfor retry-safe create-thread and send-events calls.