curl -X POST https://api.thinnest.ai/v1/agents \
-H "Authorization: Bearer $THINNESTAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Scheduling Assistant",
"model": "gpt-4o-mini",
"instructions": "You help callers book consultations. Check availability first, confirm all details (date, time, name, email), then book. Default duration: 30 minutes.",
"voiceEnabled": true,
"transcriber": { "provider": "deepgram", "model": "nova-2-conversationalai" },
"voice": { "provider": "deepgram", "voiceId": "aura-2-thalia-en" },
"appointmentBookingEnabled": true,
"appointmentCalendarId": "primary",
"appointmentDuration": 30,
"appointmentTimezone": "America/New_York",
"appointmentBufferMinutes": 15,
"appointmentConfirmationMessage": "Your appointment has been booked for {date} at {time}."
}'