Skip to the page

Update contact

Changes the name or the properties of a contact, or subscribes and unsubscribes them. It holds in every audience they are in.

contacts_update
Needs the scopeaudiences:write
Changes data

Arguments

  • idstringRequired

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

  • firstNamestring

    A new first name. Up to 120 characters.

  • lastNamestring

    A new last name. Up to 120 characters.

  • statusstring

    subscribed or unsubscribed.

    One ofsubscribedunsubscribed

  • propertiesRecord<string, string | number | boolean | null>

    Properties to set, by name. null removes one. The others stay as they are.

  • topicsRecord<string, string | null>

    Choices to set, by the id of the topic: opt_in or opt_out. null goes back to the default of the topic. The others stay as they are.

Returns

The answer comes back under structuredContent, with the same JSON as text in content. A call the API refuses comes back with isError set, and the code and the message under structuredContent.error. MCP shows how to connect a client.

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