Skip to main content
POST
Create a contact

Authorizations

Authorization
string
header
required

A project API key, created in the dashboard.

Headers

Idempotency-Key
string

A unique key that makes the request safe to retry, such as a V4 UUID. 1 to 255 printable ASCII characters.

Required string length: 1 - 255

Body

application/json

At least one parameter needs a value. Values are trimmed, and an empty string or null leaves a field empty. Values over the length limits are rejected, not truncated.

agent_id
string
required
Maximum string length: 64
first_name
string | null
Maximum string length: 255
last_name
string | null
Maximum string length: 255
email
string | null

A valid email address, unique among the agent's contacts, ignoring case.

Maximum string length: 320
phone
string | null

A valid phone number.

Maximum string length: 50
job_title
string | null
Maximum string length: 100
company
string | null
Maximum string length: 100
website
string | null

A valid URL.

Maximum string length: 2083
industry
string | null
Maximum string length: 100
address
string | null
Maximum string length: 255
city
string | null
Maximum string length: 85
state
string | null
Maximum string length: 50
zip
string | null

The postal code.

Maximum string length: 20
country
string | null
Maximum string length: 56

Response

The new contact.

object
any
required
id
string
required
Example:

"0f8fad5b-d9cb-469f-a165-70867728950e"

agent
object
required

The agent this belongs to.

channel
enum<string> | null
required

The channel of the conversation where the contact was first collected. null if unknown, such as for contacts added through the API.

Available options:
web,
whatsapp,
api,
instagram,
messenger,
telegram,
null
first_name
string | null
required
last_name
string | null
required
email
string | null
required

Contacts collected in conversations can share an email, but contacts created or updated through the API can't.

phone
string | null
required
job_title
string | null
required
company
string | null
required
website
string | null
required
industry
string | null
required
address
string | null
required
city
string | null
required
state
string | null
required
zip
string | null
required

The postal code.

country
string | null
required
created_at
string<date-time> | null
required
updated_at
string<date-time> | null
required