Skip to main content

DELETE /contact-books/:id/contacts/bulk

Delete multiple contacts from a contact book at once.

Authentication

JWT Bearer token (dashboard auth)

Request Body

FieldTypeRequiredDescription
contactIdsstring[]YesArray of contact IDs to delete

Response

{
  "success": true,
  "data": {
    "count": 3
  }
}

Example

curl -X DELETE https://app.usesendi.com/api/contact-books/BOOK_ID/contacts/bulk \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "contactIds": [
      "660e8400-e29b-41d4-a716-446655440000",
      "770e8400-e29b-41d4-a716-446655440000",
      "880e8400-e29b-41d4-a716-446655440000"
    ]
  }'

Errors

StatusErrorCause
400Invalid request dataMissing or empty contactIds array
404Contact book not foundInvalid book ID or not owned by user