Topics
Create a topic
POST/v1/topics
Requires an API key with the topics:write scope. About keys and scopes
Admin. Names are unique in the workspace (409 ALREADY_EXISTS). Topics let contacts choose what marketing they get, separately from groups. A campaign or journey send step with a topicId reaches a contact only if they have email or push consent and the topic reaches them: an opt_out topic reaches everyone who has not left it, an opt_in topic only those who joined. A contact leaves a topic from the unsubscribe link of any message sent on it; every change is recorded in consent history.
Request body
namestringrequiredUnique within the workspace.
1–100 characters
descriptionstring | nulloptionalup to 500 characters
modestringoptionalWho the topic reaches: everyone who has not left, or only who joined.
one of
opt_out,opt_in· default"opt_out"
Returns
Returns 201 Created. Otherwise returns an error; Errors lists every code and which to retry.
idstringrequireduuid
namestringrequireddescriptionstring | nullrequiredmodestringrequiredopt_outreaches everyone who has not left;opt_inonly those who joined.one of
opt_out,opt_increatedAtstringrequireddate-time
updatedAtstringrequireddate-time