Skip to the page

Add contact to audience

Puts a contact of the workspace into an audience. A contact can be in many, and one that is already in it stays as it is.

POST/v1/audiences/{id}/contacts/{contact}
Needs the scopeaudiences:write

Path parameters

  • idstringRequired

    The id of the audience. Up to 64 characters.

  • contactstringRequired

    The id of the contact, or their address. Up to 120 characters.

Returns

  • object"contact"

    Always contact.

  • idstring

    The id of the contact.

  • emailstring

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

  • firstNamestring

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

  • lastNamestring

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

  • statusstring

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

    One ofsubscribedunsubscribed

  • unsubscribedAtstring | null

    When the contact unsubscribed, or null.

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

  • audienceIdsstring[]

    The ids of the audiences the contact is in.

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

  • createdAtstring

    When the contact was added.