API Reference
Workflow execution management
List workflow runs
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Query Parameters
project_id*string
status?string
Value in
"pending" | "running" | "paused" | "completed" | "failed" | "timed_out" | "canceled"limit?integer
Default
50Response Body
application/json
curl -X GET "http://localhost:8080/v1/workflow-runs?project_id=string"[
{
"id": "string",
"workflow_id": "string",
"project_id": "string",
"status": "pending",
"triggered_by": "string",
"workflow_version": 0,
"max_parallel_steps": 0,
"payload": {},
"error": "string",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"retry_of_run_id": "string",
"parent_workflow_run_id": "string",
"parent_step_run_id": "string",
"tags": {
"property1": "string",
"property2": "string"
},
"workflow_version_id": "string",
"created_by": "string",
"created_at": "2019-08-24T14:15:22Z"
}
]Get a workflow run
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
workflowRunID*string
Response Body
application/json
curl -X GET "http://localhost:8080/v1/workflow-runs/string"{
"id": "string",
"workflow_id": "string",
"project_id": "string",
"status": "pending",
"triggered_by": "string",
"workflow_version": 0,
"max_parallel_steps": 0,
"payload": {},
"error": "string",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"retry_of_run_id": "string",
"parent_workflow_run_id": "string",
"parent_step_run_id": "string",
"tags": {
"property1": "string",
"property2": "string"
},
"workflow_version_id": "string",
"created_by": "string",
"created_at": "2019-08-24T14:15:22Z"
}Cancel a workflow run
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
workflowRunID*string
Response Body
curl -X DELETE "http://localhost:8080/v1/workflow-runs/string"Empty
List step runs
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
workflowRunID*string
Response Body
application/json
curl -X GET "http://localhost:8080/v1/workflow-runs/string/steps"[
{
"id": "string",
"workflow_run_id": "string",
"workflow_step_id": "string",
"step_ref": "string",
"job_run_id": "string",
"attempt": 0,
"status": "pending",
"deps_completed": 0,
"deps_required": 0,
"output": {},
"error": "string",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z"
}
]Pause a workflow run
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
workflowRunID*string
Response Body
curl -X POST "http://localhost:8080/v1/workflow-runs/string/pause"Empty
Resume a workflow run
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
workflowRunID*string
Response Body
curl -X POST "http://localhost:8080/v1/workflow-runs/string/resume"Empty
Retry from first failed step
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
workflowRunID*string
Response Body
application/json
curl -X POST "http://localhost:8080/v1/workflow-runs/string/retry"{
"id": "string",
"workflow_id": "string",
"project_id": "string",
"status": "pending",
"triggered_by": "string",
"workflow_version": 0,
"max_parallel_steps": 0,
"payload": {},
"error": "string",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"retry_of_run_id": "string",
"parent_workflow_run_id": "string",
"parent_step_run_id": "string",
"tags": {
"property1": "string",
"property2": "string"
},
"workflow_version_id": "string",
"created_by": "string",
"created_at": "2019-08-24T14:15:22Z"
}Approve an approval step
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
workflowRunID*string
stepRef*string
Response Body
curl -X POST "http://localhost:8080/v1/workflow-runs/string/steps/string/approve"Empty
Skip a step
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
workflowRunID*string
stepRef*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
reason?string
Response Body
curl -X POST "http://localhost:8080/v1/workflow-runs/string/steps/string/skip" \ -H "Content-Type: application/json" \ -d '{}'Empty
Force-complete a step
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
workflowRunID*string
stepRef*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
result?object
Response Body
curl -X POST "http://localhost:8080/v1/workflow-runs/string/steps/string/force-complete" \ -H "Content-Type: application/json" \ -d '{}'Empty
Retry a single workflow step
Path Parameters
workflowRunID*string
stepRef*string
Response Body
application/json
curl -X POST "http://localhost:8080/v1/workflow-runs/string/steps/string/retry"{
"step_run": {
"id": "string",
"workflow_run_id": "string",
"workflow_step_id": "string",
"step_ref": "string",
"job_run_id": "string",
"attempt": 0,
"status": "pending",
"deps_completed": 0,
"deps_required": 0,
"output": {},
"error": "string",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z"
}
}curl -X POST "http://localhost:8080/v1/workflow-runs/string/steps/string/replay-subtree"{
"reset_steps": 0
}Bulk cancel workflow runs
Authorization
bearerAuth AuthorizationBearer <token>
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/workflow-runs/bulk-cancel" \ -H "Content-Type: application/json" \ -d '{ "workflow_run_ids": [ "string" ] }'{
"canceled": 0,
"failed": 0
}Bulk replay workflow runs
Authorization
bearerAuth AuthorizationBearer <token>
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/workflow-runs/bulk-replay" \ -H "Content-Type: application/json" \ -d '{ "workflow_run_ids": [ "string" ] }'{
"replayed": 0,
"failed": 0
}Was this page helpful?