Skip to the page

Retrieve audience

One audience with how many contacts it holds.

opensend.audiences.get(id)
Needs the scopeaudiences:readFrom a terminalopensend audiences get

Input

id goes first, on its own, and the rest in one object. One object that holds id works too.

  • idstringRequired

    The id of the item. Up to 64 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"audience"

    Always audience.

  • idstring

    The id of the audience.

  • namestring

    The name of the audience.

  • contactsinteger

    How many contacts are in it.

  • subscribedinteger

    How many of them are subscribed.

  • unsubscribedinteger

    How many of them have unsubscribed.

  • createdAtstring

    When the audience was made.