A sender's ambient settings and today's sessions
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).
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
senderId*string^[0-9a-f]{24}$Default Response
application/json- response
ambient*curl -X GET 'https://api.tryzen.co/v1/senders/string/ambient'{ "ambient": { "settings": { "enabled": true, "likesPerDay": { "min": 0, "max": 0 }, "sessionsPerWorkday": { "min": 0, "max": 0 }, "sessionsPerOffDay": { "min": 0, "max": 0 } }, "available": true, "pausedReason": "string", "today": { "date": "string", "sessionsPlanned": 0, "sessionsDone": 0, "likes": 0, "extraSessionsRequested": 0, "nextSessionAt": "2019-08-24T14:15:22Z" }, "lastSession": { "at": "2019-08-24T14:15:22Z", "outcome": "completed" } }}Give a sender a custom proxy PUT
**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.
Change a sender's ambient settings PATCH
**Access:** an API key (or an org-wide key naming the workspace) with manage on `senders`. Any subset of `enabled`, `likesPerDay` (0-2), `sessionsPerWorkday` ({min,max} within 0-6) and `sessionsPerOffDay` (within 0-3); a range is replaced whole. Today's plan is not redrawn (the next day uses the new ranges), except `enabled: false`, which stops new sessions at once (a running one finishes).