POST
/
apps
/
{app_id}
/
workflows
/
{workflow_id}
/
runs
/
{run_id}
/
replay
curl --request POST \
  --url https://api.withcortex.ai/apps/{app_id}/workflows/{workflow_id}/runs/{run_id}/replay \
  --header 'Content-Type: application/json' \
  --data '{
  "stepKey": "<string>",
  "stream": true
}'
{
  "id": "<string>",
  "input": {},
  "output": [
    {
      "status": "RUNNING",
      "key": "<string>",
      "output": "<any>",
      "start": 123
    }
  ],
  "status": "PENDING",
  "origin": "WORKFLOW",
  "started_at": "2023-12-25",
  "ended_at": "2023-12-25",
  "workflow_id": "<string>",
  "workflow_version_draft": {
    "key": "<string>",
    "input": {},
    "input_default": {},
    "steps": [
      {
        "type": "code",
        "key": "<string>",
        "conditional": "<string>",
        "loop": "<string>",
        "code": "<string>"
      }
    ]
  },
  "workflow_version": {
    "id": "<string>",
    "description": "<string>",
    "version": 123,
    "created_at": "2023-12-25",
    "key": "<string>",
    "input": {},
    "input_default": {},
    "steps": [
      {
        "type": "code",
        "key": "<string>",
        "conditional": "<string>",
        "loop": "<string>",
        "code": "<string>"
      }
    ]
  },
  "created_at": "2023-12-25",
  "updated_at": "2023-12-25"
}

Path Parameters

app_id
string
required
workflow_id
string
required
run_id
string
required

Body

stepKey
string
required
stream
boolean

Response

200 - application/json
id
string
required
input
object | null
required
output
object[] | null
required
status
enum<string>
required
Available options:
PENDING,
RUNNING,
COMPLETED,
SKIPPED,
FAILED
origin
enum<string>
required
Available options:
WORKFLOW,
RECORD,
TEST
started_at
string | null
required
ended_at
string | null
required
workflow_id
string
required
workflow_version_draft
object | null
required
workflow_version
object | null
required
created_at
string | null
required
updated_at
string | null
required