Start connecting a sender: cookies, or a one-time token for the extension
Access: an API key (or an org-wide key naming the workspace) with manage on senders.
The cookies are encrypted before they leave this request and are never returned. A sender without a proxy claims a free, healthy proxy in proxyCountry; when the workspace has none, the answer is 422 no_proxy_in_country (never a proxy of another country, never a direct connection). senderId reconnects that sender and keeps its id. An API key reconnecting a sender that holds no seat (disconnected in Tryzen, or an inactive seat) gets 409 seat_requires_person: a person reconnects it in the app. proxy brings your own proxy for a NEW sender instead of a pool claim: it is checked through itself first and must exit in proxyCountry (no fallback to the pool or another country), else 422 with the failure code (unreachable, auth_failed, timeout, echo_failed, country_mismatch) and nothing is created; 409 proxy_in_use when it is already registered. The password is write-only. With senderId it is a 400: change an existing sender's proxy with PUT /v1/senders/{senderId}/proxy.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
application/json- body
method*"cookies""cookies"senderId?string^[0-9a-f]{24}$proxyCountry*string^[A-Z]{2}$label?string1 <= length <= 120proxy?liAt*string^[^\s;,"\\]+$10 <= length <= 4096jsessionId*stringliA?stringbcookie?stringbscookie?stringuserAgent?stringlength <= 512Default Response
application/json- response
connect*curl -X POST 'https://api.tryzen.co/v1/senders/connects' \ -H 'Content-Type: application/json' \ -d '{ "method": "cookies", "proxyCountry": "string", "liAt": "stringstri", "jsessionId": "string"}'{ "connect": { "id": "string", "senderId": "string", "method": "cookies", "phase": "awaiting_extension", "error": { "code": "auth_lost", "message": "string" }, "profile": { "name": "string", "headline": "string", "publicId": "string", "pictureUrl": "string" }, "connectToken": "stringstringstringst", "connectTokenExpiresAt": "2019-08-24T14:15:22Z" }}Run one ambient session soon POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `senders`. Adds one session 5-30 minutes from now when that is inside the sender's working hours, else at the next window start, under all the usual gates (the sender must be idle). `startsAt` is when it is planned (null while the workflow hasn't planned it yet; read `GET` for it). Send a `requestId` (UUID) to retry safely: a known id is ignored. 409 `ambient_unavailable` without a browser host, for a disconnected or stopped sender, or with ambient disabled; 429 `ambient_extra_limit` after 3 requests in a sender-local day.
Where a connect attempt is (poll while the wizard is open) GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `senders`.