How to Hide Message Variable(s) in Qiscus Multichannel Dashboard?

  • Updated

You can use the same API as the API to send WhatsApp OTP via Qiscus. However, to hide the variable and make it visible only to the recipient (your customers), you have to add hide_variable in the body.
API:

https://omnichannel.qiscus.com/api/v3/admin/broadcast/client

Example request:

curl --location -g --request POST 'https://omnichannel.qiscus.com/api/v3/admin/broadcast/client' \
--header 'Authorization: {{AdminToken}}' \
--form 'channel_id=""' \
--form 'template_name=""' \
--form 'namespace=""' \
--form 'language=""' \
--form 'variables[]=""' \
--form 'phone_number=""' \
--form 'button_params=""' \
--form 'header_value=""' \
--form 'hide_variables="true"'

Example response:

{
"data": {
"broadcast_job_id": xxx24,
"broadcast_logs": [
{
"id": 12371070,
"message_id": "gBGHxxxSGUDxsVcB",
"notes": null,
"phone_number": "+6285xxxx3456",
"sent_at": "2021-08-23T07:54:49Z",
"status": "sent",
"variables": "[\"test\"]"
}
],
"language": "en",
"name": "paxxxx_coxxxrmaxn",
"namespace": "6616bb93_xxxx_41e7_8bbe_2c528219e56e"
},
"status": 200
}

HEADERS

Key Type
Authorization {{AdminToken}}

BODY

Key Type
channel_id optional, if null will use first wa channel
template_name required
namespace required
language string, required
variables[] array of string, required
phone_number string, required
button_params required if template has buttons
header_value optional
hide_variables true

 

 

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.