Job run management and monitoring
List runs
Authorization
bearerAuth In: header
Query Parameters
"delayed" | "queued" | "dequeued" | "executing" | "waiting" | "completed" | "failed" | "timed_out" | "crashed" | "system_failed" | "canceled" | "expired" | "dead_letter"50date-timeFilter by trigger source (manual, cron, spawn, workflow, retry, event)
Filter runs by batch operation ID
JSON object for JSONB containment filter on run payload
Response Body
application/json
curl -X GET "http://localhost:8080/v1/runs?project_id=string"[
{
"id": "string",
"job_id": "string",
"project_id": "string",
"status": "delayed",
"attempt": 0,
"payload": {},
"result": {},
"metadata": {
"property1": "string",
"property2": "string"
},
"error": "string",
"triggered_by": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"heartbeat_at": "2019-08-24T14:15:22Z",
"next_retry_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"parent_run_id": "string",
"priority": 0,
"idempotency_key": "string",
"job_version": 0,
"workflow_step_run_id": "string",
"max_attempts_override": 0,
"timeout_secs_override": 0,
"retry_backoff": "string",
"retry_initial_delay_secs": 0,
"retry_max_delay_secs": 0,
"execution_trace": {
"queue_wait_ms": 0,
"dequeue_ms": 0,
"connect_ms": 0,
"ttfb_ms": 0,
"transfer_ms": 0,
"total_ms": 0,
"dispatch_ms": 0
},
"debug_mode": true,
"continuation_of": "string",
"lineage_depth": 0,
"tags": {
"property1": "string",
"property2": "string"
},
"job_version_id": "string",
"created_by": "string",
"batch_id": "string",
"concurrency_key": "string",
"created_at": "2019-08-24T14:15:22Z"
}
]List dead-lettered runs
Authorization
bearerAuth In: header
Query Parameters
Response Body
application/json
curl -X GET "http://localhost:8080/v1/runs/dlq?project_id=string"[
{
"id": "string",
"job_id": "string",
"project_id": "string",
"status": "delayed",
"attempt": 0,
"payload": {},
"result": {},
"metadata": {
"property1": "string",
"property2": "string"
},
"error": "string",
"triggered_by": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"heartbeat_at": "2019-08-24T14:15:22Z",
"next_retry_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"parent_run_id": "string",
"priority": 0,
"idempotency_key": "string",
"job_version": 0,
"workflow_step_run_id": "string",
"max_attempts_override": 0,
"timeout_secs_override": 0,
"retry_backoff": "string",
"retry_initial_delay_secs": 0,
"retry_max_delay_secs": 0,
"execution_trace": {
"queue_wait_ms": 0,
"dequeue_ms": 0,
"connect_ms": 0,
"ttfb_ms": 0,
"transfer_ms": 0,
"total_ms": 0,
"dispatch_ms": 0
},
"debug_mode": true,
"continuation_of": "string",
"lineage_depth": 0,
"tags": {
"property1": "string",
"property2": "string"
},
"job_version_id": "string",
"created_by": "string",
"batch_id": "string",
"concurrency_key": "string",
"created_at": "2019-08-24T14:15:22Z"
}
]Cancel multiple runs
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "http://localhost:8080/v1/runs/bulk-cancel" \ -H "Content-Type: application/json" \ -d '{}'{
"results": [
{
"id": "string",
"status": "string",
"error": "string"
}
],
"total": 0,
"canceled": 0,
"failed": 0
}Get a run
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
curl -X GET "http://localhost:8080/v1/runs/string"{
"id": "string",
"job_id": "string",
"project_id": "string",
"status": "delayed",
"attempt": 0,
"payload": {},
"result": {},
"metadata": {
"property1": "string",
"property2": "string"
},
"error": "string",
"triggered_by": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"heartbeat_at": "2019-08-24T14:15:22Z",
"next_retry_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"parent_run_id": "string",
"priority": 0,
"idempotency_key": "string",
"job_version": 0,
"workflow_step_run_id": "string",
"max_attempts_override": 0,
"timeout_secs_override": 0,
"retry_backoff": "string",
"retry_initial_delay_secs": 0,
"retry_max_delay_secs": 0,
"execution_trace": {
"queue_wait_ms": 0,
"dequeue_ms": 0,
"connect_ms": 0,
"ttfb_ms": 0,
"transfer_ms": 0,
"total_ms": 0,
"dispatch_ms": 0
},
"debug_mode": true,
"continuation_of": "string",
"lineage_depth": 0,
"tags": {
"property1": "string",
"property2": "string"
},
"job_version_id": "string",
"created_by": "string",
"batch_id": "string",
"concurrency_key": "string",
"created_at": "2019-08-24T14:15:22Z"
}Cancel a run
Authorization
bearerAuth In: header
Path Parameters
Response Body
curl -X DELETE "http://localhost:8080/v1/runs/string"Replay a failed run
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
curl -X POST "http://localhost:8080/v1/runs/string/replay"{
"id": "string",
"job_id": "string",
"project_id": "string",
"status": "delayed",
"attempt": 0,
"payload": {},
"result": {},
"metadata": {
"property1": "string",
"property2": "string"
},
"error": "string",
"triggered_by": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"heartbeat_at": "2019-08-24T14:15:22Z",
"next_retry_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"parent_run_id": "string",
"priority": 0,
"idempotency_key": "string",
"job_version": 0,
"workflow_step_run_id": "string",
"max_attempts_override": 0,
"timeout_secs_override": 0,
"retry_backoff": "string",
"retry_initial_delay_secs": 0,
"retry_max_delay_secs": 0,
"execution_trace": {
"queue_wait_ms": 0,
"dequeue_ms": 0,
"connect_ms": 0,
"ttfb_ms": 0,
"transfer_ms": 0,
"total_ms": 0,
"dispatch_ms": 0
},
"debug_mode": true,
"continuation_of": "string",
"lineage_depth": 0,
"tags": {
"property1": "string",
"property2": "string"
},
"job_version_id": "string",
"created_by": "string",
"batch_id": "string",
"concurrency_key": "string",
"created_at": "2019-08-24T14:15:22Z"
}Replay a dead-lettered run
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
curl -X POST "http://localhost:8080/v1/runs/string/dlq-replay"{
"id": "string",
"job_id": "string",
"project_id": "string",
"status": "delayed",
"attempt": 0,
"payload": {},
"result": {},
"metadata": {
"property1": "string",
"property2": "string"
},
"error": "string",
"triggered_by": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"heartbeat_at": "2019-08-24T14:15:22Z",
"next_retry_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"parent_run_id": "string",
"priority": 0,
"idempotency_key": "string",
"job_version": 0,
"workflow_step_run_id": "string",
"max_attempts_override": 0,
"timeout_secs_override": 0,
"retry_backoff": "string",
"retry_initial_delay_secs": 0,
"retry_max_delay_secs": 0,
"execution_trace": {
"queue_wait_ms": 0,
"dequeue_ms": 0,
"connect_ms": 0,
"ttfb_ms": 0,
"transfer_ms": 0,
"total_ms": 0,
"dispatch_ms": 0
},
"debug_mode": true,
"continuation_of": "string",
"lineage_depth": 0,
"tags": {
"property1": "string",
"property2": "string"
},
"job_version_id": "string",
"created_by": "string",
"batch_id": "string",
"concurrency_key": "string",
"created_at": "2019-08-24T14:15:22Z"
}Bulk replay dead-lettered runs
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "http://localhost:8080/v1/runs/bulk-dlq-replay" \ -H "Content-Type: application/json" \ -d '{}'{
"replayed": [
{
"id": "string",
"job_id": "string",
"project_id": "string",
"status": "delayed",
"attempt": 0,
"payload": {},
"result": {},
"metadata": {
"property1": "string",
"property2": "string"
},
"error": "string",
"triggered_by": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"heartbeat_at": "2019-08-24T14:15:22Z",
"next_retry_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"parent_run_id": "string",
"priority": 0,
"idempotency_key": "string",
"job_version": 0,
"workflow_step_run_id": "string",
"max_attempts_override": 0,
"timeout_secs_override": 0,
"retry_backoff": "string",
"retry_initial_delay_secs": 0,
"retry_max_delay_secs": 0,
"execution_trace": {
"queue_wait_ms": 0,
"dequeue_ms": 0,
"connect_ms": 0,
"ttfb_ms": 0,
"transfer_ms": 0,
"total_ms": 0,
"dispatch_ms": 0
},
"debug_mode": true,
"continuation_of": "string",
"lineage_depth": 0,
"tags": {
"property1": "string",
"property2": "string"
},
"job_version_id": "string",
"created_by": "string",
"batch_id": "string",
"concurrency_key": "string",
"created_at": "2019-08-24T14:15:22Z"
}
],
"count": 0
}{
"error": "string",
"request_id": "string"
}{
"error": "string",
"request_id": "string"
}Cancel all runs matching filters
Authorization
bearerAuth In: header
Query Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "http://localhost:8080/v1/runs/bulk-cancel-all?project_id=string" \ -H "Content-Type: application/json" \ -d '{}'{
"results": [
{
"id": "string",
"status": "string",
"error": "string"
}
],
"total": 0,
"canceled": 0,
"failed": 0
}Replay multiple runs by ID
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "http://localhost:8080/v1/runs/bulk-replay" \ -H "Content-Type: application/json" \ -d '{ "run_ids": [ "string" ] }'[
{
"id": "string",
"job_id": "string",
"project_id": "string",
"status": "delayed",
"attempt": 0,
"payload": {},
"result": {},
"metadata": {
"property1": "string",
"property2": "string"
},
"error": "string",
"triggered_by": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"heartbeat_at": "2019-08-24T14:15:22Z",
"next_retry_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"parent_run_id": "string",
"priority": 0,
"idempotency_key": "string",
"job_version": 0,
"workflow_step_run_id": "string",
"max_attempts_override": 0,
"timeout_secs_override": 0,
"retry_backoff": "string",
"retry_initial_delay_secs": 0,
"retry_max_delay_secs": 0,
"execution_trace": {
"queue_wait_ms": 0,
"dequeue_ms": 0,
"connect_ms": 0,
"ttfb_ms": 0,
"transfer_ms": 0,
"total_ms": 0,
"dispatch_ms": 0
},
"debug_mode": true,
"continuation_of": "string",
"lineage_depth": 0,
"tags": {
"property1": "string",
"property2": "string"
},
"job_version_id": "string",
"created_by": "string",
"batch_id": "string",
"concurrency_key": "string",
"created_at": "2019-08-24T14:15:22Z"
}
]SSE event stream
Authorization
bearerAuth In: header
Path Parameters
Response Body
text/event-stream
curl -X GET "http://localhost:8080/v1/runs/string/stream""string"List child runs
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
curl -X GET "http://localhost:8080/v1/runs/string/children"[
{
"id": "string",
"job_id": "string",
"project_id": "string",
"status": "delayed",
"attempt": 0,
"payload": {},
"result": {},
"metadata": {
"property1": "string",
"property2": "string"
},
"error": "string",
"triggered_by": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"heartbeat_at": "2019-08-24T14:15:22Z",
"next_retry_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"parent_run_id": "string",
"priority": 0,
"idempotency_key": "string",
"job_version": 0,
"workflow_step_run_id": "string",
"max_attempts_override": 0,
"timeout_secs_override": 0,
"retry_backoff": "string",
"retry_initial_delay_secs": 0,
"retry_max_delay_secs": 0,
"execution_trace": {
"queue_wait_ms": 0,
"dequeue_ms": 0,
"connect_ms": 0,
"ttfb_ms": 0,
"transfer_ms": 0,
"total_ms": 0,
"dispatch_ms": 0
},
"debug_mode": true,
"continuation_of": "string",
"lineage_depth": 0,
"tags": {
"property1": "string",
"property2": "string"
},
"job_version_id": "string",
"created_by": "string",
"batch_id": "string",
"concurrency_key": "string",
"created_at": "2019-08-24T14:15:22Z"
}
]List run events
Authorization
bearerAuth In: header
Path Parameters
Query Parameters
Response Body
application/json
curl -X GET "http://localhost:8080/v1/runs/string/events"[
{
"id": "string",
"run_id": "string",
"type": "string",
"level": "string",
"message": "string",
"data": {},
"created_at": "2019-08-24T14:15:22Z"
}
]List run checkpoints
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
curl -X GET "http://localhost:8080/v1/runs/string/checkpoints"[
{
"id": "string",
"run_id": "string",
"sequence": 0,
"source": "string",
"state": {},
"created_at": "2019-08-24T14:15:22Z"
}
]List run AI model usage
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
curl -X GET "http://localhost:8080/v1/runs/string/usage"[
{
"id": "string",
"run_id": "string",
"provider": "string",
"model": "string",
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0,
"cost_microusd": 0,
"created_at": "2019-08-24T14:15:22Z"
}
]List run tool calls
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
curl -X GET "http://localhost:8080/v1/runs/string/tool-calls"[
{
"id": "string",
"run_id": "string",
"tool_name": "string",
"input": {},
"output": {},
"duration_ms": 0,
"status": "string",
"created_at": "2019-08-24T14:15:22Z"
}
]List run structured outputs
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
curl -X GET "http://localhost:8080/v1/runs/string/outputs"[
{
"id": "string",
"run_id": "string",
"output_key": "string",
"schema": {},
"value": {},
"created_at": "2019-08-24T14:15:22Z"
}
]Get debug bundle
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
curl -X GET "http://localhost:8080/v1/runs/string/debug-bundle"{
"run": {
"id": "string",
"job_id": "string",
"project_id": "string",
"status": "delayed",
"attempt": 0,
"payload": {},
"result": {},
"metadata": {
"property1": "string",
"property2": "string"
},
"error": "string",
"triggered_by": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"heartbeat_at": "2019-08-24T14:15:22Z",
"next_retry_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"parent_run_id": "string",
"priority": 0,
"idempotency_key": "string",
"job_version": 0,
"workflow_step_run_id": "string",
"max_attempts_override": 0,
"timeout_secs_override": 0,
"retry_backoff": "string",
"retry_initial_delay_secs": 0,
"retry_max_delay_secs": 0,
"execution_trace": {
"queue_wait_ms": 0,
"dequeue_ms": 0,
"connect_ms": 0,
"ttfb_ms": 0,
"transfer_ms": 0,
"total_ms": 0,
"dispatch_ms": 0
},
"debug_mode": true,
"continuation_of": "string",
"lineage_depth": 0,
"tags": {
"property1": "string",
"property2": "string"
},
"job_version_id": "string",
"created_by": "string",
"batch_id": "string",
"concurrency_key": "string",
"created_at": "2019-08-24T14:15:22Z"
},
"events": [
{
"id": "string",
"run_id": "string",
"type": "string",
"level": "string",
"message": "string",
"data": {},
"created_at": "2019-08-24T14:15:22Z"
}
],
"checkpoints": [
{
"id": "string",
"run_id": "string",
"sequence": 0,
"source": "string",
"state": {},
"created_at": "2019-08-24T14:15:22Z"
}
],
"usage": [
{
"id": "string",
"run_id": "string",
"provider": "string",
"model": "string",
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0,
"cost_microusd": 0,
"created_at": "2019-08-24T14:15:22Z"
}
],
"tool_calls": [
{
"id": "string",
"run_id": "string",
"tool_name": "string",
"input": {},
"output": {},
"duration_ms": 0,
"status": "string",
"created_at": "2019-08-24T14:15:22Z"
}
],
"outputs": [
{
"id": "string",
"run_id": "string",
"output_key": "string",
"schema": {},
"value": {},
"created_at": "2019-08-24T14:15:22Z"
}
]
}Enable/disable debug mode
Authorization
bearerAuth In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "http://localhost:8080/v1/runs/string/debug" \ -H "Content-Type: application/json" \ -d '{}'List run continuation lineage
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
curl -X GET "http://localhost:8080/v1/runs/string/lineage"[
{
"id": "string",
"job_id": "string",
"project_id": "string",
"status": "delayed",
"attempt": 0,
"payload": {},
"result": {},
"metadata": {
"property1": "string",
"property2": "string"
},
"error": "string",
"triggered_by": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"heartbeat_at": "2019-08-24T14:15:22Z",
"next_retry_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"parent_run_id": "string",
"priority": 0,
"idempotency_key": "string",
"job_version": 0,
"workflow_step_run_id": "string",
"max_attempts_override": 0,
"timeout_secs_override": 0,
"retry_backoff": "string",
"retry_initial_delay_secs": 0,
"retry_max_delay_secs": 0,
"execution_trace": {
"queue_wait_ms": 0,
"dequeue_ms": 0,
"connect_ms": 0,
"ttfb_ms": 0,
"transfer_ms": 0,
"total_ms": 0,
"dispatch_ms": 0
},
"debug_mode": true,
"continuation_of": "string",
"lineage_depth": 0,
"tags": {
"property1": "string",
"property2": "string"
},
"job_version_id": "string",
"created_by": "string",
"batch_id": "string",
"concurrency_key": "string",
"created_at": "2019-08-24T14:15:22Z"
}
]Get dependency status for a run
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
curl -X GET "http://localhost:8080/v1/runs/string/dependency-status"{
"run_id": "string",
"job_id": "string",
"status": "delayed",
"dependencies": [
{
"id": "string",
"job_id": "string",
"depends_on_job_id": "string",
"condition": "string",
"created_at": "2019-08-24T14:15:22Z"
}
],
"dependencies_satisfied": true
}Reset idempotency key for a run
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
curl -X DELETE "http://localhost:8080/v1/runs/string/idempotency-key"{
"status": "string",
"run_id": "string"
}Reschedule a run
Authorization
bearerAuth In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "http://localhost:8080/v1/runs/string/reschedule" \ -H "Content-Type: application/json" \ -d '{ "scheduled_at": "2019-08-24T14:15:22Z" }'{
"id": "string",
"job_id": "string",
"project_id": "string",
"status": "delayed",
"attempt": 0,
"payload": {},
"result": {},
"metadata": {
"property1": "string",
"property2": "string"
},
"error": "string",
"triggered_by": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"heartbeat_at": "2019-08-24T14:15:22Z",
"next_retry_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"parent_run_id": "string",
"priority": 0,
"idempotency_key": "string",
"job_version": 0,
"workflow_step_run_id": "string",
"max_attempts_override": 0,
"timeout_secs_override": 0,
"retry_backoff": "string",
"retry_initial_delay_secs": 0,
"retry_max_delay_secs": 0,
"execution_trace": {
"queue_wait_ms": 0,
"dequeue_ms": 0,
"connect_ms": 0,
"ttfb_ms": 0,
"transfer_ms": 0,
"total_ms": 0,
"dispatch_ms": 0
},
"debug_mode": true,
"continuation_of": "string",
"lineage_depth": 0,
"tags": {
"property1": "string",
"property2": "string"
},
"job_version_id": "string",
"created_by": "string",
"batch_id": "string",
"concurrency_key": "string",
"created_at": "2019-08-24T14:15:22Z"
}Pause a managed run
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
curl -X POST "http://localhost:8080/v1/runs/string/pause"{
"id": "string",
"job_id": "string",
"project_id": "string",
"status": "delayed",
"attempt": 0,
"payload": {},
"result": {},
"metadata": {
"property1": "string",
"property2": "string"
},
"error": "string",
"triggered_by": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"heartbeat_at": "2019-08-24T14:15:22Z",
"next_retry_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"parent_run_id": "string",
"priority": 0,
"idempotency_key": "string",
"job_version": 0,
"workflow_step_run_id": "string",
"max_attempts_override": 0,
"timeout_secs_override": 0,
"retry_backoff": "string",
"retry_initial_delay_secs": 0,
"retry_max_delay_secs": 0,
"execution_trace": {
"queue_wait_ms": 0,
"dequeue_ms": 0,
"connect_ms": 0,
"ttfb_ms": 0,
"transfer_ms": 0,
"total_ms": 0,
"dispatch_ms": 0
},
"debug_mode": true,
"continuation_of": "string",
"lineage_depth": 0,
"tags": {
"property1": "string",
"property2": "string"
},
"job_version_id": "string",
"created_by": "string",
"batch_id": "string",
"concurrency_key": "string",
"created_at": "2019-08-24T14:15:22Z"
}Resume a paused run
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
curl -X POST "http://localhost:8080/v1/runs/string/resume"{
"id": "string",
"job_id": "string",
"project_id": "string",
"status": "delayed",
"attempt": 0,
"payload": {},
"result": {},
"metadata": {
"property1": "string",
"property2": "string"
},
"error": "string",
"triggered_by": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"heartbeat_at": "2019-08-24T14:15:22Z",
"next_retry_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"parent_run_id": "string",
"priority": 0,
"idempotency_key": "string",
"job_version": 0,
"workflow_step_run_id": "string",
"max_attempts_override": 0,
"timeout_secs_override": 0,
"retry_backoff": "string",
"retry_initial_delay_secs": 0,
"retry_max_delay_secs": 0,
"execution_trace": {
"queue_wait_ms": 0,
"dequeue_ms": 0,
"connect_ms": 0,
"ttfb_ms": 0,
"transfer_ms": 0,
"total_ms": 0,
"dispatch_ms": 0
},
"debug_mode": true,
"continuation_of": "string",
"lineage_depth": 0,
"tags": {
"property1": "string",
"property2": "string"
},
"job_version_id": "string",
"created_by": "string",
"batch_id": "string",
"concurrency_key": "string",
"created_at": "2019-08-24T14:15:22Z"
}Restart a managed run with optional preset override
Authorization
bearerAuth In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "http://localhost:8080/v1/runs/string/restart" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "string",
"job_id": "string",
"project_id": "string",
"status": "delayed",
"attempt": 0,
"payload": {},
"result": {},
"metadata": {
"property1": "string",
"property2": "string"
},
"error": "string",
"triggered_by": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"heartbeat_at": "2019-08-24T14:15:22Z",
"next_retry_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"parent_run_id": "string",
"priority": 0,
"idempotency_key": "string",
"job_version": 0,
"workflow_step_run_id": "string",
"max_attempts_override": 0,
"timeout_secs_override": 0,
"retry_backoff": "string",
"retry_initial_delay_secs": 0,
"retry_max_delay_secs": 0,
"execution_trace": {
"queue_wait_ms": 0,
"dequeue_ms": 0,
"connect_ms": 0,
"ttfb_ms": 0,
"transfer_ms": 0,
"total_ms": 0,
"dispatch_ms": 0
},
"debug_mode": true,
"continuation_of": "string",
"lineage_depth": 0,
"tags": {
"property1": "string",
"property2": "string"
},
"job_version_id": "string",
"created_by": "string",
"batch_id": "string",
"concurrency_key": "string",
"created_at": "2019-08-24T14:15:22Z"
}SSE stream of LLM chunks
Authorization
bearerAuth In: header
Path Parameters
Response Body
curl -X GET "http://localhost:8080/v1/runs/string/stream/chunks"List run state (management API)
Authorization
bearerAuth In: header
Path Parameters
Response Body
curl -X GET "http://localhost:8080/v1/runs/string/state"