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授权
AuthorizationBearer 令牌 · header必填A BillionSend API key (bs_…).
请求体
必填application/jsonidsstring<uuid>[]Contact ids to delete, up to 1000
最少 1 项 · 最多 1000 项
emailsstring<email>[]Contact email addresses to delete, up to 1000; matched case-insensitively
最少 1 项 · 最多 1000 项
erasebooleanAlso erase each address from email history, event payloads and API logs (GDPR/LGPD); by default the send log is kept
响应
200
The contacts that were deleted
dataRemoveContactResponse[]必填显示属性隐藏属性
RemoveContactResponse 数组objectstring必填允许值:
contactcontactstring<uuid>必填deletedboolean必填允许值:
true401
Missing, malformed, unknown or revoked API key
statusCodenumber必填namestring必填messagestring必填422
Validation error
statusCodenumber必填namestring必填messagestring必填429
Over the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumber必填namestring必填messagestring必填