Create a contact

Creates a new contact by phone number and associates it with the authenticated customer.

POST
/v3/contacts

Header Parameters

Idempotency-Key?string

Unique 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.

Match^[a-zA-Z0-9_-]+$
Lengthlength <= 255
x-profile-id?string

Profile 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.

Formatuuid

Request Body

application/json
  1. body

Request to create a new contact

sandbox?boolean

Sandbox flag - when true, the operation is simulated without side effects Useful for testing integrations without actual execution

phone_number*string

Phone number of the contact to create

Length1 <= length

Response Body

Contact created successfully

application/json
  1. response

Standard API response envelope for all v3 endpoints

success?boolean

Indicates whether the request was successful

data?|null

The response data (null if error)

error?|null

Error details (null if successful)

meta?

Metadata about the request and response

Example Request
curl -X POST 'https://api.sent.dm/v3/contacts' \  -H 'Idempotency-Key: req_abc123_retry1' \  -H 'Content-Type: application/json' \  -d '{  "phone_number": "+1234567890",  "sandbox": false}'
Example Response
{  "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",    "default_channel": "sms",    "opt_out": false,    "is_inherited": false,    "created_at": "2026-11-12T15:32:26.7789179+00:00",    "updated_at": null  },  "error": null,  "meta": {    "request_id": "req_7X9zKp2jDw",    "timestamp": "2026-11-12T15:32:26.778937+00:00",    "version": "v3"  }}