Zum Inhalt springen
Esc
↑↓navigieren↵öffnen⌘Jvorschau

Delete contacts in bulk

Deletes up to 1000 contacts by id or by email address in one request and lists the rows actually deleted; unknown ids or addresses are skipped. Emails stay in the log; erase: true also scrubs each address from email history, event payloads and API logs, like DELETE /contacts/{id}?erase=true.

POST/contacts/batch/remove
Autorisierung
AuthorizationBearer-Token · headererforderlich

A BillionSend API key (bs_…).

Request-Body
erforderlichapplication/json
idsstring<uuid>[]

Contact ids to delete, up to 1000

min. 1 Elemente · max. 1000 Elemente
emailsstring<email>[]

Contact email addresses to delete, up to 1000; matched case-insensitively

min. 1 Elemente · max. 1000 Elemente
eraseboolean

Also erase each address from email history, event payloads and API logs (GDPR/LGPD); by default the send log is kept

Antworten
200

The contacts that were deleted

dataRemoveContactResponse[]erforderlich
Eigenschaften anzeigen
Array von RemoveContactResponse
objectstringerforderlich
Erlaubt:contact
contactstring<uuid>erforderlich
deletedbooleanerforderlich
Erlaubt:true
401

Missing, malformed, unknown or revoked API key

statusCodenumbererforderlich
namestringerforderlich
messagestringerforderlich
422

Validation error

statusCodenumbererforderlich
namestringerforderlich
messagestringerforderlich
429

Over the rate limit (rate_limit_exceeded, with Retry-After)

statusCodenumbererforderlich
namestringerforderlich
messagestringerforderlich
Ausprobieren
Server
Autorisierung
Bodyapplication/json
Anfrage
curl -X POST 'https://api.billionsend.com/contacts/batch/remove' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "ids": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ],
  "emails": [
    "user@example.com"
  ],
  "erase": true
}'
Antwort
{
  "data": [
    {
      "object": "contact",
      "contact": "ad596931-5d7c-4d2b-907e-5b64c9432eb4",
      "deleted": true
    }
  ]
}

War diese Seite hilfreich?