InyokeDocs
Imports

Check an import

GET
/imports/{importId}

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.

Authorization

headerAuthorizationBearer <sk_live_...>

Your API key in an Authorization header: Authorization: Bearer sk_live_.... When a request carries a Bearer key and an x-api-key header, the Bearer key is used.

Path Parameters

importId*string

The importId that starting the import answered with.

Response Body

The import.

application/json
  1. response
id*string
status*ImportStatus

queued: waiting for its turn to run. importing: reading the file and adding its leads. enrolling: putting the leads on the campaign through its screening. done: finished. failed: stopped with an error, which error says. canceled: stopped by a person on the website; the rows already imported stay imported.

Value in"queued""importing""enrolling""done""failed""canceled"
totalRows*|

The file's rows. Null until the file has been counted.

rowsProcessed*integer
inserted*integer

New leads made.

duplicates*integer

Rows whose number the agency already had, or an earlier row of the file had.

merged*integer

Existing leads updated from a duplicate row.

skipped*integer

Duplicate rows dropped.

enrolled*integer

Leads put on the campaign.

enrollBlocked*integer

Leads the campaign's screening refused.

enrollHeld*integer

Leads parked until someone on the campaign is licensed for their state.

error*|

Why the import failed. Null unless status is failed. Rows the importer rejected aren't listed, because the import doesn't keep them.

warning*|

A note about an import that finished.

listId*string
campaignId*|

The campaign the import went onto. Null for an import onto no campaign, and for one onto a campaign the key's holder can't reach.

createdAt*string
Formatdate-time
finishedAt*|
Formatdate-time
Example Request
curl -X GET 'https://www.inyoke.com/api/v1/imports/cmhe2f3ja0007lq09p1s5v8xc'
Example Response
{  "id": "cmhe2f3ja0007lq09p1s5v8xc",  "status": "importing",  "totalRows": 1200,  "rowsProcessed": 450,  "inserted": 430,  "duplicates": 20,  "merged": 0,  "skipped": 20,  "enrolled": 0,  "enrollBlocked": 0,  "enrollHeld": 0,  "error": null,  "warning": null,  "listId": "cmhd4s1pw0006s8a1t9e3h7ud",  "campaignId": "cmhd4q2nb0001s8a1x7k3p9vz",  "createdAt": "2026-10-30T14:05:00.000Z",  "finishedAt": null}