Skip to content

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

  1. Caller reaches your IVR or agent; you collect ZIP code and need.
  2. POST /v1/call/ping → receive payout, route_to, billable_after.
  3. Transfer the caller to route_to before expires_at.
  4. 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

FieldTypeRequiredDescription
zip_codestringYes5-digit US ZIP or Canadian postal code.
categorystringYesCategory slug, e.g. plumbing, roofing, personal-injury.
caller_idstringYesCaller's number, E.164 or 10 digits.
source_keystringNoYour sub-source identifier for reporting and quality control.
external_idstringNoYour reference; echoed back in the response and webhooks.
answersarrayNoPrior 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

FieldTypeRequiredDescription
acceptedstatus—A buyer is reserved. Transfer to route_to before expires_at.
rejectedstatus—No eligible buyer. reason: no_coverage, outside_hours, duplicate, budget_exhausted.
errorstatus—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.