Skip to main content
GET
Get a run's result

Authorizations

Authorization
string
header
required

Your workspace's API key, from Settings → API. Sent as Authorization: Bearer dk_....

Path Parameters

automationId
string
required

The automation's id, as returned by GET /api/automations.

runId
string
required

A run id. A run is only readable through the automation that produced it.

Response

The run finished and this is what it produced.

runId
string
automation
string
status
enum<string>

running means it has not finished. error means it finished badly, and error on the run says why.

Available options:
running,
done,
error
duration
integer

Milliseconds.

result

Whatever the automation returned, unchanged. Often markdown, often an object. Ask the agent what a given automation returns, or read one finished run.