Change a sender's ambient settings
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).
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
senderId*string^[0-9a-f]{24}$application/json- body
enabled?booleanlikesPerDay?sessionsPerWorkday?sessionsPerOffDay?Default Response
application/json- response
ambient*curl -X PATCH 'https://api.tryzen.co/v1/senders/string/ambient' \ -H 'Content-Type: application/json' \ -d '{}'{ "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" } }}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`).
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.