curl --location 'https://api.snakk.ai/webhooks/agent/call-ended' \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"room_name": "agent-room-abc123",
"agent_id": "agt_123",
"tenant_id": "ten_789",
"phone_number": "+4799999999",
"duration_seconds": 99,
"recording_consent": true,
"recording_started": true,
"recording_url": "https://storage.example.com/recordings/call_456.mp4",
"egress_id": "egr_001",
"transcript_paths": {
"chat": "transcripts/call_456/chat.json",
"functions": "transcripts/call_456/functions.json"
},
"call_summary": "Caller asked about opening hours.",
"was_transferred": false
}'