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

List contact topics

GET/contacts/{id}/topics
授权
AuthorizationBearer 令牌 · header必填

A BillionSend API key (bs_…).

路径参数
idstring必填
最小长度 1
响应
200

Every topic of the team with the contact's effective subscription and whether it was chosen explicitly

objectstring必填
允许值:list
dataobject[]必填
显示属性
object 数组
idstring<uuid>必填
namestring必填
descriptionstring | null必填
subscriptionstring必填

Effective choice: the contact's explicit one, else the topic's default

允许值:opt_inopt_out
explicitboolean必填

True when the contact or the API chose this; false when it is the topic's default

visibilitystring必填

The hosted preference page lists public topics only

允许值:publicprivate
has_moreboolean必填
允许值:false
401

Missing, malformed, unknown or revoked API key

statusCodenumber必填
namestring必填
messagestring必填
404

Not found

statusCodenumber必填
namestring必填
messagestring必填
429

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

statusCodenumber必填
namestring必填
messagestring必填
试一试
服务器
授权
参数
请求
curl -X GET 'https://api.billionsend.com/contacts/string/topics' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
响应
{
  "object": "list",
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "description": "string",
      "subscription": "opt_in",
      "explicit": true,
      "visibility": "public"
    }
  ],
  "has_more": false
}

这个页面有帮助吗?