logo
InboxAdd conversations' leads to DNC

Add conversations' leads to DNC

Adds lead emails from selected conversations to the Do Not Contact list. Skips leads already on the DNC list. Use either explicit conversationIds or selectAll: true with optional filters/excludeIds.

curl -X POST "https://api.sendkit.ai/v1/inbox/dnc" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -d '{
  "conversationIds": [
    "664a1b2c3d4e5f6a7b8c9d0e"
  ]
}'
{
  "success": true,
  "data": {
    "added": 3,
    "skipped": 1,
    "total": 4
  }
}
POST
/v1/inbox/dnc
POST
API Key (header: X-Api-Key)
X-Api-Keystring
Required

Platform API key (sk_user_...) or Workspace API key (sk_...)

Platform API key (sk_user_...) or Workspace API key (sk_...)
Content-Typestring
Required

The media type of the request body

Options: application/json
No request body parameters defined
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-Api-Keystring
Required

API Key for authentication. Platform API key (sk_user_...) or Workspace API key (sk_...)

Body

application/json
datastring
Required

Raw application/json data

Responses

successboolean
dataobject