Skip to the page

List audiences

The audiences of the workspace with how many contacts each holds.

opensend audiences list [flags]
Needs the scopeaudiences:read
Only reads

Flags

  • --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.

  • --rangestring

    The period to look at: today, week, month, year, all or custom. Without it there is no limit in time.

    One oftodayweekmonthyearallcustom

  • --fromstring

    The first day of a custom period, as a date such as 2026-11-01.

  • --tostring

    The last day of a custom period, as a date such as 2026-11-30.

  • --contactstring

    Only the audiences this contact is in, by the id of the contact or their address. 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"audience"

    Always audience.

  • data[].idstring

    The id of the audience.

  • data[].namestring

    The name of the audience.

  • data[].contactsinteger

    How many contacts are in it.

  • data[].subscribedinteger

    How many of them are subscribed.

  • data[].unsubscribedinteger

    How many of them have unsubscribed.

  • data[].createdAtstring

    When the audience was made.

  • totalinteger

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

  • hasMoreboolean

    Whether more items follow this page.