Skip to main content
POST
Upsert a contact by identifier

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

identifier
string
required
Minimum string length: 1

Body

application/json
firstName
string
Maximum string length: 100
lastName
string
Maximum string length: 100
email
phoneNumber
string
Required string length: 10 - 20
Pattern: \+?\d{10,20}
avatar
string
gender
enum<string>
Available options:
male,
female,
unknown

Response

200 - application/json

OK

id
string
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
avatar
string | null
required
phoneNumber
string | null
required
email
string | null
required
emailVerified
boolean
required
emailOptIn
boolean
required
firstName
string | null
required
lastName
string | null
required
fullName
string | null
required
gender
enum<string> | null
required
Available options:
male,
female,
unknown
lastReadAt
string<date-time> | null
required
ref
string | null
required
country
string | null
required
state
string | null
required
city
string | null
required
location
required
locale
string | null
required
timezone
string | null
required
subscribedAt
string<date-time> | null
required
broadcastSubscribedAt
string<date-time> | null
required
blockedAt
string<date-time> | null
required
workspaceId
string
required
contactCustomFields
object[]
tags
object[]
contactNotes
object[]
contactInboxes
object[]
conversation
object | null