InyokeDocs

Send leads

POST
/listings/{listingId}/leads

Send 1 to 500 leads to one of your ads. Each row is checked at once, and the answer says which were received. Every row needs phone, state, consent_at, consent_source and consent_url, plus every field the ad declares. first_name, last_name, email, city and zip are taken when they're there. The answer is always 202 with { callId, received, refused }. refused lists each row that wasn't taken, by its index in rows, with a code, the field and a sentence. The answer never says whether a number went on sale. It is the same whatever happens to a row afterward. The example's number is one no one can hold, so its answer shows how a refused row reads. Your own rows are received. callId is null on a dry run, which writes nothing. Needs the leads:write scope.

Authorization

headerAuthorizationBearer <sk_live_...>

Your API key in an Authorization header: Authorization: Bearer sk_live_....

Path Parameters

listingId*string

Your ad's id, from GET /listings.

Query Parameters

dryRun?string

1 or true checks the post and writes nothing. Leave it out, or send 0 or false, for a real post.

Value in"1""true""0""false"

Header Parameters

Idempotency-Key?string

Required on a real post, a new one for each post. A dry run needs none.

Length1 <= length <= 200

Request Body

application/json
  1. body
scrubbedAt*string

The day, YYYY-MM-DD in UTC, you checked these rows against the National Do Not Call Registry.

Formatdate
rows*array<>

1 to 500 objects, each keyed by the same headers a file's columns take.

Items1 <= items <= 500

Response Body

The rows received, and each row refused.

application/json
  1. response
callId*string|null
received*integer
refused*array<>
Example Request
curl -X POST 'https://www.inyoke.com/api/vendor/v1/listings/vnd-ad-3f9c2a7e1b4d8f60a5c2e4b7/leads' \  -H 'Content-Type: application/json' \  -d '{  "scrubbedAt": "2026-11-03",  "rows": [    {      "phone": "(305) 555-0123",      "state": "FL",      "first_name": "Ana",      "last_name": "Rivera",      "consent_at": "2026-11-01",      "consent_source": "Quote form",      "consent_url": "https://quotes.example.com/final-expense"    }  ]}'
Example Response
{  "callId": "cm3p8k2ic0007",  "received": 0,  "refused": [    {      "index": 0,      "code": "phone_fictional",      "field": "phone",      "message": "This phone number can't be a real one."    }  ]}