Skip to main content
POST
Run a schedule now
Minimum role required: Member

Authorizations

X-Axilio-Api-Key
string
header
required

Customer API key (axl_ prefix).

Path Parameters

agent_id
string<uuid>
required

The agent's id.

schedule_id
string<uuid>
required

The schedule's id.

Response

Created

A run: of a saved agent, or of an ad hoc task.

created_at
string<date-time>
required

Timestamp when the run record was created.

id
string<uuid>
required

Run identifier.

mode
enum<string>
required

agent: an agent works the task through a model. code: the agent's script runs.

Available options:
agent,
code
status
enum<string>
required

Current lifecycle state of the run. paused: the run waits on a person; see input_request.

Available options:
scheduled,
queued,
running,
paused,
completed,
failed,
cancelled
trigger
enum<string>
required

Trigger identifies how the run was initiated.

Available options:
manual,
scheduled,
api
updated_at
string<date-time>
required

Timestamp of the last update to the run record.

user_id
string<uuid>
required

User who initiated the run.

agent_id
string<uuid>

The agent the run is of; absent on an ad hoc run.

agent_name
string

The agent's name, on the run lists; absent on an ad hoc run.

cancelled_at
string<date-time>

Timestamp when the run was cancelled.

completed_at
string<date-time>

Timestamp when the run finished.

error
string

Why the run failed.

input_request
object

What a paused run asks a person; answer it with :resume.

keep_alive_expires_at
string<date-time>

Until when an ended agent-mode run holds its phone: :sendMessage before then continues the run there; after it, start a new run.

max_cost_microdollars
integer<int64>

Most the run's model steps may cost, in microdollars.

max_steps
integer<int64>

Most model steps the run may take.

model
string

The model the run's steps call, one of GET /models.

network
enum<string>

The network the run's code can reach: restricted reaches the phone only; internet adds the public internet.

Available options:
restricted,
internet
output
any

The run's result, which satisfies its output_schema.

output_schema
any

The JSON Schema the run's result must satisfy.

pause_timeout_seconds
integer<int64>

Longest the run waits paused for an answer, in seconds.

phone_id
string

Phone executing the run.

recording_enabled
boolean

An ad hoc run's own recording choice; absent takes the default (off), and a saved agent's run takes the agent's.

repair
object

On a code run: whether the agent took over after the script failed, and the fix it proposed.

result_text
string

A short account of the run's result.

revision_id
string<uuid>

The agent's revision the run was pinned to when it was made.

run_metadata
object

Arbitrary metadata attached to the run.

schedule_id
string<uuid>

The schedule that started the run, if one did.

session_id
string<uuid>

Session associated with this run.

start_at
string<date-time>

When the run was booked to start; absent for a run started on request.

start_timeout_seconds
integer<int64>

How long the queued run may wait for a phone before auto-cancel.

started_at
string<date-time>

Timestamp when the run began executing.

stream_url
string

The run's live event stream (Server-Sent Events), with a short-lived read-only token. Server clients can send the API key header instead.

success
boolean

Whether the run completed without error.

targets
object[] | null

The device the run drives.

task
string

An agent-mode run's task: the ad hoc task, or the agent's instructions.

telemetry_enabled
boolean

An ad hoc run's own telemetry choice; absent takes the default (on), and a saved agent's run takes the agent's.

timeout_seconds
integer<int64>

Longest the run may take, in seconds.

trace_expired_at
string<date-time>

When the trace recording was deleted.

turn
integer<int64>

An agent-mode run's current turn, from 1.

turns
object[] | null

Every turn of an agent-mode run, oldest first: the task, then each follow-up sent with :sendMessage.

usage
object

What the run's model steps used, across its turns.

variables
object

The run's inputs. Deleted once the finished run is older than the plan's run data retention window (30 days by default).

video_url
string

URL for the run recording video.