콘텐츠로 이동

POST /resume

POST/resume

Resume Crew Execution with Human Feedback

**📋 Reference Example Only** - *This shows the request format. To test with your actual crew, copy the cURL example and replace the URL + token with your real values.* Resume a paused crew execution with human feedback for Human-in-the-Loop (HITL) workflows. When a task with `human_input=True` completes, the crew execution pauses and waits for human feedback. **IMPORTANT**: You must provide the same webhook URLs (`taskWebhookUrl`, `stepWebhookUrl`, `crewWebhookUrl`) that were used in the original kickoff call. Webhook configurations are NOT automatically carried over - they must be explicitly provided in the resume request to continue receiving notifications.

Request body
application/jsonobject
approve_and_continue
{
  "execution_id": "abcd1234-5678-90ef-ghij-klmnopqrstuv",
  "task_id": "research_task",
  "human_feedback": "Excellent research! Proceed to the next task.",
  "is_approve": true,
  "taskWebhookUrl": "https://api.example.com/webhooks/task",
  "stepWebhookUrl": "https://api.example.com/webhooks/step",
  "crewWebhookUrl": "https://api.example.com/webhooks/crew"
}
request_revision
{
  "execution_id": "abcd1234-5678-90ef-ghij-klmnopqrstuv",
  "task_id": "analysis_task",
  "human_feedback": "Please include more quantitative data and cite your sources.",
  "is_approve": false,
  "taskWebhookUrl": "https://api.example.com/webhooks/task",
  "crewWebhookUrl": "https://api.example.com/webhooks/crew"
}
Responses
200Execution resumed successfully
application/json
resumed
{
  "status": "resumed",
  "message": "Execution resumed successfully"
}
retrying
{
  "status": "retrying",
  "message": "Task will be retried with your feedback"
}
400Invalid request body or execution not in pending state
application/json
401인증 실패
application/json
404Execution ID or Task ID not found
application/json
500서버 내부 오류
application/json