The requirements to use WhatsApp OTP through Qiscus Multichannel:
- You must have Qiscus Multichannel account. If you don’t have one, you can register here.
- WhatsApp account integrated with Qiscus Multichannel.
- Approved broadcast message template(s).
You can send WhatsApp OTP using this API:
{{BaseUrl}}/api/v3/agent/broadcast/client
Example request:
curl --location -g --request POST '{{BaseUrl}}/api/v3/agent/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=""'
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": "[\"Your OTP Code\"]"
}
] "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 we use first wa channel |
template_name | required |
namespace |
required |
languange | string, required |
variable[] | array of string, required |
phone_number | string, required |
button_params | required when template has buttons |
header_value | optional |
Comments
0 comments
Please sign in to leave a comment.