curl -X POST https://mtxbiyilvgwhbdptysex.supabase.co/functions/v1/get-contact \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{"phone_number": "+14155551234"}'
{ "id": "c1d2e3f4-5678-9abc-def0-123456789abc", "phone_number": "+14155551234", "name": "John Smith", "email": "[email protected]", "company": "Acme Corp", "notes": "Prefers morning appointments", "tags": ["customer", "vip"], "metadata": { "customer_id": "cust_123" }, "stats": { "total_calls": 5, "total_messages": 12, "last_contact": "2024-01-15T10:30:00Z" }, "created_at": "2024-01-10T10:00:00Z", "updated_at": "2024-01-15T10:30:00Z" }
Retrieve a contact by ID or phone number
contact_id
phone_number
total_calls
total_messages
last_contact