Get user profile from a specific channel. Only supported on MESSENGER, INSTAGRAM, VIBER and LINE channels. Note that, in order to retrieve a WhatsApp display name, you can use the Get a Contact or List Contacts operations, which will populate the display_name field of each returned contact with the WhatsApp display name (if the name is already stored on the server and the display_name field has not been overwritten by the user).
Security
Basic or oAuth2
The unique ID of the project. You can find this on the Sinch Dashboard.
One of:
Identifies the recipient.
- https://us.conversation.api.sinch.comhttps://us.conversation.api.sinch.com/v1/projects/{project_id}/contacts:getChannelProfile
curl -i -X POST \
-u '<username>:<password>' \
'https://us.conversation.api.sinch.com/v1/projects/{project_id}/contacts:getChannelProfile' \
-H 'Content-Type: application/json' \
-d '{
"app_id": "{APP_ID}",
"recipient": {
"identified_by": {
"channel_identities": [
{
"channel": "WHATSAPP",
"identity": "string"
}
]
}
},
"channel": "MESSENGER"
}'Response
{ "profile_name": "John Doe" }