Give a sender a custom proxy
Access: an API key (or an org-wide key naming the workspace) with manage on senders.
Checks the proxy through itself first and saves it only if it passed with an exit IP in the sender's country; the old proxy is freed. 422 with the failure code otherwise: unreachable, auth_failed, timeout, echo_failed, country_mismatch. 409 proxy_in_use (another sender's) or connect_in_progress. The password is write-only.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
senderId*string^[0-9a-f]{24}$application/json- body
protocol*string"http""https""socks5"host*string1 <= lengthport*integer1 <= value <= 65535username*string1 <= length <= 500password*string1 <= length <= 500Default Response
application/json- response
sender*warnings?array<>photoBackfill?string"started""running""not_imported"curl -X PUT 'https://api.tryzen.co/v1/senders/string/proxy' \ -H 'Content-Type: application/json' \ -d '{ "protocol": "http", "host": "string", "port": 1, "username": "string", "password": "string"}'{ "sender": { "id": "string", "label": "string", "linkedin": { "publicId": "string", "name": "string", "headline": "string", "pictureUrl": "string" }, "license": { "premium": true, "salesNav": true, "recruiter": true }, "status": "not_connected", "statusReason": "string", "inboxMode": "full", "connectedBy": { "name": "string" }, "connectedByViewer": true, "timezone": "string", "workingHours": { "days": [ 1 ], "from": "string", "to": "string" }, "limits": { "connReq": 0, "message": 0, "inmail": 0, "view": 0, "follow": 0, "like": 0, "totalDaily": 0, "weeklyConnReq": 0 }, "hasBrowserHost": true, "hasStoredSession": true, "holdsSeat": true, "proxy": { "id": "string", "kind": "included", "included": true, "protocol": "http", "country": "string", "host": "string", "port": 1, "usernameMasked": "string", "lastCheck": { "ok": true, "ip": "string", "country": "string", "at": "2019-08-24T14:15:22Z", "latencyMs": 0 }, "unreachable": { "since": "2019-08-24T14:15:22Z", "nextCheckAt": "2019-08-24T14:15:22Z" } }, "health": { "lockedUntil": "2019-08-24T14:15:22Z", "cooldownUntil": "2019-08-24T14:15:22Z", "cooldownReason": "string", "lastActionAt": "2019-08-24T14:15:22Z" }, "autoPause": { "reason": "string", "at": "2019-08-24T14:15:22Z", "failed": 0, "total": 1 }, "browserPath": { "unavailableSince": "2019-08-24T14:15:22Z", "code": "string", "retryAt": "2019-08-24T14:15:22Z" }, "connectFrom": { "at": "2019-08-24T14:15:22Z" }, "usage": { "day": "string", "counts": { "connReq": 0, "message": 0, "inmail": 0, "view": 0, "follow": 0, "like": 0 }, "week": "string", "weekCount": 0 }, "warmup": { "mode": "auto", "stage": "quiet", "startedAt": "2019-08-24T14:15:22Z", "writesFrom": "2019-08-24T14:15:22Z", "rampDays": 0, "day": 0, "stageEndsAt": "2019-08-24T14:15:22Z", "todayLimits": { "connReq": 0, "message": 0, "inmail": 0, "view": 0, "follow": 0, "like": 0, "totalDaily": 0, "weeklyConnReq": 0 } }, "capacity": { "connReq": { "limit": 0, "used": 0, "remaining": 0 }, "message": { "limit": 0, "used": 0, "remaining": 0 }, "inmail": { "limit": 0, "used": 0, "remaining": 0 }, "view": { "limit": 0, "used": 0, "remaining": 0 }, "follow": { "limit": 0, "used": 0, "remaining": 0 }, "like": { "limit": 0, "used": 0, "remaining": 0 }, "total": { "limit": 0, "used": 0, "remaining": 0 }, "weeklyInvites": { "limit": 0, "used": 0, "remaining": 0 }, "nextWindowAt": "2019-08-24T14:15:22Z", "noteCredits": { "remaining": 0, "readAt": "2019-08-24T14:15:22Z" } }, "voice": { "id": "string", "name": "string" }, "campaignCount": 0, "removedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" }, "warnings": [ { "code": "string", "message": "string" } ], "photoBackfill": "started"}Verify a proxy through itself POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `senders`. `proxy: null` checks the sender's stored proxy and stores the result on it; a typed proxy is checked before it is saved (nothing is stored). The check runs on a driver worker through the proxy, never from the API. `check.ok: false` is an answer with the reason in `check.message`. The password is write-only: encrypted before it leaves this request, never returned. 409 `proxy_missing` for `proxy: null` without a proxy.
A sender's ambient settings and today's sessions GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `senders`. Ambient sessions are the browser's human-looking visits (feed, notifications, profiles, 0-2 likes on 1st-degree posts) inside the sender's working hours. `available` is false without a browser host; `pausedReason` says why sessions aren't running now (`no_browser_host`, `disabled`, `disconnected`, `stopped`).