Create a topic
POST
/topicsAutorisation
AuthorizationJeton Bearer · headerrequisA BillionSend API key (bs_…).
Corps de la requête
requisapplication/jsonnamestringrequislongueur min 1
descriptionstringdefault_subscriptionstringrequisValeurs autorisées :
opt_inopt_outvisibilitystringValeurs autorisées :
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.
Réponses
200
Topic created
idstring<uuid>requisnamestringrequisdescriptionstringdefault_subscriptionstringrequisValeurs autorisées :
opt_inopt_outvisibilitystringrequisValeurs autorisées :
privatepublicdomain_idstring<uuid> | nullrequisBillionSend extension: the domain the topic is bound to; null for a team-wide topic
created_atstringrequis401
Missing, malformed, unknown or revoked API key
statusCodenumberrequisnamestringrequismessagestringrequis403
A key held to one domain bound this to another domain, or unbound it
statusCodenumberrequisnamestringrequismessagestringrequis422
Validation error, or a domain_id that is not one of your domains
statusCodenumberrequisnamestringrequismessagestringrequis429
Over the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumberrequisnamestringrequismessagestringrequis