Skip to content

Do-not-contact list

Every workspace has one do-not-contact list. Linnia checks it before every connection request and every message, from every account, and workflows skip the people on it when you enrol them. These calls let your own systems put people on it, read it and take people off.

Terminal window
curl -X POST https://api.linnia.ai/v1/do-not-contact \
-H "Authorization: Bearer lin_…" -H "content-type: application/json" \
-d '{"person":"https://www.linkedin.com/in/jana-novak","reason":"asked to be removed"}'

That one call:

  • puts them on the list;
  • takes them out of every workflow they are in, on every account. Their runs end as stopped with the reason added to the do-not-contact list, and anything still queued for them is cancelled;
  • sends a workflow.person_finished webhook for each run it ended.

The reply says what it did:

{
"ok": true,
"added": 1,
"stoppedRuns": 2,
"results": [
{
"input": "https://www.linkedin.com/in/jana-novak",
"person": "jana-novak",
"added": true,
"stopped": [
{ "workflowId": "b7a1c2d3-…", "name": "Q4 founders", "runId": "5c4d3e2f-…", "accountId": "6f1c2a9e-…" },
{ "workflowId": "c8b2d3e4-…", "name": "Partner intros", "runId": "6d5e4f30-…", "accountId": "7a2d3b0f-…" }
]
}
]
}

From then on, an invitation or a message to that person fails with the doNotContact error, whoever asks for it: a workflow, an automation, a rep’s assistant or your own API call.

Send people instead of person: up to 500 profile URLs, handles or member ids. Each can be a string, or an object with its own reason and expiresAt; a reason or expiresAt at the top applies to everyone without their own.

{
"people": ["jana-novak", { "person": "raj-mehta", "reason": "customer", "expiresAt": "2027-06-01T00:00:00Z" }],
"reason": "asked to be removed"
}

Nothing is written if any entry is invalid. Adding someone who is already on the list reports added: false; their reason is replaced only if you send one, and their expiry becomes what you send (permanent when you leave it out).

An entry you add is permanent unless you give it an expiresAt. Linnia also adds people by itself when a reply clearly says they are not interested; those entries lapse after a few months and carry an expiresAt when you list them. A later reply never turns a permanent entry into a lapsing one.

Terminal window
curl "https://api.linnia.ai/v1/do-not-contact?limit=100" -H "Authorization: Bearer lin_…"

Newest first, with total and nextOffset for paging. To ask about one person, pass person (a URL, handle or member id): total is 1 when they are on the list. includeExpired=true also returns entries whose expiry has passed.

Terminal window
curl -X DELETE "https://api.linnia.ai/v1/do-not-contact?person=jana-novak" -H "Authorization: Bearer lin_…"

Owners and admins only (an API key counts as the owner). Runs that were stopped stay stopped: enrol the person in the workflow again if they should continue.

The same list is under Settings → Do-not-contact in the dashboard: everyone can see it and add people (paste profile links or handles, one per line); owners and admins can take someone off.

A connected assistant can read the list and add to it with the do_not_contact tool (“put Jana Novak on do-not-contact, she asked us to stop”). It cannot take anyone off.

A person is stored under their handle (the part after /in/) or their member id, whichever you sent, lowercased. A profile URL is reduced to its handle. Linnia checks both names before a send, and when it knows that a handle and a member id are the same person it treats an entry under either as covering both.