curl -X POST https://api.avoca.ai/v1/scheduling/appointments \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Workspace-ID: YOUR_WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"customer": {
"first_name": "John",
"last_name": "Smith",
"phone": "+13105559876",
"email": "john.smith@email.com",
"preferred_contact_method": "sms"
},
"service_location": {
"address": "123 Main St",
"city": "Los Angeles",
"state": "CA",
"zip": "90210",
"access_notes": "Gate code: 1234"
},
"service_details": {
"type": "water_heater_repair",
"description": "Water heater not producing hot water. Started yesterday morning.",
"urgency": "standard"
},
"appointment_slot": {
"date": "2024-01-20",
"start_time": "09:00",
"end_time": "11:00",
"technician_id": "tech_123"
},
"source": "api",
"notes": "Customer prefers morning appointments. Dog in backyard.",
"marketing_consent": true
}'