InyokeDocs

Errors

Every error has the same shape. Branch on the code, and show the message to people.

{
  "error": {
    "code": "conflict",
    "message": "Another import is running in this agency.",
    "reason": "import_running"
  }
}
StatusCodeMeaning
400The body isn't JSON at all: empty, or cut off.
401unauthorizedNo key was sent, or the key can't be used. See Authentication.
403forbiddenYou're missing a permission the call needs, or the key doesn't have the access. The message says which.
403gatedYou have something to finish in Inyoke first. gate names the step: onboarding, sms_agent, agreement, license, billing or recruiter_only.
404not_foundWhat you named doesn't exist, or isn't yours to see. Both answer alike, so an id never tells you what exists.
409conflictThe call can't be done in the state things are in. reason says why.
422invalidThe request was understood but refused. The message says what to fix.
429rate_limitedOver a limit. Wait the Retry-After seconds, then try again.
500internalSomething went wrong on our side. Try again in a moment, and tell support if it lasts.

Conflicts

A 409 carries a reason.

ReasonMeaningWhat to do
import_runningAnother import is running in this agency, and imports run one at a time.Retry the same request with the same Idempotency-Key, waiting longer each time: 30 seconds, then a minute, then two.
list_feeds_other_campaignThe listId you sent feeds another campaign, and the API never moves a list between campaigns.Send a list that's on this campaign or on none, or leave listId out to make a new list.
list_inactiveThat lead list is switched off, so its leads would never be dialed.Switch the list on in Inyoke, or use another list.
idempotency_key_reusedThe Idempotency-Key already started a different import.Send a new key for each file, and the same key only when you retry the same request.

On this page