curl -X POST https://api.thinnest.ai/v1/agents \
-H "Authorization: Bearer $THINNESTAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Monitored Sales Agent",
"model": "gpt-4o",
"instructions": "You are a sales agent. Handle inbound calls professionally and try to convert leads.",
"voiceEnabled": true,
"transcriber": { "provider": "deepgram", "model": "nova-2-conversationalai" },
"voice": { "provider": "deepgram", "voiceId": "aura-2-thalia-en" },
"callSummaryEnabled": true,
"callSummaryPrompt": "Summarize: key topics, action items, sentiment, and outcome.",
"callTaggingEnabled": true,
"callTaggingCategories": ["sales", "support", "billing", "complaint"],
"crmAutoSyncEnabled": true,
"crmProvider": "hubspot",
"crmSyncFields": ["duration", "summary", "outcome", "sentiment"],
"speedToLeadEnabled": true,
"callScoringEnabled": true,
"scoringCriteria": ["greeting_quality", "issue_resolution", "professionalism", "call_efficiency"],
"webhookUrl": "https://your-app.com/webhooks/voice",
"webhookEvents": ["call_started", "call_ended", "sentiment.alert"],
"webhookRetryCount": 3
}'