Update Contacts
POST/v1/users/{userId}/contacts
Performs incremental updates to the user's synced contacts.
Operations
This endpoint supports:
- Add: New contacts to include in screening personalization
- Delete: Remove contacts no longer in the user's address book
Prerequisites
The initial address book sync (PUT /contacts) must be completed before using this endpoint for incremental updates.
Best Practices
- Batch multiple contact changes in a single request when possible
- Subscribe to device contact change events for real-time sync
- Avoid full re-sync (PUT) for individual contact changes
Path Parameters
UUID for the given user
Header Parameters
Product version. The standard "major.minor.patch" format is highly encouraged without any leading characters; "2.1.3" or "3.0.0" for example.
The identifier of a logged-in user. Same identifier that is used for /users/{user_id}
Body
requiredArray [
- Format is SHA256(number + salt) with no spaces added
- Number must be in E.164 format
]
Array [
- Format is SHA256(number + salt) with no spaces added
- Number must be in E.164 format
]
addobject[]required
Hashed + salted contact (the salt to use is returned in the contactSalt field of 'Get User Account' API).
deleteobject[]required
Hashed + salted contact (the salt to use is returned in the contactSalt field of 'Get User Account' API).
Responses
- 200
- 400
- 404
- 500
OK
Response Body
Array [
- Format is SHA256(number + salt) with no spaces added
- Number must be in E.164 format
]
failuresobject[]
Hashed + salted contact (the salt to use is returned in the contactSalt field of 'Get User Account' API).
Example from Schema
{
"successfulCount": 0,
"failureCount": 0,
"failures": [
{
"anonymizedContact": "string"
}
]
}
Bad Request
Response Body
A unique error ID for tracking and support purposes. Include this ID when contacting support.
err_7f3b9c2a-1234-5678-9abc-def012345678HTTP status code mirrored in the response body for convenience.
400A developer-friendly error message with technical details for debugging.
Invalid phone number format. Expected E.164 format (e.g., +14155551234)A user-friendly error message safe to display in the UI. Localized based on the Accept-Language header when available.
The phone number you entered is not valid. Please check and try again.Example from Schema
{
"errorId": "err_7f3b9c2a-1234-5678-9abc-def012345678",
"status": 400,
"errorDescription": "Invalid phone number format. Expected E.164 format (e.g., +14155551234)",
"displayError": "The phone number you entered is not valid. Please check and try again."
}
Not Found
Response Body
A unique error ID for tracking and support purposes. Include this ID when contacting support.
err_7f3b9c2a-1234-5678-9abc-def012345678HTTP status code mirrored in the response body for convenience.
400A developer-friendly error message with technical details for debugging.
Invalid phone number format. Expected E.164 format (e.g., +14155551234)A user-friendly error message safe to display in the UI. Localized based on the Accept-Language header when available.
The phone number you entered is not valid. Please check and try again.Example from Schema
{
"errorId": "err_7f3b9c2a-1234-5678-9abc-def012345678",
"status": 400,
"errorDescription": "Invalid phone number format. Expected E.164 format (e.g., +14155551234)",
"displayError": "The phone number you entered is not valid. Please check and try again."
}
Internal Server Error
Response Body
A unique error ID for tracking and support purposes. Include this ID when contacting support.
err_7f3b9c2a-1234-5678-9abc-def012345678HTTP status code mirrored in the response body for convenience.
400A developer-friendly error message with technical details for debugging.
Invalid phone number format. Expected E.164 format (e.g., +14155551234)A user-friendly error message safe to display in the UI. Localized based on the Accept-Language header when available.
The phone number you entered is not valid. Please check and try again.Example from Schema
{
"errorId": "err_7f3b9c2a-1234-5678-9abc-def012345678",
"status": 400,
"errorDescription": "Invalid phone number format. Expected E.164 format (e.g., +14155551234)",
"displayError": "The phone number you entered is not valid. Please check and try again."
}