Skip to main content
Every agent run produces a complete audit trail — the final output, every tool call, token usage, and execution logs. Two ways to get notified when a run completes: polling and webhooks.

Polling status

Endpoint
Lightweight endpoint — returns only the status and timing, no output or steps.
Response
Poll every 2-5 seconds. Status is a lightweight read — no rate limit concerns at this interval.

Getting full results

Endpoint
Returns everything: the output, every step the agent took, token usage, and execution logs.
Response

Response fields

Step types


Watching runs

Register an HTTPS callback URL to get notified when a run completes. Useful for production workflows where you don’t want to poll.
Endpoint

Callback requirements

The callback is best-effort. Always treat /run/:id/details as the source of truth. Use watchers to trigger your workflow, then fetch the full details.

Production polling pattern

For production use, wrap polling in a timeout:

Next: Sandbox environment

Learn what tools and capabilities are available inside the sandbox →