Request Contact Info

Use this API to send messages using the Request Contact Info template.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Note:

Templates that carry a REQUEST_CONTACT_INFO button can only be of the marketing or utility category.


Sample Request:

curl --location 'https://qa-partner-api.smsgupshup.dev/partner/app/{{APP_ID}}/template/msg' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'source={source}' \
--data-urlencode 'sandbox=false' \
--data-urlencode 'template={"id": "79f682a1-3367-4f1e-9e79-c972b60ca339","params": ["A-10293"]}' \
--data-urlencode 'src.name=safari' \
--data-urlencode 'userId=USERID'

Sample Response:

{
    "status": "submitted",
    "messageId": "8893bef1-9abf-4539-89d6-6293fe4c7785"
}
Path Params
uuid
required

Partner app id (UUID).

Form Data

Form-encoded template-send body. Mirrors WhatsappSendTemplateMessageFormSchema, plus the
userId field the route forwards but does not declare. Unlisted fields are passed through
to WASS as-is.

string
required

Sender phone in E.164 without +. Must be a number registered on the app.

string
required

Template payload as a JSON string — see TemplatePayload. Carries the approved
template id and the positional params for its body variables.

string

Recipient phone in E.164 without +. Required unless the recipient is addressed by
userId. Do not put an MSISDN in userId — the send is accepted, then fails with
code: 100 and an empty recipient_id.

string

Recipient BSUID, an alternative to destination on WABAs enabled for BSUID
addressing. Not declared on WhatsappSendTemplateMessageFormSchema, but the route
binds a MultiValueMap and forwards it upstream.

string

Sender display name (app name) shown on the message.

string
enum
Defaults to false

Whether to use the sandbox route.

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json