curl -X POST https://mtxbiyilvgwhbdptysex.supabase.co/functions/v1/list-calls \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "limit": 20, "direction": "outbound", "from_date": "2024-01-01T00:00:00Z" }'
{ "calls": [ { "id": "7f3d8e00-a1b2-4c3d-9e4f-567890abcdef", "agent_id": "550e8400-e29b-41d4-a716-446655440000", "from_number": "+16045551234", "to_number": "+14155551234", "direction": "outbound", "status": "completed", "duration": 125, "sentiment": "positive", "call_summary": "Appointment confirmed for tomorrow at 2pm.", "created_at": "2024-01-15T10:30:00Z" } ], "total": 156, "has_more": true }
List all calls with filtering and pagination
inbound
outbound
completed
busy
no-answer
failed
canceled