Prerequisites
- A Nanonets workspace with at least one agent.
- A workspace API key. See Authentication for how to mint one.
- The agent’s UUID, visible in the dashboard URL when you open the agent.
1. Start a task
task_id immediately; the agent runs asynchronously.
Response
2. Attach files (optional)
For agents that take documents as input, sendmultipart/form-data instead:
files once per file.
3. Poll for the result
Lightweight status check:status becomes completed, fetch the answer:
4. Reply when the agent asks
If the agent needs more input mid-task, the status becomeswaiting_for_input. Continue
the conversation with:
status is terminal.