curl https://api.rotavision.com/v1/orchestrate/executions/exec_xyz789 \
-H "Authorization: Bearer rv_live_..."
{
"id": "exec_xyz789",
"workflow_id": "wf_abc123",
"workflow_name": "Customer Support Triage",
"status": "completed",
"inputs": {
"ticket": "I have been waiting for my refund for 2 weeks. Order #12345. This is unacceptable!"
},
"outputs": {
"category": "refund",
"priority": "high",
"response": "Dear Customer,\n\nI sincerely apologize for the delay with your refund for Order #12345. I understand how frustrating this must be, and I want to resolve this for you immediately.\n\nI've escalated your case to our finance team with urgent priority. You should receive your refund within 24-48 hours.\n\nAs a gesture of goodwill, I've also added a ₹500 credit to your account for future purchases.\n\nPlease don't hesitate to reach out if you have any other concerns.\n\nBest regards,\nSupport Team"
},
"steps": [
{
"id": "step_1",
"agent": "classifier",
"status": "completed",
"output": {
"category": "refund",
"priority": "high",
"sentiment": "frustrated"
},
"duration_ms": 450
},
{
"id": "step_2",
"agent": "escalation",
"status": "completed",
"output": {
"approved": true,
"approved_by": "[email protected]",
"notes": "Approve - customer has valid complaint"
},
"duration_ms": 125000
},
{
"id": "step_3",
"agent": "responder",
"status": "completed",
"output": {
"response": "Dear Customer..."
},
"duration_ms": 1200
}
],
"cost": {
"usd": 0.012,
"inr": 1.00
},
"duration_ms": 126650,
"created_at": "2026-02-01T10:30:00Z",
"completed_at": "2026-02-01T10:32:07Z"
}
Get workflow execution status and results
curl https://api.rotavision.com/v1/orchestrate/executions/exec_xyz789 \
-H "Authorization: Bearer rv_live_..."
{
"id": "exec_xyz789",
"workflow_id": "wf_abc123",
"workflow_name": "Customer Support Triage",
"status": "completed",
"inputs": {
"ticket": "I have been waiting for my refund for 2 weeks. Order #12345. This is unacceptable!"
},
"outputs": {
"category": "refund",
"priority": "high",
"response": "Dear Customer,\n\nI sincerely apologize for the delay with your refund for Order #12345. I understand how frustrating this must be, and I want to resolve this for you immediately.\n\nI've escalated your case to our finance team with urgent priority. You should receive your refund within 24-48 hours.\n\nAs a gesture of goodwill, I've also added a ₹500 credit to your account for future purchases.\n\nPlease don't hesitate to reach out if you have any other concerns.\n\nBest regards,\nSupport Team"
},
"steps": [
{
"id": "step_1",
"agent": "classifier",
"status": "completed",
"output": {
"category": "refund",
"priority": "high",
"sentiment": "frustrated"
},
"duration_ms": 450
},
{
"id": "step_2",
"agent": "escalation",
"status": "completed",
"output": {
"approved": true,
"approved_by": "[email protected]",
"notes": "Approve - customer has valid complaint"
},
"duration_ms": 125000
},
{
"id": "step_3",
"agent": "responder",
"status": "completed",
"output": {
"response": "Dear Customer..."
},
"duration_ms": 1200
}
],
"cost": {
"usd": 0.012,
"inr": 1.00
},
"duration_ms": 126650,
"created_at": "2026-02-01T10:30:00Z",
"completed_at": "2026-02-01T10:32:07Z"
}
curl https://api.rotavision.com/v1/orchestrate/executions/exec_xyz789 \
-H "Authorization: Bearer rv_live_..."
{
"id": "exec_xyz789",
"workflow_id": "wf_abc123",
"workflow_name": "Customer Support Triage",
"status": "completed",
"inputs": {
"ticket": "I have been waiting for my refund for 2 weeks. Order #12345. This is unacceptable!"
},
"outputs": {
"category": "refund",
"priority": "high",
"response": "Dear Customer,\n\nI sincerely apologize for the delay with your refund for Order #12345. I understand how frustrating this must be, and I want to resolve this for you immediately.\n\nI've escalated your case to our finance team with urgent priority. You should receive your refund within 24-48 hours.\n\nAs a gesture of goodwill, I've also added a ₹500 credit to your account for future purchases.\n\nPlease don't hesitate to reach out if you have any other concerns.\n\nBest regards,\nSupport Team"
},
"steps": [
{
"id": "step_1",
"agent": "classifier",
"status": "completed",
"output": {
"category": "refund",
"priority": "high",
"sentiment": "frustrated"
},
"duration_ms": 450
},
{
"id": "step_2",
"agent": "escalation",
"status": "completed",
"output": {
"approved": true,
"approved_by": "[email protected]",
"notes": "Approve - customer has valid complaint"
},
"duration_ms": 125000
},
{
"id": "step_3",
"agent": "responder",
"status": "completed",
"output": {
"response": "Dear Customer..."
},
"duration_ms": 1200
}
],
"cost": {
"usd": 0.012,
"inr": 1.00
},
"duration_ms": 126650,
"created_at": "2026-02-01T10:30:00Z",
"completed_at": "2026-02-01T10:32:07Z"
}
curl -X POST https://api.rotavision.com/v1/orchestrate/executions/exec_xyz789/approve \
-H "Authorization: Bearer rv_live_..." \
-H "Content-Type: application/json" \
-d '{
"approved": true,
"notes": "Approved - valid customer complaint"
}'