Upsert a Contact

Creates or updates a Contact, matching on the email address. If the Contact does not exist, it will be created. If the Contact does exist, it will be updated. It is not possible to delete a Contact via this endpoint. It is not possible to reset properties of a Contact by passing empty values. E.g. passing null for first_name or an empty array for tag_ids won't update previous values. To do that you would instead need to use the Update Contact endpoint.

Log in to see full request history
timestatususer agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Body Params

Contact to create or update, matching on the email address. Note that properties of a Contact are not reset when passed empty values, e.g. passing null for first_name or an empty array for tag_ids won't update previous values. To do that you would instead use the Update Contact endpoint.

contact
object

Contacts

Responses

Response body
array of objects
object
integer
required

Contact ID

string | null

Contact public ID

integer
required

Workspace ID

string | null

Anonymous

string | null

Email address

string | null

First name

string | null

Last name

string | null

Phone number

string | null

The human-readable time zone, usually set dynamically by the app for the contact, for example, during opt-in.
Read more about time zones and how to map them back to the TZ standard in our Time Zones guide..

string
required

UUID

string | null

Unsubscribed

string | null

Last notification email sent

string | null

Facebook URL

string | null

Twitter URL

string | null

Instagram URL

string | null

Linkedin URL

string | null

Website URL

date-time | null

Date added

date-time | null

Last updated

array of objects | null

Contact Tags

tags
object
integer
required

Tag ID

string | null

Tag public ID

string
required

Name

string
required

Color

string | null

The datetime the tag was applied by creating a Contacts::AppliedTag that maps the tag to the contact.

custom_attributes
object

A dynamic key-value pair object where both the key and value are strings. Custom attributes are usually added to the contact when they submit forms that contain custom contact attributes. But you can also add them via the API using the modifying endpoints like Create/Update/Upsert Contact.

Has additional fields
avatar_image
object

Avatar Image

Has additional fields

422

Unprocessable Entity

Language
Credentials
URL