Where a sender stands with a person, from Tryzen's records (no LinkedIn read)
Access: an API key (or an org-wide key naming the workspace) with view on campaigns.
Give exactly one of profileUrl, publicIdentifier, memberUrn (an urn:li:fsd_profile:…, also accepted as profileUrn) or leadId, and optionally senderId.
connection: connected (a 1st-degree connection, or a 1:1 LinkedIn thread with them), pending (this sender's invite is still out), none (a record says neither) or unknown (no record of this sender and person). source is always stored: this read never asks LinkedIn, so a connection made outside Tryzen may still read none or unknown (a reach checks with one fresh read before it acts). checkedAt is when the record was last confirmed (a relationship read, an invite check, a sync), or null.
Without senderId it answers for the person's owner sender (the one their direct actions go through), else the sender with the closest relationship (connected, then pending, then any record); senderId in the answer says which (null when no sender knows them).
404 sender_not_found, 422 target_invalid (not a LinkedIn person profile).
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
senderId?string^[0-9a-f]{24}$profileUrl?string1 <= length <= 500publicIdentifier?string1 <= length <= 100memberUrn?string1 <= length <= 200profileUrn?string1 <= length <= 200leadId?string^[0-9a-f]{24}$Default Response
application/json- response
connection*string"none""pending""connected""unknown"source*stringcheckedAt*|nullsenderId*|nullcurl -X GET 'https://api.tryzen.co/v1/relationships'{ "connection": "none", "source": "stored", "checkedAt": "2019-08-24T14:15:22Z", "senderId": "string"}One direct action: status, why it's waiting, result or failure GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `campaigns`. `waiting` says why a queued action hasn't run yet (outside working hours, quota, warm-up, …). Final statuses: `succeeded`, `failed` (`failure.code`, e.g. `expired`), `unknown` (it may have reached LinkedIn; never re-sent) and `canceled`. `404 action_not_found`.
Cancel every queued action of one externalId or one person POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `campaigns`. Body: exactly one of `{ "externalId": "…" }` or `{ "target": { profileUrl | publicIdentifier | profileUrn | leadId } }`. A person counts with every workspace lead Tryzen knows them by, found the way a create finds them; an unknown person or `externalId` matches nothing (no lead is created). A target given only as a `profileUrn` can't find a lead known only by its vanity: use the target form the actions were created with (or the lookup's `profileUrn` for both). Once it answers, no matched action makes a new LinkedIn write. Every `queued` one ends `canceled` (its own `canceled` event), or `unknown` (code `cancel_requested`, never retried) when an earlier attempt may already have reached LinkedIn. Every `running` one is stopped before its next attempt; only an attempt already started at that moment can still finish (up to about 2 minutes over HTTP, about 10 in the browser; a split message can send all its parts), and its webhook says how the action ended (`succeeded`, `failed`, `unknown` or `canceled`). The answer: `canceled` (by this call) and `notCanceled` (newest first: the ones this call ended `unknown`, and every matched action still `running` or `queued`). Synchronous and **safe to repeat**. At most 200 queued actions are ended and 200 listed in `notCanceled` per call; `truncated: true` means queued ones are left (they won't run) or the list was cut: call again until it is false. A failure partway (500) keeps what was done; repeating finishes it. Not covered: campaign steps, replies queued in the app, and an action created by a call running at the same moment. Stop creating actions for the contact first, then cancel. `422 target_invalid` for a target that isn't a LinkedIn person profile.