Unsubscribe contacts
unsubscribeContactsUnsubscribe up to 100 contacts, by the contactIds findContacts gives: they get no more campaigns or automated emails from this workspace, and each change is kept in their consent history. Contacts already unsubscribed stay as they are. They can be added back only with their own consent, so do it only when the person asked for these contacts by name or by a filter they chose. Answers with how many were unsubscribed, were already, or are not in this workspace.
This changes something outside Kooga, so the person confirms it first. Where the app can show the question, it does. Otherwise the first call changes nothing and answers with a question to put to the person word for word, and a confirmToken: call again with the same arguments and that confirmToken only after they said yes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contactIds | Yes | The contacts, by the contactIds findContacts gives | |
| workspaceId | No | The workspace, as listWorkspaces gives it (its id or slug). Leave it out when this connection reaches one workspace. | |
| confirmToken | No | Only after the person said yes: the confirmToken this tool answered with when it asked. Never invent one, and never send one the person did not confirm. |