logo
Blacklist TestsList blacklist tests

List blacklist tests

Returns a paginated list of blacklist tests for the workspace, sorted by most recent first. Includes test name, status, overall summary, and timestamps.

curl -X GET "https://api.sendkit.ai/v1/blacklist-tests?cursor=664a1b2c3d4e5f6a7b8c9d50&limit=42" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY"
{
  "success": true,
  "data": [
    {
      "_id": "664a1b2c3d4e5f6a7b8c9d50",
      "testName": "Blacklist Check 6/1/2024",
      "status": "completed",
      "overallSummary": {
        "totalChecked": 5,
        "clean": 4,
        "blacklisted": 1
      },
      "startedAt": "2024-06-01T10:00:00.000Z",
      "completedAt": "2024-06-01T10:05:00.000Z",
      "createdAt": "2024-06-01T09:59:00.000Z"
    },
    {
      "_id": "664a1b2c3d4e5f6a7b8c9d51",
      "testName": "Weekly Blacklist Scan",
      "status": "pending",
      "overallSummary": null,
      "startedAt": null,
      "completedAt": null,
      "createdAt": "2024-06-08T09:00:00.000Z"
    }
  ],
  "pagination": {
    "limit": 20,
    "total": 4,
    "hasMore": false,
    "nextCursor": "664a1b2c3d4e5f6a7b8c9d51"
  }
}
GET
/v1/blacklist-tests
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_...)
query
cursorstring

Cursor for pagination - use the nextCursor value from the previous response to fetch the next page

query
limitinteger

Items per page (default 25, max 100)

Min: 1 • Max: 100
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_...)

Query Parameters

cursorstring

Cursor for pagination - use the nextCursor value from the previous response to fetch the next page

limitinteger

Items per page (default 25, max 100)

Responses

successboolean
dataarray
paginationobject