Disconnect a sender and free its seat
Access: an API key (or an org-wide key naming the workspace) with manage on senders. A key also needs the disconnectSenders permission, which is off unless ticked when the key is made.
Status → not_connected with reason disconnected_by_user; the sender stops all writes, syncs and ambient sessions, and its seat is free until it connects again. Its stored LinkedIn session is deleted (the account isn't signed out on LinkedIn): reconnecting needs fresh cookies, the extension or a login, and stored_session answers 409 session_missing. 409 campaigns_active while any of its campaigns is scheduled, starting or in progress (pause them first; paused campaigns keep it in their list). Idempotent. Audit-logged as sender.disconnected, with the API key's id when a key did it. An API key without the disconnectSenders permission gets 403 api_key_not_allowed, as before.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
senderId*string^[0-9a-f]{24}$Default Response
application/json- response
sender*warnings?array<>photoBackfill?string"started""running""not_imported"curl -X POST 'https://api.tryzen.co/v1/senders/string/disconnect'{ "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"}Re-sync a sender now POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `senders`. Runs the sender's sync job now instead of at its next turn (licence, inbox, invitations). The status doesn't change. With `photos=true` it also starts a one-shot photo backfill: a delta sync only returns threads that changed, so quiet threads never get their photo. The inbox sync then reads the inbox pages newest first (two per run, inside the sender's working hours and daily read budget) until it passes the oldest thread without a stored photo; photos already stored are never fetched again, and it gives up a week after the call. `photoBackfill` says what happened: `started`, `running` (one is in progress: nothing changes, so calling again is safe) or `not_imported` (the first inbox import still runs, and it brings the photos itself). 409 `connect_in_progress`, `proxy_missing` or `not_connected` (reconnect first).
Enter the PIN LinkedIn sent POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `senders`. Only the email + password login (later) asks for a PIN, so for now every valid body answers 409 `no_pin_pending`. Later also `pin_rejected` and `pin_expired`.