Webhooks for Analysis
No Separate Webhook Endpoint
There is no separate endpoint for registering webhooks. Webhook URLs are configured when you create an analysis.
How to Configure Webhooksβ
Webhooks are configured by passing the webhook_url parameter when creating an analysis via POST /api/v1/analysis/.
Exampleβ
curl -X POST https://api.callcov.com/api/v1/analysis/ \
-H "X-API-Key: sk_live_abc123..." \
-F "audio_file=@/path/to/call.wav" \
-F "agent_id=agent_001" \
-F "contact_id=customer_12345" \
-F "webhook_url=https://your-app.com/webhooks/analysis"
When the analysis completes, CallCov will send a POST request to your webhook URL with the complete analysis results.
Webhook Documentationβ
For complete webhook implementation guide, see:
- Webhooks Guide - Comprehensive guide on implementing webhooks
- Webhook payload format
- Security with signature validation
- Retry logic
- Testing webhooks locally
- Best practices
Quick Referenceβ
When to Use Webhooksβ
β Use webhooks when:
- Building production applications
- Processing many analyses
- Want real-time notifications
- Want to avoid polling
β Don't use webhooks when:
- Testing locally without ngrok
- Processing single analyses interactively
- Building quick prototypes
Webhook Payloadβ
When analysis completes, you receive the full AnalysisResponse object:
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "completed",
"results": {
"compliance": {...},
"quality": {...},
"summary": "..."
},
...
}
Relatedβ
- Create Analysis - Configure webhook_url during creation
- Webhooks Guide - Complete implementation guide
- Retrieve Analysis - Alternative to webhooks (polling)