Skip to main content
PATCH

Authorizations

X-API-Key
string
header
required

Path Parameters

id
string
required

ID of the contact. Also support phone number(E.164 format, start with character '+'), example: +16315551111

Maximum string length: 255
Example:

"1693364594105000026/+16315551111"

Body

application/json

Contains the properties of the contact to be updated.

remarkName
string

Contact's remark name. Maximum length: 250 characters.

Maximum string length: 250
Example:

"remark name"

nickname
string
deprecated

Deprecated compatibility alias for remarkName. When remarkName is absent, this value is saved as the contact's remark name. It does not update the read-only WhatsApp nickname. Maximum length: 250 characters.

Maximum string length: 250
Example:

"remark name"

phoneNumber
string

Unique Phone number in E.164 format.

Example:

"+16315551111"

countryCode
string

Two-letter country abbreviation. See ISO 3166-1 alpha-2 country code.

Example:

"US"

email
string

The contact's email address. If present, the email address must be unique.

Maximum string length: 250
Example:

"support@example.com"

tags
string[]

Contact's tags. Maximum items: 50.

Maximum array length: 50

Tag. Maximum length: 50 characters.

Maximum string length: 50
customAttributes
object[]

Contact's custom attributes. If present (i.e., not null), all previous attributes of this contact will be replaced.

ownerEmail
string

The email address of the contact's owner.

Maximum string length: 250
Example:

"support@example.com"

notes
object[]

Optional incremental note mutations. An empty array changes nothing. Items without id create notes; items with id update owned notes. Notes not listed remain unchanged. Delete notes with the dedicated endpoint.

Maximum array length: 50

Response

Successfully updated the contact.

Represents a contact.

id
string
required

Unique ID for the object.

Maximum string length: 255
Example:

1693364594105000000

remarkName
string

The business-managed remark name for the contact.

Maximum string length: 250
Example:

"Priority customer"

nickname
string

The read-only nickname obtained from WhatsApp.

Example:

"nickname"

metaUsername
string

The read-only Meta username associated with the contact, without the leading @.

Example:

"alice_01"

countryCode
string

Two-letter country abbreviation. See ISO 3166-1 alpha-2 country code.

Example:

"US"

countryName
string

Full country name.

phoneNumber
string

Unique Phone number in E.164 format.

Example:

"+16315551111"

email
string

The contact's email address. If present, the email address must be unique.

Example:

"support@example.com"

lastSeen
string<date-time>

The time at which the contact last sent a message to your business, formatted in RFC 3339. e.g., 2022-06-01T12:00:00.000Z.

Example:

"2022-06-01T12:00:00.000Z"

lastMessageToPhoneNumber
string

The business phone number that the contact last sent a message to.

Example:

"+16315551111"

tags
string[]

Contact's tags.

Maximum array length: 50
Maximum string length: 50
createTime
string<date-time>

The time at which the contact was created, formatted in RFC 3339. e.g., 2022-06-01T12:00:00.000Z.

Example:

"2022-06-01T12:00:00.000Z"

customAttributes
object[]

Contact's custom attributes.

ownerEmail
string

The email address of the contact's owner.

Maximum string length: 250
Example:

"support@example.com"

sourceType
enum<string>

The source type of the contact. Indicates how the contact was created.

Available options:
WHATSAPP,
GROWTH_TOOL,
MANUALLY_ADDED,
FILE_IMPORT,
SHOPIFY,
API,
AD,
POST,
CALLING,
SMB,
UNKNOWN
Example:

"API"

sourceId
string

Source identifier. A unique identifier related to the contact creation source.

Maximum string length: 255
Example:

"batch_import_123"

sourceUrl
string

Source URL. The source link address where the contact was created.

Maximum string length: 500
Example:

"https://example.com/signup"