Authorization
{token}
con{
"template_name": "{template name}",
"language": [
"{lang code}"
],
"template_type": "template",
"template_category": "MARKETING/TRANSACTIONAL",
"components": {
"header": {
"type": "image/video/document",
"example": "{sample media url}"
},
"body": {
"text": "{body text}"
},
"footer": {
"text": "{footer text}"
},
"buttons": {
"type": "call_to_action",
"elements": [
{
"label": "{phone number label}",
"contact_no": "{phone number with + and country code}"
},
{
"label": "{url label}",
"type": "static/dynamic",
"website": "{url with https}"
}
]
}
}
}ole.log( 'Code is Poetry' );
raw (json)
{
"template_name": "{template name}",
"language": [
"{lang code}"
],
"template_type": "template",
"template_category": "MARKETING/TRANSACTIONAL",
"components": {
"header": {
"type": "image/video/document",
"example": "{sample media url}"
},
"body": {
"text": "{body text}"
},
"footer": {
"text": "{footer text}"
},
"buttons": {
"type": "call_to_action",
"elements": [
{
"label": "{phone number label}",
"contact_no": "{phone number with + and country code}"
},
{
"label": "{url label}",
"type": "static/dynamic",
"website": "{url with https}"
}
]
}
}
}
View Template message API helps you download all the approved and rejected list of templates added in the account.
Authorization
{token}
curl --location 'https://apis.rmlconnect.net/wba/templates' \
--header 'Authorization: {token}' \
--data ''
This API is used to Broadcast WhatsApp pre-approved Messages (templates) to end user
header is a JSON string consisting of a set of mandatory keys that define the text or multimedia based header section of a template:
body is a JSON string consisting of a text key that defines the variables of a template:
button is a JSON string consisting of a set of mandatory keys that define the dynamic variable pf the call to action url redirection button of a template:
For every success request, a JSON response is sent with key as status, message, and request_id.
For every failed request, a JSON response is sent with key as status, message, and reason.
Note
Body raw
{
"phone": "{mobile number}",
"extra": "{your value}",
"enable_acculync": true,
"media": {
"type": "media_template",
"template_name": "{your template}",
"lang_code": "{lang_code}",
"header": [
{
"image": {
"link": "{sample image url hosted publicly starting with https:// and ending with file extension}",
"file_name": "{sample media name and ending with file extension}"
}
}
],
"body": [
{
"text": "{variable}"
},
{
"text": "{variable}"
}
],
"button": [
{
"button_no": "0/1",
"url": "{dynamic_url variable}"
}
]
}
}
This API is used to Broadcast WhatsApp pre-approved Messages( templates) to end user
media
Field Breakdown:media is a JSON string consisting of a set of mandatory keys that define the multimedia or button sections of a session response:
header
Field Breakdown:header is a JSON string consisting of a set of mandatory keys that define the button based header section of a session response:
body
Field Breakdown:body is a JSON string consisting of a text that defines the button options in session message:
button
Field Breakdown:button is a JSON string consisting of a set of mandatory keys of the button options in session message:
For every success request, a JSON response is sent with key as status, message, and request_id.
For every failed request, a JSON response is sent with key as status, message, and reason.
Note
Body formdata
curl --location 'https://apis.rmlconnect.net/wba/v1/messages' \
--header 'Content-Type: application/json' \
--header 'Authorization: {token}' \
--data '{
"phone": "{mobile number}",
"extra": "{your value}",
"enable_acculync": true,
"media": {
"type": "media_template",
"template_name": "{your template}",
"lang_code": "{lang_code}",
"body": [
{
"text": "{variable}"
},
{
"text": "{variable}"
}
],
"button": [
{
"button_no": "0/1",
"url": "{dynamic_url variable}"
}
]
}
}'
{
"message": "message received successfully",
"status": "processing",
"request_id": "794c3fd4-f142-11eb-8e02-0242ac120005"
}
curl --location 'https://apis.rmlconnect.net/wba/v1/messages' \
--header 'Content-Type: application/json' \
--header 'Authorization: {token}' \
--data '{
"phone": "{mobile number}",
"text": "{sample text}",
"enable_acculync": true,
"extra": "{your value}"
}'
{
"message": "message received successfully",
"status": "processing",
"request_id": "794c3fd4-f142-11eb-8e02-0242ac120005"
}
curl --location 'https://apis.rmlconnect.net/wba/v2/upload?source=UI' \
--header 'Authorization: {token}' \
--form 'file=@"/path/to/file"' \
--form 'filename="{file name}"' \
--form 'file_mimetype="text/plain or text/csv"' \
--form 'message="{payload}"' \
--form 'campaign_type="generalized/personalised"'
HEADERS
Body Raw
© Copyright 2024. All Rights Reserved by Venera Connect