logo
DNCList DNC entries
DNC

List DNC entries

Returns a paginated list of Do Not Contact entries for the workspace. Optionally filter by entry type.

curl -X GET "https://api.sendkit.ai/v1/dnc?type=email&page=25&limit=42&cursor=example_string" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": [
    {
      "_id": "664a1b2c3d4e5f6a7b8c9d0e",
      "email": "unsubscribed@example.com",
      "entryType": "email",
      "workspaceId": "ws_123",
      "reason": "manual",
      "unsubscribedAt": "2024-06-01T10:00:00.000Z",
      "createdAt": "2024-06-01T10:00:00.000Z",
      "updatedAt": "2024-06-01T10:00:00.000Z"
    },
    {
      "_id": "664a1b2c3d4e5f6a7b8c9d0f",
      "email": "spamtrap.com",
      "entryType": "domain",
      "workspaceId": "ws_123",
      "reason": "manual",
      "unsubscribedAt": "2024-06-01T10:05:00.000Z",
      "createdAt": "2024-06-01T10:05:00.000Z",
      "updatedAt": "2024-06-01T10:05:00.000Z"
    }
  ],
  "pagination": {
    "total": 45,
    "page": 1,
    "limit": 20,
    "pages": 3
  }
}
GET
/v1/dnc
GET
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
query
typestring

Filter by entry type.

Options: email, domain
query
limitinteger
Min: 1 • Max: 100
query
cursorstring

Cursor ID for cursor-based pagination (use instead of page for large datasets)

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

Query Parameters

typestring

Filter by entry type.

Allowed values:emaildomain
cursorstring

Cursor ID for cursor-based pagination (use instead of page for large datasets)

Responses

successboolean
dataarray
paginationobject