Skip to main content
POST
Create or update a contact (account from the API key)

Authorizations

apiKey
string
header
required

API key from Settings → API keys.

apiSecret
string
header
required

Secret shown once when the API key is created.

Query Parameters

populatePaths
string

Comma-separated names of related records to include in the response, for example contactOwner.

shouldReplaceTags
boolean

true replaces the contact's tags with the ones you send. By default they are added to the existing tags.

Body

application/json
name
string
required

The contact's name.

Minimum string length: 1
companyId
string

The company the contact belongs to.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

phone
string[]

Phone numbers with country code, digits only.

Phone number with country code, digits only.

marketingOptIn
boolean

Marketing opt-in. Stored as messageOptIn; an explicit messageOptIn wins. Omit to keep the stored value.

email
string<email>[]

Email addresses.

tags
object[]

Tags to add, by name. Tags that don't exist are created.

contactOwnerId
string

The user who owns the contact.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

Response

The created or updated contact.

A contact. Main fields only; others may be present.

id
string

A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

accountId
string

A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

name
string
phone
string[]

Phone numbers with country code, digits only.

email
string<email>[]
tags
object[]
fieldValues
object[]
messageOptIn
boolean
contactOwnerId
string

A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

address
object
createdAt
string<date-time>
updatedAt
string<date-time>