send_message
Talks to an agent and waits for its answer.string
required
string
required
string
Continue an earlier conversation. Omit to start a new one.
number
How long to wait for the answer. Default
120, maximum 600.status: "running" with a runId, a note, and the run carries on in the background. Poll get_run for the result.
Response
An agent can pause mid-run to ask you something or request an approval. When that happens the run finishes with the question waiting in the app, and
output carries the agent last message. See Human in the loop.list_runs
Recent executions of an agent, newest first.string
required
number
Default
20, maximum 200.output. Use it to see whether a scheduled task or a webhook actually did anything.
The trigger field tells you where the run came from: chat, api, schedule:<slug> or trigger:<slug>.
get_run
One execution in full.string
required
string
required
boolean
Also return every tool the agent called, with its input and its result.
Response with includeToolCalls
running, done, error and cancelled. costUsd is the model cost of that run, and is null while it is still running.