Skip to the page

List topics

The topics of the workspace, newest first. Name a contact to see what that contact gets.

opensend.topics.list(input?)
Needs the scopeaudiences:readFrom a terminalopensend topics list

Input

  • qstring

    Text to search for. Only items that contain it are returned. Up to 40 characters.

  • limitinteger

    How many items to return, from 1 to 100. Without it you get 25.

  • offsetinteger

    How many items to skip. Use it with limit to read the next page. Default: 0.

  • afterstring

    The id of the last item you have. The answer starts with the item that follows it, which reads a long list without skipping or repeating when it changes meanwhile. Up to 64 characters.

  • beforestring

    The id of the first item you have. The answer ends with the item just before it. Give this or after, not both. Up to 64 characters.

  • contactstring

    The id of a contact, or their address. Each topic then says in subscription whether that contact gets it. Up to 120 characters.

Returns

The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.

  • object"list"

    Always list.

  • dataobject[]

    The items on this page.

  • data[].object"topic"

    Always topic.

  • data[].idstring

    The id of the topic.

  • data[].namestring

    The name of the topic, as readers see it.

  • data[].descriptionstring

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

  • data[].defaultSubscriptionstring

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

    One ofopt_inopt_out

  • data[].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

  • data[].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

  • data[].createdAtstring

    When the topic was made.

  • totalinteger

    How many items match in all, on every page together.

  • hasMoreboolean

    Whether more items follow this page.