Update a contact
Updates a contact's default channel and/or opt-out status.
id*stringContact ID from route parameter
uuidIdempotency-Key?stringUnique key to ensure idempotent request processing. Must be 1-255 alphanumeric characters, hyphens, or underscores. Responses are cached for 24 hours per key per customer.
^[a-zA-Z0-9_-]+$length <= 255x-profile-id?stringProfile UUID to scope the request to a child profile. Only organization API keys can use this header. The profile must belong to the calling organization.
uuidapplication/json- body
Request to update a contact
sandbox?booleanSandbox flag - when true, the operation is simulated without side effects Useful for testing integrations without actual execution
default_channel?|Default messaging channel: "sms" or "whatsapp"
opt_out?|Whether the contact has opted out of messaging. Single source of truth — opt-out is per-contact, not per-channel.
Contact updated successfully
application/json- response
Standard API response envelope for all v3 endpoints
success?booleanIndicates whether the request was successful
data?|nullThe response data (null if error)
error?|nullError details (null if successful)
meta?Metadata about the request and response
curl -X PATCH 'https://api.sent.dm/v3/contacts/6ba7b810-9dad-11d1-80b4-00c04fd430c8' \ -H 'Idempotency-Key: req_abc123_retry1' \ -H 'Content-Type: application/json' \ -d '{ "default_channel": "whatsapp", "opt_out": false, "sandbox": false}'{ "success": true, "data": { "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "customer_id": "00000000-0000-0000-0000-000000000000", "phone_number": "+1234567890", "format_e164": "+1234567890", "format_international": "+1 234-567-890", "format_national": "(234) 567-890", "format_rfc": "tel:+1-234-567-890", "country_code": "1", "region_code": "US", "available_channels": "sms,whatsapp", "default_channel": "whatsapp", "opt_out": false, "is_inherited": false, "created_at": "2026-10-28T23:31:12.8685951+00:00", "updated_at": "2026-11-27T23:31:12.8685959+00:00" }, "error": null, "meta": { "request_id": "req_7X9zKp2jDw", "timestamp": "2026-11-27T23:31:12.8685963+00:00", "version": "v3" }}Create a contact POST
Creates a new contact by phone number and associates it with the authenticated customer.
Delete a contact DELETE
**Deprecated.** Use `PATCH /v3/contacts/{id}` with `{"opt_out": true}` instead, and expect this to be removed in a future release. It still behaves exactly as before, so nothing needs to change today. Opting a contact out stops every send to them, which is what deleting one was mostly used for — and it keeps the record of who they were and that they asked. A delete discards the consent history along with the contact, which is the part you need if anyone ever asks why you stopped, or why you started again. Dissociates a contact from the authenticated customer.