Skip to the page

List contacts

The people of the workspace, or of one audience, newest first, by address, name and status.

GET/v1/contacts
Needs the scopeaudiences:read

Query parameters

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

  • audienceIdstring

    Only the contacts in this audience. Without it, every contact of the workspace. Up to 64 characters.

  • statusstring

    Only contacts in this state: subscribed or unsubscribed.

    One ofsubscribedunsubscribed

Returns

  • object"list"

    Always list.

  • dataobject[]

    The items on this page.

  • data[].object"contact"

    Always contact.

  • data[].idstring

    The id of the contact.

  • data[].emailstring

    The address of the contact. A workspace holds an address once.

  • data[].firstNamestring

    The first name of the contact. Empty when it is not known.

  • data[].lastNamestring

    The last name of the contact. Empty when it is not known.

  • data[].statusstring

    subscribed while the contact gets broadcasts, unsubscribed after they leave.

    One ofsubscribedunsubscribed

  • data[].unsubscribedAtstring | null

    When the contact unsubscribed, or null.

  • data[].propertiesRecord<string, string | number | boolean>

    Values of your own on the contact, by name. Automations can test them, and broadcasts and automations fill {{name}} slots with them.

  • data[].audienceIdsstring[]

    The ids of the audiences the contact is in.

  • data[].topicsRecord<string, string>

    What the contact chose for a topic, by the id of the topic: opt_in or opt_out. A topic that is not here follows its own default.

  • data[].createdAtstring

    When the contact was added.

  • totalinteger

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

  • hasMoreboolean

    Whether more items follow this page.