logo
DNCBulk import DNC list
DNC

Bulk import DNC list

Bulk import up to 10,000 DNC entries at once. Existing entries (by email) are automatically skipped. Emails are lowercased. Uses insertMany for efficient bulk insert. Default reason is import.

curl -X POST "https://api.sendkit.ai/v1/dnc/import" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "entries": [
    {
      "email": "bounce1@example.com",
      "type": "email",
      "reason": "bounce"
    },
    {
      "email": "bounce2@example.com",
      "type": "email",
      "reason": "bounce"
    },
    {
      "email": "badcompany.com",
      "type": "domain",
      "reason": "manual"
    }
  ]
}'
{
  "success": true,
  "data": {
    "imported": 245,
    "skipped": 12
  }
}
POST
/v1/dnc/import
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_...)
Bearer Token
Bearer Tokenstring
Required

API key as Bearer token

API key as Bearer token
Content-Typestring
Required

The media type of the request body

Options: application/json
entriesarray
Required

List of DNC entries to import (max 10,000)

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_...)

header
Authorizationstring
Required

Bearer token. API key as Bearer token

Body

application/json
entriesarray
Required

List of DNC entries to import (max 10,000)

Responses