跳到内容
Esc
↑↓导航↵打开⌘J预览

Remove suppressions in bulk

POST/suppressions/batch/remove
授权
AuthorizationBearer 令牌 · header必填

A BillionSend API key (bs_…).

请求体
必填application/json
emailsstring<email>[]

Addresses to unblock, up to 1000

最少 1 项 · 最多 1000 项
idsstring<uuid>[]

Suppression ids to remove, up to 1000

最少 1 项 · 最多 1000 项
响应
200

Exactly one of emails or ids (up to 1000 each); lists only the rows actually removed. Rows whose address was erased (GDPR/LGPD) keep blocking sends but are hidden from the list and from lookups by email; they are reachable by id only.

dataRemoveSuppressionResponse[]必填
显示属性
RemoveSuppressionResponse 数组
objectstring必填
允许值:suppression
idstring<uuid>必填
deletedboolean必填
允许值:true
401

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必填
试一试
服务器
授权
请求体application/json
请求
curl -X POST 'https://api.billionsend.com/suppressions/batch/remove' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "emails": [
    "user@example.com"
  ],
  "ids": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ]
}'
响应
{
  "data": [
    {
      "object": "suppression",
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "deleted": true
    }
  ]
}

这个页面有帮助吗?