Method
POST /v1/comms/suppressions
Body Parameters
Communication channel (see supported values)
Destination (e.g., email address or phone number)
Bearer token (e.g. Authorization: Bearer YOUR_API_KEY)
Workspace identifier (UUID)
Request Example
curl -X POST https://api.voyantcloud.com/v1/comms/suppressions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Workspace-Id: WORKSPACE_UUID" \
-H "content-type: application/json" \
-d '{ "channel": "email", "value": "[email protected]", "reason": "bounce" }'
await fetch("https://api.voyantcloud.com/v1/comms/suppressions", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.VOYANT_API_KEY}`, "X-Workspace-Id": process.env.WORKSPACE_ID, "content-type": "application/json" },
body: JSON.stringify({ channel: "email", value: "[email protected]", reason: "bounce" }),
})
import os, requests
requests.post(
"https://api.voyantcloud.com/v1/comms/suppressions",
headers={"Authorization": f"Bearer {os.environ['VOYANT_API_KEY']}", "X-Workspace-Id": os.environ["WORKSPACE_ID"], "content-type": "application/json"},
json={"channel": "email", "value": "[email protected]", "reason": "bounce"},
)
Response
{ "id": "sup_123", "channel": "email", "value": "[email protected]", "reason": "bounce" }