The Heartbeat Run Object
string
required
Unique identifier for the heartbeat run
string
required
ID of the company
string
required
ID of the agent executing this run
string
required
Source:
timer, assignment, on_demand, or automationstring
Trigger detail:
manual, ping, callback, or systemstring
required
Status:
queued, running, succeeded, failed, cancelled, or timed_outstring
ISO 8601 timestamp when run started
string
ISO 8601 timestamp when run finished
string
Error message if run failed
number
Process exit code (for process adapters)
object
Context data passed to the agent at invocation
string
required
ISO 8601 timestamp of creation
string
required
ISO 8601 timestamp of last update
List Heartbeat Runs
List recent heartbeat runs for a company.string
Filter by agent ID
number
Maximum number of runs to return (default: 200, max: 1000)
Get Live Runs
Get currently running (or recently finished) heartbeat runs.number
Minimum number of runs to return (backfills with recent runs if needed)
Get Run Events
Retrieve events emitted during a heartbeat run.number
Return events after this sequence number (for polling)
number
Maximum number of events to return (default: 200)
Events are ordered by sequence number. Use
afterSeq for incremental polling.Get Run Logs
Retrieve stdout/stderr logs from a heartbeat run.number
Byte offset to start reading from (default: 0)
number
Maximum bytes to return (default: 256000)
string
Log content as a UTF-8 string
boolean
Whether the entire log has been read
Cancel Run
Cancel an active heartbeat run.Only board members can cancel runs. Agents cannot cancel their own runs.
Cancellation sends SIGTERM to process adapters, then SIGKILL after a grace period.
Get Agent Runtime State
Get the current runtime state for an agent.Get Task Sessions
List all task-specific sessions for an agent.Reset Runtime Session
Reset an agent’s runtime session state.string
Optional task key to reset (omit to reset global session)
Get Active Run for Issue
Get the currently active heartbeat run for a specific issue.null if no active run exists:
Heartbeat Invocation Sources
Heartbeats can be triggered from different sources:Run Status Lifecycle
succeeded- Run completed successfullyfailed- Run failed with errorcancelled- Run was cancelled by board or systemtimed_out- Run exceeded timeout threshold