TryzenAPI
Senders

Start connecting a sender: cookies, or a one-time token for the extension

POST
/v1/senders/connects

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.

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Request Body

application/json
  1. body
method*"cookies"
Value in"cookies"
senderId?string
Match^[0-9a-f]{24}$
proxyCountry*string
Match^[A-Z]{2}$
label?string
Length1 <= length <= 120
proxy?
liAt*string
Match^[^\s;,"\\]+$
Length10 <= length <= 4096
jsessionId*string
liA?string
bcookie?string
bscookie?string
userAgent?string
Lengthlength <= 512

Response Body

Default Response

application/json
  1. response
connect*
Example Request
curl -X POST 'https://api.tryzen.co/v1/senders/connects' \  -H 'Content-Type: application/json' \  -d '{  "method": "cookies",  "proxyCountry": "string",  "liAt": "stringstri",  "jsessionId": "string"}'
Example Response
{  "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"  }}