Integrate with our call center routing system
"+14801234567", "4801234567", "14801234567""AZ", "CA", "TX"
vendorKey and phoneNumber are the minimum required fields. stateCode is recommended when you know the customer's state (overrides area code lookup). You can also pass your own tracking data (lead_id, ad_id, ad_url, source etc.) — these are optional but will be stored with the call record so both parties can reference them.
curl -X POST "https://ydceruncqdpznxvqzlxb.supabase.co/functions/v1/vendors-ping" \ -H "Content-Type: application/json" \ -d '{ "vendorKey": "6ab36a94-5dfb-4336-a559-63da6a5a26d2", "phoneNumber": "+14801234567", "stateCode": "AZ", "lead_id": "L-12345", "ad_id": "SUMMER-2025", "ad_url": "https://example.com/offer", "source": "google" }'
Validate your vendor key and check your authorized states
curl -X POST "https://ydceruncqdpznxvqzlxb.supabase.co/functions/v1/vendors-ping" \ -H "Content-Type: application/json" \ -d '{ "vendorKey": "6ab36a94-5dfb-4336-a559-63da6a5a26d2" }'
agentAvailable: true, you'll receive a transferTarget phone number and a ttlSeconds value.transferTarget number within the TTL window. No need to create tasks or track agents—our system handles everything.{ "status": 200, "data": { "agentAvailable": true, "transferTarget": "+18775703926", "ttlSeconds": 60, "agentCount": 3, "timestamp": "2025-09-19T17:45:23.123Z", "requestId": "12345678-1234-1234-1234-123456789abc" } }
agentAvailable — Boolean indicating if an agent is availabletransferTarget — The phone number to blind transfer the customer tottlSeconds — Time-to-live in seconds (how long this availability is valid)agentCount — Number of available agents ready to field a call for this statetimestamp — UTC timestamp of the responserequestId — Unique identifier for tracking and support{ "status": 200, "data": { "agentAvailable": false, "timestamp": "2025-09-19T17:45:23.123Z", "requestId": "12345678-1234-1234-1234-123456789abc" } }
When no agents are available, hold the call or try again after a short delay.
{ "status": 200, "data": { "vendorActive": true, "authorizedStates": ["AZ", "CA"], "requestId": "12345678-1234-1234-1234-123456789abc" } }
{ "status": 200, "data": { "vendorActive": true, "authorizedStates": ["All"], "requestId": "12345678-1234-1234-1234-123456789abc" } }
{ "status": 401, "data": { "message": "Vendor key was not found or not formatted correctly.", "requestId": "12345678-1234-1234-1234-123456789abc" } }
{ "status": 400, "data": { "message": "Invalid phone number format. Please provide a valid US phone number.", "requestId": "12345678-1234-1234-1234-123456789abc" } }
{ "status": 500, "data": { "message": "An unexpected condition was encountered by the server.", "requestId": "12345678-1234-1234-1234-123456789abc" } }