curl -X POST https://api.avoca.ai/v1/outbound/happy-calls/schedule \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Workspace-ID: YOUR_WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"team_id": 123,
"customer_name": "Jane Smith",
"phone_number": "+13105551234",
"job_id": "12345",
"service_date": "2024-01-19",
"technician_name": "Mike Johnson",
"service_type": "AC Repair",
"invoice_total": 450.00,
"schedule_options": {
"delay_hours": 24,
"preferred_time": "afternoon",
"timezone": "America/Los_Angeles"
},
"questions": [
{
"id": "satisfaction",
"text": "How satisfied were you with our service?",
"type": "rating",
"required": true
},
{
"id": "technician_rating",
"text": "How would you rate your technician, Mike?",
"type": "rating",
"required": true
},
{
"id": "recommend",
"text": "Would you recommend us to friends and family?",
"type": "yes_no",
"required": true
}
],
"review_platforms": ["google", "facebook"]
}'