curl --location --request PATCH 'https://prod-api.ringg.ai/ca/api/v0/agent/v1' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer your_token_here' \
--header 'X-API-KEY: your-api-key-here' \
--data '{
"operation": "edit_event_subscriptions",
"agent_id": "your-agent-id",
"event_subscriptions": [
{
"event_type": "call_completed",
"callback_url": "https://your-domain.com/webhooks/call-completed",
"headers": {
"Authorization": "Bearer your-webhook-token",
"Content-Type": "application/json"
},
"method_type": "POST"
},
{
"event_type": "recording_completed",
"callback_url": "https://your-domain.com/webhooks/recording-completed",
"headers": {
"Authorization": "Bearer your-webhook-token",
"Content-Type": "application/json"
},
"method_type": "POST"
},
{
"event_type": "platform_analysis_completed",
"callback_url": "https://your-domain.com/webhooks/platform-analysis",
"headers": {
"Authorization": "Bearer your-webhook-token",
"Content-Type": "application/json"
},
"method_type": "POST"
},
{
"event_type": "client_analysis_completed",
"callback_url": "https://your-domain.com/webhooks/client-analysis",
"headers": {
"Authorization": "Bearer your-webhook-token",
"Content-Type": "application/json"
},
"method_type": "POST"
}
]
}'