Skip to main content
POST
/
executions
/
runRecoveryAgent
Run workflow recovery agent
curl --request POST \
  --url https://api.kaizenautomation.com/executions/runRecoveryAgent \
  --header 'Content-Type: application/json' \
  --data '{
  "sessionId": "session_456",
  "recoveryText": "Click the submit button and verify the form was submitted successfully"
}'
{
  "success": true,
  "message": "Workflow recovery agent enqueued successfully"
}

Body

application/json
sessionId
string
required

The session ID to run recovery agent for

Example:

"session_456"

recoveryText
string

Optional custom recovery instruction text. If provided, this will be used instead of auto-generating the instruction from persisted error context.

Required string length: 1 - 4000
Example:

"Click the submit button and verify the form was submitted successfully"

Response

Recovery agent job enqueued successfully

success
boolean
required

Whether the recovery agent was successfully enqueued

Example:

true

message
string
required

Status message

Example:

"Workflow recovery agent enqueued successfully"