List topics
The topics of the workspace, newest first. Name a contact to see what that contact gets.
opensend topics list [flags]Flags
--qstringText to search for. Only items that contain it are returned. Up to 40 characters.
--limitintegerHow many items to return, from 1 to 100. Without it you get 25.
--offsetintegerHow many items to skip. Use it with
limitto read the next page. Default:0.--afterstringThe 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.
--beforestringThe 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.--contactstringThe id of a contact, or their address. Each topic then says in
subscriptionwhether that contact gets it. Up to 120 characters.
Returns
The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.
object"list"Always
list.dataobject[]The items on this page.
data[].object"topic"Always
topic.data[].idstringThe id of the topic.
data[].namestringThe name of the topic, as readers see it.
data[].descriptionstringWhat the topic is about, as readers see it. Empty when not set.
data[].defaultSubscriptionstringWhat holds for a contact who never chose:
opt_in, they get it, oropt_out, they do not.One of
opt_inopt_outdata[].visibilitystringpublicwhen every reader sees the topic on the page where they manage their mail,privatewhen only those who chose it do.One of
publicprivatedata[].subscriptionstring | nullWhat the contact you listed the topics for gets:
opt_inoropt_out.nullwhen you named no contact.One of
opt_inopt_outdata[].createdAtstringWhen the topic was made.
totalintegerHow many items match in all, on every page together.
hasMorebooleanWhether more items follow this page.