Call Ping API
Ask Apexsot what a call is worth before you transfer it. We auction the call across every advertiser covering that ZIP code and category and respond with a payout and a routing number. Transfer the caller to that number within the expiry window and you're paid once the call passes the billable duration.
Flow
- Caller reaches your IVR or agent; you collect ZIP code and need.
POST /v1/call/ping→ receivepayout,route_to,billable_after.- Transfer the caller to
route_tobeforeexpires_at. - We match the call to your ping by routing number and caller ID, then post the outcome to your webhook.
Ping
POST/v1/call/ping
| Field | Type | Required | Description |
|---|---|---|---|
| zip_code | string | Yes | 5-digit US ZIP or Canadian postal code. |
| category | string | Yes | Category slug, e.g. plumbing, roofing, personal-injury. |
| caller_id | string | Yes | Caller's number, E.164 or 10 digits. |
| source_key | string | No | Your sub-source identifier for reporting and quality control. |
| external_id | string | No | Your reference; echoed back in the response and webhooks. |
| answers | array | No | Prior Q&A: [{ question, answer }]. |
Request
curl https://apexsot.com/api/v1/call/ping \
-H "Authorization: Bearer ak_test_…" \
-H "Content-Type: application/json" \
-d '{
"zip_code": "33602",
"category": "plumbing",
"caller_id": "+18135550147",
"source_key": "google-search-fl"
}'200 OK — accepted
{
"status": "accepted",
"token": "cp_7Hk2Q9xN4mWb",
"payout": 22.50,
"currency": "USD",
"route_to": "+18135550199",
"billable_after": 60,
"expires_at": "2026-10-03T14:02:31Z"
}200 OK — no buyer
{
"status": "rejected",
"token": "cp_8Lm3R0yP5nXc",
"reason": "no_coverage"
}Status values
| Field | Type | Required | Description |
|---|---|---|---|
| accepted | status | — | A buyer is reserved. Transfer to route_to before expires_at. |
| rejected | status | — | No eligible buyer. reason: no_coverage, outside_hours, duplicate, budget_exhausted. |
| error | status | — | The request was invalid; see message. Nothing was reserved. |
Call outcome webhook
After each transferred call ends, we POST the result to the webhook URL in your account settings, signed with your webhook secret.
POST {your webhook}
{
"event": "call.completed",
"created_at": "2026-10-03T14:05:12Z",
"call_id": "6f1c…",
"token": "cp_7Hk2Q9xN4mWb",
"external_id": "abc-123",
"source_key": "google-search-fl",
"duration": 184,
"billable": true,
"payout": 22.50
}Verify the Apexsot-Signature header as described in the overview.