Workspaces

POST /public/v1/do-not-contact/sync

Changed on

Sync one outside record (for example a Salesforce Lead, Contact or Account) into the workspace Do Not Contact list. action "add" blocks the record's emails, company domains (everyone at that company) and any Valley person matching them or its LinkedIn URLs, and stops their in-flight campaigns at the next send, LinkedIn and email alike. Calling add again for the same externalId with the same contents changes nothing; with new contents it replaces what that record blocked. action "remove" lifts exactly what that record blocked; someone also blocked for another reason (an opt-out reply, a manual block) stays blocked. Workspace owners, admins and managers only.

Request

Request body

workspaceIdstring

Required unless the key is scoped to one workspace.

externalIdstring required

The outside record id, e.g. a Salesforce record id.

sourcestring

The outside system. Defaults to "salesforce".

action'add' | 'remove'
emailsstring[]
domainsstring[]

Company domains: blocks everyone at that company. Freemail domains are refused.

linkedinUrlsstring[]

Response

Default Response

statusCodenumber
statusboolean
messagestring

Changes