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.
Query Parameters
The phone number in international format (e.g., +1234567890)
Header Parameters
guidResponse Body
application/json
curl -X GET "https://api.sent.dm/v2/contacts/phone?phoneNumber=string" \ -H "x-sender-id: string" \ -H "x-api-key: string"{
"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 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.
List all templates 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.