TryzenAPI

Safety and pacing

Why actions are queued, and the limits that keep your customers' LinkedIn accounts healthy.

An account that sends 40 invites in a minute at 3 a.m. gets restricted by LinkedIn. Tryzen's job is to make every account behave like the person who owns it. That's why nothing writes to LinkedIn while your request waits: you queue the work, and each account's own loop runs it at a human pace.

One writer per account

Each sender has exactly one loop doing its LinkedIn work, in this order: inbox replies, then API actions, then campaign steps. Nothing writes around it. Your direct actions and Tryzen campaigns share the same loop and the same counters, so they can never add up to more than the account's limits.

Working hours

Every sender has working hours in its own time zone. Actions run inside them, with human gaps between two actions. An action queued at night waits with waiting.reason: outside_working_hours.

Quotas

Each sender has limits per kind of action (invites, messages, profile views, …), a total per day, and a weekly invitation limit. A direct invite counts against the same quota as a campaign invite. Queued work that doesn't fit today waits (waiting.reason: quota) and runs on the next day.

GET /v1/senders/{senderId} answers the sender's capacity: for each kind its limit, used and remaining, the daily total, the weekly invitations, and nextWindowAt. Plan with it instead of guessing: if a sender has 3 invites left today, the fourth one you queue runs tomorrow.

  • Invites: capacity.connReq (today) and capacity.weeklyInvites (this week, resets Monday in the sender's time zone). Messages: capacity.message (today); messages have no weekly limit.
  • capacity.noteCredits is { remaining, readAt }: the invite-note credits LinkedIn showed right before the sender's last invite with a note sent over HTTP (readAt is when it read them), or null before the first one. Invites sent through the browser don't update it, so a sender that only sends through the browser stays null. If a send's outcome was unknown, the count can be one high. Tryzen never reads LinkedIn just to refresh it, and LinkedIn refills the credits (we believe monthly; not yet confirmed) without telling us, so treat an old readAt as a hint. At 0 a noted invite is refused with note_credits_used_up: see Out of invite-note credits.
  • capacity counts quotas only. A sender in a cooldown, locked or stopped can't act even with room left: read status and health too.

Out of invite-note credits

LinkedIn gives each account a monthly number of invites with a note. Once they are used up, LinkedIn refuses a noted invite (note_credits_used_up); an invite without a note still goes. The workspace is notified once per month (the bell, and email if Settings → Notifications says so), not once per refused invite. What the account's campaign invites do next is a workspace setting, whenNoteCreditsUsedUp:

ValueWhat happens
wait (default)The account's invites cool down (health.cooldownReason: note_credits_used_up) until the credits come back, then go out with their note. Messages and the other steps go on
send_without_noteInvites keep going without their note, through the account's browser ("Send without a note"). An account with no browser host can't send a note-less invite, so it waits as with wait

A change applies from the next invite: an account that is already waiting keeps waiting until its credits come back. When the credits come back is not confirmed by LinkedIn yet: Tryzen expects them on the 1st of next month at midnight in the sender's time zone, and may adjust this once it is confirmed.

Read and change the setting with your key (Senders: View to read, Manage to change), or in the app under Settings → Sending:

curl -s "$TRYZEN_API/v1/workspace/settings" -H "x-api-key: $TRYZEN_KEY"
# {"settings":{"whenNoteCreditsUsedUp":"wait"}}

curl -s -X PATCH "$TRYZEN_API/v1/workspace/settings" \
  -H "x-api-key: $TRYZEN_KEY" -H "content-type: application/json" \
  -d '{"whenNoteCreditsUsedUp": "send_without_note"}'

The setting is for campaign invites. An invite you queue with POST /v1/actions keeps the note you gave it: it fails note_credits_used_up (failure.retryable: true), and you decide whether to send it again without a note or later.

Warm-up

A newly connected account starts with a warm-up: a quiet period of reads only, then a ramp up to its full limits. Actions wait with waiting.reason: warmup meanwhile.

If the account is already in daily use by its owner, turn the warm-up off:

curl -s -X PATCH "$TRYZEN_API/v1/senders/$SENDER_ID" \
  -H "x-api-key: $TRYZEN_KEY" -H "content-type: application/json" \
  -d '{"warmupMode": "skipped"}'

"auto" turns it back on with its original schedule.

Stops: LinkedIn checks and lost sessions

When LinkedIn logs the account out (auth_lost), asks the person to verify themselves (challenge) or restricts the account (restricted), Tryzen stops that sender's writes until a person reconnects it. Nothing retries these and nothing solves captchas. You'll see waiting.reason: sender_stopped on its actions and a sender_status_changed webhook. Pause that customer's outreach on your side and ask them to reconnect.

LinkedIn may also throttle an account for a while (waiting.reason: locked), hit the weekly invitation cap, or run out of invite-note credits (cooldown). The work waits and resumes on its own.

HTTP and the browser

Invites with a note, messages and connection checks run as direct requests. Profile views, follows, likes, withdrawing an invite and an invite without a note need the account's own browser session. A sender without a browser answers those kinds with 422 browser_required right away, rather than queueing work that could never run.

One attempt per write, and unknown

A write gets one attempt. If it can't tell whether the attempt landed (a timeout, a dropped connection), Tryzen reads first to find out, and retries only when the read proves the first try didn't land. Until it knows, the action is unknown. Don't queue it again yourself: that's exactly how people end up with two invites.

Ambient browsing

Between outreach actions, a sender with a browser browses like a person: the feed, notifications, a few profiles, now and then a like on a connection's post, all inside its working hours. It makes the account's activity look like its owner's, not like a bot's.

Read the settings and today's plan
curl -s "$TRYZEN_API/v1/senders/$SENDER_ID/ambient" -H "x-api-key: $TRYZEN_KEY"
Tune it
curl -s -X PATCH "$TRYZEN_API/v1/senders/$SENDER_ID/ambient" \
  -H "x-api-key: $TRYZEN_KEY" -H "content-type: application/json" \
  -d '{"likesPerDay": {"min": 0, "max": 1}}'
  • Ranges are { min, max }: likes 0 to 2 a day, 0 to 6 sessions on a workday, 0 to 3 on a day off. A change applies from the next day's plan; enabled: false stops new sessions at once.
  • POST /v1/senders/{senderId}/ambient/sessions asks for one extra session soon (5 to 30 minutes from now, or at the next working-hours window). At most 3 extra a day (429 ambient_extra_limit); 409 ambient_unavailable when the sender has no browser, is disconnected or stopped, or ambient browsing is off.

Rules of thumb

  • Queue work early and let Tryzen pace it. Don't build your own scheduler on top.
  • One person, one account: leave senderId out and let Tryzen keep the pairing.
  • Use idempotency keys, and never re-queue an unknown action.
  • React to sender_status_changed: a stopped sender needs its owner, not more retries.

On this page