Skip to the page

Create topic

Makes a kind of mail readers can say yes or no to, such as product news. A broadcast sent on a topic only reaches the contacts who get that topic.

POST/v1/topics
Needs the scopeaudiences:write

Body parameters

  • namestringRequired

    A name for the topic, such as Product news. Up to 120 characters.

  • descriptionstring

    A line about what the topic is, shown to readers. Up to 300 characters.

  • defaultSubscriptionstring

    opt_in when contacts get the topic unless they say no, opt_out when they only get it after they say yes. Without it, opt_in. It cannot be changed later.

    One ofopt_inopt_out

  • visibilitystring

    public or private. Without it, public.

    One ofpublicprivate

Returns

  • object"topic"

    Always topic.

  • idstring

    The id of the topic.

  • namestring

    The name of the topic, as readers see it.

  • descriptionstring

    What the topic is about, as readers see it. Empty when not set.

  • defaultSubscriptionstring

    What holds for a contact who never chose: opt_in, they get it, or opt_out, they do not.

    One ofopt_inopt_out

  • visibilitystring

    public when every reader sees the topic on the page where they manage their mail, private when only those who chose it do.

    One ofpublicprivate

  • subscriptionstring | null

    What the contact you listed the topics for gets: opt_in or opt_out. null when you named no contact.

    One ofopt_inopt_out

  • createdAtstring

    When the topic was made.