Create a hosted connect link: your customer connects a LinkedIn account on our page
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.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
application/json- body
proxyCountry?string^[A-Z]{2}$label?string1 <= length <= 120senderId?string^[0-9a-f]{24}$proxy?inboxMode?string"full""full""private"successRedirectUrl?string1 <= length <= 2000failureRedirectUrl?string1 <= length <= 2000externalId?string1 <= length <= 200expiresInMinutes?integer5 <= value <= 144060Default Response
application/json- response
linkId*string^[0-9a-f]{24}$url*stringexpiresAt*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-timecurl -X POST 'https://api.tryzen.co/v1/senders/connect-links' \ -H 'Content-Type: application/json' \ -d '{}'{ "linkId": "string", "url": "string", "expiresAt": "2019-08-24T14:15:22Z"}The sender's own LinkedIn profile photo, as we stored it GET
**Access:** a member of the workspace in the `workspaceId` query parameter or an API key (or an org-wide key naming the workspace) with view on `senders`. The image bytes (`image/jpeg`, `image/png`, `image/webp` or `image/avif`), privately cacheable for a day. Use the sender's `linkedin.pictureUrl` (relative to the API base); it is never a LinkedIn URL. The photo is stored at connect and by the inbox sync. 404 when none is stored (show initials).
Streamed sign-in: the newest frame of the LinkedIn page (long-poll) GET
**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.