curl -X POST https://api.avoca.ai/v1/scheduling/simple-scheduler/config \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Workspace-ID: YOUR_WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"team_id": 123,
"primary_color": "#0066CC",
"logo_url": "https://example.com/logo.png",
"issue_types": ["HVAC", "Plumbing", "Electrical"],
"show_exact_timeslots": false,
"lead_time_minutes": 120,
"timeframe_hours": {
"morning": {
"start": 8,
"end": 12,
"label": "Morning (8AM-12PM)"
},
"afternoon": {
"start": 12,
"end": 17,
"label": "Afternoon (12PM-5PM)"
},
"evening": {
"start": 17,
"end": 20,
"label": "Evening (5PM-8PM)"
}
},
"dispatch_fee": "$89 dispatch fee",
"homeowner_required": true,
"additional_questions": [
{
"id": "property_type",
"question": "What type of property?",
"type": "select",
"options": ["Single Family Home", "Condo/Townhouse", "Commercial"],
"required": true
},
{
"id": "issue_description",
"question": "Please describe the issue",
"type": "text",
"required": true
}
],
"tags_required": [123, 456],
"confirmation_settings": {
"message": "Your appointment is confirmed! A technician will arrive during your selected window.",
"show_tracking": true,
"send_sms": true,
"send_email": true
},
"widget_position": "bottom-right",
"trigger_delay": 5
}'