Streamed sign-in: the newest frame of the LinkedIn page (long-poll)
Access: an API key (or an org-wide key naming the workspace) with manage on senders.
Long-poll: answers as soon as a frame newer than after exists (or the sign-in was handed over or ended), else after at most 10 s with frame: null. frame is a base64 JPEG of the visible page, width×height pixels (at most 1280×800). After state: "handed_over" continue with GET /v1/senders/connects/{connectId}; state: "ended" carries endReason. 404 sign_in_not_found until the browser is up; 503 sign_in_unavailable on a server without streamed sign-in. Through an API key: 600 a minute, apart from the key's general budget.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
connectId*string1 <= length <= 128after?integer0 <= value <= 90071992547409910Default Response
application/json- response
seq*integer0 <= value <= 9007199254740991state*string"starting""active""handed_over""ended"screen*string"loading""login""account_picker""pin""authenticator""app_approval""check""other"frame*|nullwidth*integer-9007199254740991 <= value <= 9007199254740991height*integer-9007199254740991 <= value <= 9007199254740991endsAt*string^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$date-timeendReason*|nullcurl -X GET 'https://api.tryzen.co/v1/senders/connects/string/sign-in/frame'{ "seq": 0, "state": "starting", "screen": "loading", "frame": "string", "width": -9007199254740991, "height": -9007199254740991, "endsAt": "2019-08-24T14:15:22Z", "endReason": "needs_extension"}Create a hosted connect link: your customer connects a LinkedIn account on our page POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `senders`. Answers the page URL (on your brand host when white-label is on; it contains the link's secret, so it is shown once), its expiry and the link id. The page offers the Tryzen extension or cookies, shows "Yes, that's me" and the inbox mode (`inboxMode`, default `full`, pre-selected), then redirects to `successRedirectUrl?senderId=…&linkId=…&externalId=…` (or `failureRedirectUrl?code=…&linkId=…&externalId=…`). Redirect URLs must be https (http only for localhost in development) and are the only places the page ever sends the customer. `sender_status_changed` webhooks carry `connectLink: {id, externalId}` for senders connected through a link. Add `senderId` to reconnect an existing sender (it keeps its id; `proxyCountry` may then be left out, and `label` too). A link an API key creates for a sender that holds no seat (disconnected in Tryzen, or an inactive seat) is refused with 409 `seat_requires_person`. `proxy` brings your own proxy for the new sender instead of a pool claim (new senders only): it is checked through itself now and must exit in `proxyCountry`, else 422 with the failure code (`unreachable`, `auth_failed`, `timeout`, `echo_failed`, `country_mismatch`); 409 `proxy_in_use` when it is already registered. The password is stored encrypted and never returned. The link expires after `expiresInMinutes` (default 60, at most 1440) and is used up once its sender is connected.
Streamed sign-in: clicks, keys and text for the LinkedIn page POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `senders`. Click `x`/`y` are in the pixels of the frame you show (its `width`×`height`, at most 1280×800); the server maps them to the page. Typed text is typed at a human pace; `paste: true` enters it at once. For a press-and-hold or a drag (LinkedIn's own checks), send `pointer` events as they happen: `down`, `move`s, `up`, each with `gapMs` since the previous one (≤ 1000); a hold lasts as long as the customer's. The body is never logged or stored in plaintext. 409 `sign_in_not_active` after the hand-over; 429 `rate_limited` above 10 batches a second. One caller drives a sign-in (the first to send input; on the hosted page, its client IP): another caller's input is 409 `sign_in_not_controller` until a minute passes without the controller's input. Frames stay open to every authorised viewer.