الانتقال إلى المحتوى الرئيسي
POST
/
resume
curl --request POST \ --url https://your-actual-crew-name.crewai.com/resume \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "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" } '
{ "status": "resumed", "message": "Execution resumed successfully" }

التفويضات

Authorization
string
header
مطلوب

📋 Reference Documentation - The tokens shown in examples are placeholders for reference only.

Use your actual Bearer Token or User Bearer Token from the CrewAI AMP dashboard for real API calls.

Bearer Token: Organization-level access for full crew operations User Bearer Token: User-scoped access with limited permissions

الجسم

application/json
execution_id
string<uuid>
مطلوب

The unique identifier for the crew execution (from kickoff)

مثال:

"abcd1234-5678-90ef-ghij-klmnopqrstuv"

task_id
string
مطلوب

The ID of the task that requires human feedback

مثال:

"research_task"

human_feedback
string
مطلوب

Your feedback on the task output. This will be incorporated as additional context for subsequent task executions.

مثال:

"Great research! Please add more details about recent developments in the field."

is_approve
boolean
مطلوب

Whether you approve the task output: true = positive feedback (continue), false = negative feedback (retry task)

مثال:

true

taskWebhookUrl
string<uri>

Callback URL executed after each task completion. MUST be provided to continue receiving task notifications.

مثال:

"https://your-server.com/webhooks/task"

stepWebhookUrl
string<uri>

Callback URL executed after each agent thought/action. MUST be provided to continue receiving step notifications.

مثال:

"https://your-server.com/webhooks/step"

crewWebhookUrl
string<uri>

Callback URL executed when the crew execution completes. MUST be provided to receive completion notification.

مثال:

"https://your-server.com/webhooks/crew"

الاستجابة

Execution resumed successfully

status
enum<string>

Status of the resumed execution

الخيارات المتاحة:
resumed,
retrying,
completed
مثال:

"resumed"

message
string

Human-readable message about the resume operation

مثال:

"Execution resumed successfully"