curl -X POST https://mtxbiyilvgwhbdptysex.supabase.co/functions/v1/list-contacts \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "limit": 20, "search": "john", "tags": ["customer"] }'
{ "contacts": [ { "id": "c1d2e3f4-5678-9abc-def0-123456789abc", "phone_number": "+14155551234", "name": "John Smith", "email": "[email protected]", "company": "Acme Corp", "tags": ["customer", "vip"], "updated_at": "2024-01-15T10:30:00Z" }, { "id": "d2e3f4a5-6789-bcde-f012-34567890abcd", "phone_number": "+14155555678", "name": "Johnny Doe", "email": "[email protected]", "company": null, "tags": ["customer"], "updated_at": "2024-01-14T15:00:00Z" } ], "total": 2, "has_more": false }
List all contacts with filtering and pagination
["customer"]
name
created_at
updated_at
asc
desc