Create a topic
POST
/topics授权
AuthorizationBearer 令牌 · header必填A BillionSend API key (bs_…).
请求体
必填application/jsonnamestring必填最小长度 1
descriptionstringdefault_subscriptionstring必填允许值:
opt_inopt_outvisibilitystring允许值:
privatepublicdomain_idstring<uuid> | nullBillionSend extension: id of one of your domains. The topic then appears only on that domain's unsubscribe page, and a send with this topic_id must come from that domain (422 otherwise). null or omitted: a topic of the whole team, shown for every domain. On update, null makes the topic a team-wide one again.
响应
200
Topic created
idstring<uuid>必填namestring必填descriptionstringdefault_subscriptionstring必填允许值:
opt_inopt_outvisibilitystring必填允许值:
privatepublicdomain_idstring<uuid> | null必填BillionSend extension: the domain the topic is bound to; null for a team-wide topic
created_atstring必填401
Missing, malformed, unknown or revoked API key
statusCodenumber必填namestring必填messagestring必填403
A key held to one domain bound this to another domain, or unbound it
statusCodenumber必填namestring必填messagestring必填422
Validation error, or a domain_id that is not one of your domains
statusCodenumber必填namestring必填messagestring必填429
Over the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumber必填namestring必填messagestring必填