Get contact by phone number for authenticated customer
Retrieves a contact by their phone number for the authenticated customer. Phone number should be in international format (e.g., +1234567890). The customer ID is extracted from the authentication token.
phoneNumber*stringThe phone number in international format (e.g., +1234567890)
Contact found and returned successfully
application/json- response
Represents a contact in the customer's contact list
id?stringThe unique identifier of the contact
uuidphoneNumber?stringThe phone number in its original format
formatE164?stringThe phone number formatted in E.164 standard (e.g., +1234567890)
formatInternational?stringThe phone number formatted for international dialing (e.g., +1 234-567-890)
formatNational?stringThe phone number formatted for national dialing (e.g., (234) 567-890)
formatRfc?stringThe phone number formatted according to RFC 3966 (e.g., tel:+1-234-567-890)
countryCode?stringThe country calling code (e.g., 1 for US/Canada)
regionCode?stringThe ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
availableChannels?stringComma-separated list of available messaging channels for this contact (e.g., "sms,whatsapp")
defaultChannel?stringThe default messaging channel to use for this contact (e.g., "sms" or "whatsapp")
curl -X GET 'https://api.sent.dm/v2/contacts/phone?phoneNumber=%2B1234567890'{ "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "phoneNumber": "+1234567890", "formatE164": "+1234567890", "formatInternational": "+1 234-567-890", "formatNational": "(234) 567-890", "formatRfc": "tel:+1-234-567-890", "countryCode": "1", "regionCode": "US", "availableChannels": "sms,whatsapp", "defaultChannel": "sms"}Get contact by ID for authenticated customer GET
Retrieves a specific contact by their unique identifier for the authenticated customer. The customer ID is extracted from the authentication token. Returns detailed contact information including phone number and creation timestamp.
Get all templates for authenticated customer with enhanced metadata and filtering GET
Retrieves all message templates available for the authenticated customer with comprehensive template definitions including headers, body, footer, and interactive buttons. Supports advanced filtering by search term, status, and category, plus pagination. The customer ID is extracted from the authentication token.