TryzenAPI
Senders

Re-sync a sender now

POST
/v1/senders/{senderId}/resync

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).

Authorization

apiKey
headerx-api-key<token>

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

Path Parameters

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

Query Parameters

photos?string
Value in"true""false"

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/resync'
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"}