Skip to main content
POST
Create Cron

Body

application/json

Request body for creating a cron job (stateless or thread-bound).

assistant_id
string
required
Maximum string length: 256
schedule
string
required
Maximum string length: 256
input
Input · object | null
metadata
Metadata · object | null
config
Config · object | null
context
Context · object | null
interrupt_before
Allowed value: "*"
interrupt_after
Allowed value: "*"
webhook
string | null
Maximum string length: 2048
on_run_completed
enum<string> | null
Available options:
delete,
keep
multitask_strategy
string | null
Maximum string length: 256
end_time
string<date-time> | null
enabled
boolean | null
stream_mode
stream_subgraphs
boolean | null
timezone
string | null
Maximum string length: 64

Response

Successful Response

Run entity model

Status values: pending, running, error, success, timeout, interrupted

run_id
string
required

Unique identifier for the run.

thread_id
string
required

Thread this run belongs to.

assistant_id
string
required

Assistant that is executing this run.

user_id
string
required

Identifier of the user who owns this run.

created_at
string<date-time>
required

Timestamp when the run was created.

updated_at
string<date-time>
required

Timestamp when the run was last updated.

status
string
default:pending

Current run status: pending, running, error, success, timeout, or interrupted.

input
Input · object | null

Input data provided to the run. None for checkpoint-only resume.

output
Output · object | null

Final output produced by the run, or null if not yet complete.

error_message
string | null

Error message if the run failed.

config
Config · object | null

Configuration passed to the graph at runtime.

context
Context · object | null

Context variables available during execution.