TryzenAPI

Errors

The error envelope, what each status means, and the codes worth branching on.

The envelope

Every error answers JSON in one shape:

{
  "ok": false,
  "error": {
    "code": "sender_not_connected",
    "message": "This sender isn't connected. Reconnect it first.",
    "problems": [{ "code": "…", "parameter": "…", "message": "…" }]
  }
}
  • code is stable and machine-readable: branch on it.
  • message is a sentence for people. Show it, log it, but don't parse it: the wording can change.
  • problems appears on some 4xx answers that list several fixable problems at once (for example an import whose input has several errors: see Importing leads).

Treat a code you don't recognise by its HTTP status.

Status codes

StatusMeaningRetry?
400The request is malformed: invalid_request (the message names the field), batch_too_largeNo: fix the request
401No usable key: api_key_required, api_key_invalid, api_key_revoked, api_key_inactive (its creator lost access to the workspace)No: use a valid key
403The key lacks a scope (forbidden, the message names it), or the route is for people in the app only (api_key_not_allowed)No: create a key with the scope
404It doesn't exist in this key's workspace (sender_not_found, lead_not_found, conversation_not_found, …)No
409A conflict with the current state (idempotency_conflict, lead_owned_by_other_sender, action_not_cancelable, …)No, not as is
422Well-formed but refused (sender_not_connected, browser_required, blacklisted, …)No, not as is
429Too many requests or a budget used up (rate_limited, lookup_budget_exhausted, …)Yes, after Retry-After seconds
5xxSomething went wrong on our side, or a dependency is briefly unavailable (503)Yes, with backoff, reusing the same idempotency key

A resource in another workspace answers 404, never 403: a key can't learn what exists outside its own workspace.

Direct action codes

When you queue an action (POST /v1/actions):

CodeStatusWhat to do
sender_not_found404The senderId isn't in this workspace
lead_not_found404The leadId target isn't in this workspace
conversation_not_found404Not a thread of this workspace, or a private mailbox
sender_not_connected422The sender you named isn't connected: reconnect it, or omit senderId
target_invalid422Not a LinkedIn person profile, or not the thread's participant
action_not_supported422This type isn't available yet (inmail)
browser_required422This kind needs the sender's browser, and it has none
blacklisted422The person or their company is on the workspace blacklist
expires_at_invalid422expiresAt is in the past, more than 30 days away, or not after notBefore
no_sender_available422No connected, healthy sender can take this kind of action
lead_owned_by_other_sender409Another sender owns this person or thread: omit senderId
lead_in_active_campaign409A campaign is working this person: stop or remove them there first
idempotency_conflict409This idempotencyKey was used with a different body
action_not_cancelable409The action already left queued
forbidden403A reply into a thread without the inboxReply permission

Why a queued action failed

An action that was accepted can still end failed later. Its failure.code (also in the action_failed webhook) tells you why:

CodeMeaning
expiredIt didn't run before expiresAt
note_too_longThe invitation note is longer than LinkedIn allows for this account (200 characters without Premium)
not_connectedA message to someone who isn't a 1st-degree connection
blacklistedThe person was blacklisted after the action was queued
sender_disconnectedThe sender was disconnected while the action waited
cancel_requestedStatus unknown: a bulk cancel stopped it after an earlier attempt that may have reached LinkedIn. It is never retried; check the chat
note_credits_used_upThe account has no invitation-note credits left. The invite fails at once with failure.retryable: true: send it again without a note, or later. The account's campaign invites then wait until the credits come back (expected on the 1st of next month in the sender's time zone), or go without a note if the workspace chose that: see Out of invite-note credits

LinkedIn's other limits and account problems don't fail an action: it stays queued and waiting.reason says why: cooldown for the weekly invitation limit, locked after LinkedIn throttled the account, sender_stopped when LinkedIn logged the account out, wants a verification or restricted it (until its owner reconnects it). It ends expired only if it can't run before expiresAt.

failure.retryable says whether queueing the same action again later can work. Treat any other code as "failed, see failure.message".

An unknown status isn't a failure: the write may have reached LinkedIn, and Tryzen is checking. Don't queue it again.

Other codes you may meet

CodeStatusWhere
lookup_budget_exhausted429Profile lookups: the sender's daily lookup budget is used up (Retry-After)
lookup_throttled429Profile lookups: too soon after the last one, or the sender is held (Retry-After)
lookup_unavailable503Profile lookups: try again shortly
no_proxy_in_country422Connecting: no free proxy in the requested country
ambient_extra_limit429Ambient: at most 3 extra sessions a day
ambient_unavailable409Ambient: no browser, sender stopped or disconnected, or ambient off
sender_disconnected409Inbox reply: the thread's sender is disconnected
blocked_target422Webhooks: the URL isn't a public http(s) address
delivery_in_progress409Redelivery: the delivery is still being attempted
search_url_invalid422Imports: the search URL can't be imported; problems lists why
post_url_invalid422Post reactor imports: not a post URL we can read; problems says why
list_busy409Imports: another import is filling that list
company_list409Imports: people go into a people list, that one is a company list
people_list409Imports: companies go into a company list, that one is a people list
jobs_unavailable503Imports: the import couldn't start; nothing was read, retry shortly

On this page