# Docs - **Get started** - [Introduction](/): Connect your own software to Inyoke. Send leads into your campaigns, and receive every call's recording and transcript. - [Quickstart](/quickstart): Create a key, find a lead list, add a lead to it and check that it's on the campaign. - [Authentication](/authentication): Every call carries an API key. A key works as the person who made it. - **Lead API** - [Add a lead](/lead-api/adding-leads): Post one lead into a lead list, and onto the campaign that list feeds, in a single call. - [Import a file](/lead-api/importing-a-file): Put a CSV of leads on a campaign in three calls, then watch the import run. - [Check and remove leads](/lead-api/checking-and-removing): See where each lead is in a campaign's dialing, and stop dialing leads you no longer want called. - [Errors](/lead-api/errors): Every error has the same shape. Branch on the code, and show the message to people. - [Limits and paging](/lead-api/limits): How many calls you can make, how big each one can be, and how to read a long list. - **Webhooks** - [Overview](/webhooks): Get each call's recording and transcript in your own systems as soon as they're ready. - [Verify requests](/webhooks/verifying-requests): Check each request's signature with your signing secret before you act on it. - [Retries and failures](/webhooks/retries): How to answer a request, and what happens when your endpoint is slow or down. - **Events** - [call.recording.ready](/webhooks/call-recording-ready): Sent once when a call's recording has been uploaded, with a link to download it. - [call.transcript.ready](/webhooks/call-transcript-ready): Sent when a call's transcript has been saved, with each turn of the conversation. - **Vendor API** - [Overview](/vendor-api): Connect your own software to your ads as a lead vendor: send leads and files, take a number back, and read what came of it. - [Your key](/vendor-api/authentication): Every call carries one of your keys. A key acts as your account, as the person who made it. - [Your account and ads](/vendor-api/account-and-ads): Before you send anything: where your account stands, what stops a post, and the ad ids the other calls take. - [Send leads](/vendor-api/sending-leads): Post leads to one of your ads, test a feed with a dry run, and send a post again safely. - [Send a file](/vendor-api/sending-a-file): Send a CSV of leads to one of your ads in three calls, then read the file until it has finished. - [Your feed and removals](/vendor-api/feed-and-removals): Read what a day's posts received and refused, and take a number back. - [Errors](/vendor-api/errors): Every error has the same shape. Branch on the code and the reason, and show the message to people. - [Limits](/vendor-api/limits): How many requests, rows and files your account can send, and how long to wait when it's over. - **AI apps** - [Connect Claude or ChatGPT](/ai-apps/connect): Ask Claude, ChatGPT or Claude Code about your agency. An AI app sees what you can see, in the one agency you connect. - **API reference** - [Overview](/api-reference): Every Lead API call, with its parameters, its answers and a panel to try it. - Campaigns: The campaigns your key can reach. Their ids are what the lead and import calls take. - [List campaigns](/api-reference/campaigns/list-campaigns): The campaigns the key's holder can reach, in name order, so you can find the campaign id the other calls take. Archived campaigns are left out. Needs the leads:read scope. - Lists: The agency's lead lists, and the campaign each one feeds. - [List lead lists](/api-reference/lists/list-lists): The agency's lead lists, newest first, each with the campaign it feeds, so you can find the list id a single lead is posted into. A list that feeds a campaign the key's holder can't reach, or an archived campaign, is left out. Needs the leads:read scope. - Leads: Add one lead to a list, check how leads stand on a campaign, and take leads off a campaign. - [Add a lead to a list](/api-reference/leads/add-lead-to-list): Adds one lead to an existing lead list and, when the list feeds a campaign, puts it on that campaign with the same duplicate rules and screening as a row of an uploaded file. Safe to retry once the first post has answered: a repeat finds the same lead, files nothing new, and its enrollment reads already_on. Needs the leads:write scope and the Import leads permission. - [Check leads on a campaign](/api-reference/leads/get-campaign-leads): Says whether each lead is on the campaign and where it is in the dialing. Look leads up with ids or phones (up to 100 together, answered in one page), or page through the whole campaign with limit and cursor, but not both. Needs the leads:read scope, and every read counts toward your rate limits, so poll gently. - [Remove leads from a campaign](/api-reference/leads/remove-campaign-leads): Stops dialing these leads on this campaign, exactly as Remove does on the website, and answers one line per entry in the order sent. Lead lists and the leads themselves are untouched, and a later playlist sync, list re-attach or import can put a removed lead back. Needs the leads:write scope, and the Create campaigns permission with See campaigns set to Everyone's. - Imports: Put a CSV file on a campaign in three calls: ask for a place to put the file, PUT the file there, then start the import. Then check the import until it finishes. - [Ask for a place to upload a file](/api-reference/imports/create-upload): The first of three calls that put a CSV on a campaign: it answers with an uploadId to keep and a url to PUT the file to within the hour. Nothing is created until you start the import with that uploadId. Needs the leads:write scope and the Import leads permission. - [Start an import](/api-reference/imports/start-import): Starts the website's own import of an uploaded file onto a campaign, in the background; watch it with GET /imports/{importId}. Imports run one at a time in an agency, so a start while another runs answers 409 import_running: retry it later with the same Idempotency-Key. Needs the leads:write scope and the Import leads permission. - [Check an import](/api-reference/imports/get-import): An import's status and counts; check every few seconds until status is done, failed or canceled. You can read an import you started, or any import in the agency if you hold the Import leads permission, and any other id answers 404. Needs the leads:read scope. - Vendor API - [Vendor API](/api-reference/vendor-api): Every vendor API call, with its parameters, its answers and a panel to try it. - Account: Where your account stands, and which key is calling. - [Read your account](/api-reference/vendor-api/account/get-account): Where your account stands, before you send anything: whether it can send, what is waiting to be signed, and what is left of your allowance. `status` is `ACTIVE`, `PAUSED` or `SUSPENDED`. When it's paused or suspended, `stoppedSentence` says so, and reads still work. `agreementOwed` and `attestationOwed` say whether a changed vendor agreement or feed attestation is waiting to be signed on the website. Nothing can be sent until it is. `allowance` is your upload allowance: rows a day, rows over 31 days, and how many you can send now. It counts only what you send. `ipListSet` says whether your IP list is on. The list itself is only on the website. `key` is the key making this call: its name, the first characters it starts with, and its scopes. Needs the leads:read scope. - Ads: Your ads, and the ids the other calls take. - [List your ads](/api-reference/vendor-api/ads/list-ads): Your ads, as their page shows them, so your software can find the ad id the other calls take. Each ad is exactly what its page reads, retired ones included. `retiredAt` is set on an ad that is retired, and a retired ad can't take leads. `standing` is the sentence the ad's page shows. It never says whether anything is on sale. This call only reads. No call of this API changes an ad: only the website does. Needs the leads:read scope. - Leads: Send leads to one of your ads, and read what a day's posts received and refused. - [Send leads](/api-reference/vendor-api/leads/send-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. - [Read a day's posts](/api-reference/vendor-api/leads/get-feed): What one ad's posts received and refused on one UTC day, in all and post by post. `calls` lists that day's posts, oldest first, each by the `callId` its answer gave. A row received and later refused, because its ad changed before it went in, counts in both. A retired ad's feed can still be read. Needs the leads:read scope. - Files: Send a CSV file to one of your ads in three calls: ask for a place to put it, `PUT` it there, then start it. Then read the file until it has finished. - [Ask for a place to put a file](/api-reference/vendor-api/files/create-upload): Ask for a place to put one CSV file. Nothing is started yet. `url` is signed for exactly `size` bytes, so a `PUT` of any other size fails. Put the file there before `expiresAt`. Keep `uploadId` as it is, and send it to start the file. Only your account can start it. You can ask for 20 upload addresses a day. Needs the leads:write scope. - [Start a file](/api-reference/vendor-api/files/start-file): Start reading a file you have put at its upload address, onto one of your ads. Read its progress with `GET /files/{fileId}`. A start that timed out can be sent again with the same `uploadId` to the same ad. It answers the same `fileId` and starts nothing twice. One file is read at a time. Starting another while one is being read is refused with `file_open`. A file holds at most 200,000 rows. A file over that, or over what's left of your allowance, fails whole, and its rows use none of it. Needs the leads:write scope. - [Read a file](/api-reference/vendor-api/files/get-file): One of your files: where it stands, how many rows were read and refused, and the first refusals. `rowsTotal` is null until the file has been counted. `rowsProcessed` and `rowsInvalid` are rows read and rows refused. `rejectSample` holds the first 20 refused rows, by row number, with a sentence each. `pulledAt` is set on a file taken off sale. `failure` says why a `FAILED` file stopped. Read to the end says nothing about what went on sale. Needs the leads:read scope. - Removals: Take a number off sale on all your ads. - [Take a number back](/api-reference/vendor-api/removals/remove-number): Take one number off sale on all your ads. The answer is the same whatever is found. It answers `{ accepted: true }` whether the number was on sale, still waiting, already sold, or never sent at all. A number already sold stays sold: a sold lead can't be taken back from an agency. The removal goes to the platform as a request. A file still being read can bring the number back if it is further down that file. Remove it again once the file has been read. One number per call. It needs nothing signed. Needs the leads:write scope.