Skip to main content
POST
Create or resolve a US contact.

Authorizations

Authorization
string
header
required

A person's session: Authorization: Bearer <ID token>, the ID token the Sendblue sign-in issues. The person acts in their company's root account with the role of their seat.

Headers

Idempotency-Key
string
required

A value unique to this intended write, 1 to 128 visible ASCII characters. A repeat with the same key returns the original result.

Required string length: 1 - 128
Pattern: ^[\x21-\x7E]+$

Body

application/json
phone_number
string
required

A phone number in E.164 form.

Pattern: ^\+[1-9][0-9]{6,14}$
Example:

"+14155550100"

first_name
string | null
Maximum string length: 100
last_name
string | null
Maximum string length: 100
email
string<email> | null
tag_ids
string[]
variables
object

Variable values by variable key.

opted_out
boolean

True when the contact may not be messaged.

Response

The existing contact. Its profile and labels are unchanged.

id
string
required
phone_number
string
required

A phone number in E.164 form.

Pattern: ^\+[1-9][0-9]{6,14}$
Example:

"+14155550100"

first_name
string | null
required
last_name
string | null
required
email
string | null
required
tags
string[]
required

Labels assigned to this contact by the existing contact service.

opted_out
boolean
required
created_at
string<date-time>
required

RFC 3339, UTC.

updated_at
string<date-time>
required

RFC 3339, UTC.