TryzenAPI
Senders

Disconnect a sender and free its seat

POST
/v1/senders/{senderId}/disconnect

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.

Authorization

apiKey
headerx-api-key<token>

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

Path Parameters

senderId*string
Match^[0-9a-f]{24}$

Response Body

Default Response

application/json
  1. response
sender*
warnings?array<>
photoBackfill?string
Value in"started""running""not_imported"
Example Request
curl -X POST 'https://api.tryzen.co/v1/senders/string/disconnect'
Example Response
{  "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"}