post
https://partner.gupshup.io/partner/app//v3/message
Within an active session window the button can only be sent as an interactive message of type request_contact_info.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Sample Request:
curl --location 'https://qa-partner-api.smsgupshup.dev/partner/app/{{APP_ID}}/v3/message' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'content-type: application/json' \
--data '{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"recipient": "{recipientId}",
"type": "interactive",
"interactive": {
"type": "request_contact_info",
"body": {
"text": "Please share your phone number so we can reach you."
},
"action": {
"name": "request_contact_info"
}
}
}'Sample Response:
{
"messages": [
{
"id": "6c786aad-b4e1-4351-92f6-bd4f1e832783"
}
],
"messaging_product": "whatsapp",
"contacts": [
{
"input": "{recipientId}",
"user_id": "{recipientId}"
}
]
}