InyokeDocs

Quickstart

Create a key, find a lead list, add a lead to it and check that it's on the campaign.

Create an API key

In Inyoke, open Settings, then API keys, and create a key with Read and write access. Copy it: it starts with sk_live_ and is shown once.

Your account needs the Use the lead API permission. An agency owner can give it to you under Agency, then Roles.

export API_KEY="sk_live_..."

Find a lead list

A lead is added into a lead list, and the list decides which campaign it's dialed on. List your agency's lists and copy an id:

curl "https://www.inyoke.com/api/v1/lists" \
  -H "Authorization: Bearer $API_KEY"
{
  "data": [
    {
      "id": "cm2x9k1lt0002",
      "name": "Web leads",
      "active": true,
      "campaign": { "id": "cm2x9k1ab0001", "label": "Final expense Florida" },
      "createdAt": "2026-10-30T14:05:00.000Z"
    }
  ],
  "nextCursor": null
}

Add a lead

Only phone is required.

curl -X POST "https://www.inyoke.com/api/v1/lists/cm2x9k1lt0002/leads" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"firstName": "Ana", "lastName": "Rivera", "phone": "(305) 555-0123", "state": "FL"}'
{
  "result": "created",
  "lead": { "id": "cm2x9k1ld0003", "name": "Ana Rivera", "phone": "(305) 555-0123" },
  "list": { "id": "cm2x9k1lt0002" },
  "campaign": { "id": "cm2x9k1ab0001", "label": "Final expense Florida" },
  "enrollment": { "state": "active" }
}

enrollment.state of active means the lead passed the campaign's screening and is in line to be dialed.

Check on it

Look the lead up on its campaign by phone. Send a + in a phone number as %2B.

curl -G "https://www.inyoke.com/api/v1/campaigns/cm2x9k1ab0001/leads" \
  --data-urlencode "phones=(305) 555-0123" \
  -H "Authorization: Bearer $API_KEY"

onCampaign says whether the lead will be dialed, and enrollment.dialState where it is in the dialing.

Next

On this page