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.
x-sender-id<token>
In: header
Query Parameters
phoneNumberstring
Header Parameters
x-sender-idstring
Format
guid
x-api-keystring
Response Body
curl -X GET "https://api.sent.dm/v1/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"
}
Empty
Empty