Dispatch Interactive Carousel UI Component
curl --request POST \
--url https://app.wachat.net/api/v1/send/carousel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"instanceName": "<string>",
"number": "<string>",
"type": "interactive",
"interactive": {
"type": "carousel",
"cards": [
{
"header": {
"type": "image",
"mediaUrl": "https://cdn.pixabay.com/photo/2022/09/23/09/13/promotion-7474039_1280.png"
},
"body": "Paket Kilat Pembuatan SaaS Modern",
"buttons": [
{
"buttonId": "c_saas",
"buttonText": {
"displayText": "Take Promotion"
},
"type": 1
}
]
},
{
"header": {
"type": "image",
"mediaUrl": "https://cdn.pixabay.com/photo/2022/07/21/13/18/computer-7336233_1280.png"
},
"body": "Setup VPS & CloudPanel",
"buttons": [
{
"buttonId": "c_vps",
"buttonText": {
"displayText": "Consultation"
},
"type": 2
}
]
}
],
"body": "Here is our web services catalog:"
},
"delay": 123
}
'import requests
url = "https://app.wachat.net/api/v1/send/carousel"
payload = {
"instanceName": "<string>",
"number": "<string>",
"type": "interactive",
"interactive": {
"type": "carousel",
"cards": [
{
"header": {
"type": "image",
"mediaUrl": "https://cdn.pixabay.com/photo/2022/09/23/09/13/promotion-7474039_1280.png"
},
"body": "Paket Kilat Pembuatan SaaS Modern",
"buttons": [
{
"buttonId": "c_saas",
"buttonText": { "displayText": "Take Promotion" },
"type": 1
}
]
},
{
"header": {
"type": "image",
"mediaUrl": "https://cdn.pixabay.com/photo/2022/07/21/13/18/computer-7336233_1280.png"
},
"body": "Setup VPS & CloudPanel",
"buttons": [
{
"buttonId": "c_vps",
"buttonText": { "displayText": "Consultation" },
"type": 2
}
]
}
],
"body": "Here is our web services catalog:"
},
"delay": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
instanceName: '<string>',
number: '<string>',
type: 'interactive',
interactive: {
type: 'carousel',
cards: [
{
header: {
type: 'image',
mediaUrl: 'https://cdn.pixabay.com/photo/2022/09/23/09/13/promotion-7474039_1280.png'
},
body: JSON.stringify('Paket Kilat Pembuatan SaaS Modern'),
buttons: [{buttonId: 'c_saas', buttonText: {displayText: 'Take Promotion'}, type: 1}]
},
{
header: {
type: 'image',
mediaUrl: 'https://cdn.pixabay.com/photo/2022/07/21/13/18/computer-7336233_1280.png'
},
body: JSON.stringify('Setup VPS & CloudPanel'),
buttons: [{buttonId: 'c_vps', buttonText: {displayText: 'Consultation'}, type: 2}]
}
],
body: JSON.stringify('Here is our web services catalog:')
},
delay: 123
})
};
fetch('https://app.wachat.net/api/v1/send/carousel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.wachat.net/api/v1/send/carousel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'instanceName' => '<string>',
'number' => '<string>',
'type' => 'interactive',
'interactive' => [
'type' => 'carousel',
'cards' => [
[
'header' => [
'type' => 'image',
'mediaUrl' => 'https://cdn.pixabay.com/photo/2022/09/23/09/13/promotion-7474039_1280.png'
],
'body' => 'Paket Kilat Pembuatan SaaS Modern',
'buttons' => [
[
'buttonId' => 'c_saas',
'buttonText' => [
'displayText' => 'Take Promotion'
],
'type' => 1
]
]
],
[
'header' => [
'type' => 'image',
'mediaUrl' => 'https://cdn.pixabay.com/photo/2022/07/21/13/18/computer-7336233_1280.png'
],
'body' => 'Setup VPS & CloudPanel',
'buttons' => [
[
'buttonId' => 'c_vps',
'buttonText' => [
'displayText' => 'Consultation'
],
'type' => 2
]
]
]
],
'body' => 'Here is our web services catalog:'
],
'delay' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.wachat.net/api/v1/send/carousel"
payload := strings.NewReader("{\n \"instanceName\": \"<string>\",\n \"number\": \"<string>\",\n \"type\": \"interactive\",\n \"interactive\": {\n \"type\": \"carousel\",\n \"cards\": [\n {\n \"header\": {\n \"type\": \"image\",\n \"mediaUrl\": \"https://cdn.pixabay.com/photo/2022/09/23/09/13/promotion-7474039_1280.png\"\n },\n \"body\": \"Paket Kilat Pembuatan SaaS Modern\",\n \"buttons\": [\n {\n \"buttonId\": \"c_saas\",\n \"buttonText\": {\n \"displayText\": \"Take Promotion\"\n },\n \"type\": 1\n }\n ]\n },\n {\n \"header\": {\n \"type\": \"image\",\n \"mediaUrl\": \"https://cdn.pixabay.com/photo/2022/07/21/13/18/computer-7336233_1280.png\"\n },\n \"body\": \"Setup VPS & CloudPanel\",\n \"buttons\": [\n {\n \"buttonId\": \"c_vps\",\n \"buttonText\": {\n \"displayText\": \"Consultation\"\n },\n \"type\": 2\n }\n ]\n }\n ],\n \"body\": \"Here is our web services catalog:\"\n },\n \"delay\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.wachat.net/api/v1/send/carousel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"instanceName\": \"<string>\",\n \"number\": \"<string>\",\n \"type\": \"interactive\",\n \"interactive\": {\n \"type\": \"carousel\",\n \"cards\": [\n {\n \"header\": {\n \"type\": \"image\",\n \"mediaUrl\": \"https://cdn.pixabay.com/photo/2022/09/23/09/13/promotion-7474039_1280.png\"\n },\n \"body\": \"Paket Kilat Pembuatan SaaS Modern\",\n \"buttons\": [\n {\n \"buttonId\": \"c_saas\",\n \"buttonText\": {\n \"displayText\": \"Take Promotion\"\n },\n \"type\": 1\n }\n ]\n },\n {\n \"header\": {\n \"type\": \"image\",\n \"mediaUrl\": \"https://cdn.pixabay.com/photo/2022/07/21/13/18/computer-7336233_1280.png\"\n },\n \"body\": \"Setup VPS & CloudPanel\",\n \"buttons\": [\n {\n \"buttonId\": \"c_vps\",\n \"buttonText\": {\n \"displayText\": \"Consultation\"\n },\n \"type\": 2\n }\n ]\n }\n ],\n \"body\": \"Here is our web services catalog:\"\n },\n \"delay\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.wachat.net/api/v1/send/carousel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"instanceName\": \"<string>\",\n \"number\": \"<string>\",\n \"type\": \"interactive\",\n \"interactive\": {\n \"type\": \"carousel\",\n \"cards\": [\n {\n \"header\": {\n \"type\": \"image\",\n \"mediaUrl\": \"https://cdn.pixabay.com/photo/2022/09/23/09/13/promotion-7474039_1280.png\"\n },\n \"body\": \"Paket Kilat Pembuatan SaaS Modern\",\n \"buttons\": [\n {\n \"buttonId\": \"c_saas\",\n \"buttonText\": {\n \"displayText\": \"Take Promotion\"\n },\n \"type\": 1\n }\n ]\n },\n {\n \"header\": {\n \"type\": \"image\",\n \"mediaUrl\": \"https://cdn.pixabay.com/photo/2022/07/21/13/18/computer-7336233_1280.png\"\n },\n \"body\": \"Setup VPS & CloudPanel\",\n \"buttons\": [\n {\n \"buttonId\": \"c_vps\",\n \"buttonText\": {\n \"displayText\": \"Consultation\"\n },\n \"type\": 2\n }\n ]\n }\n ],\n \"body\": \"Here is our web services catalog:\"\n },\n \"delay\": 123\n}"
response = http.request(request)
puts response.read_bodyMessages
Send Carousel
Launch highly interactive, side-scrolling horizontal promotional card arrays equipped with contextual call-to-action buttons for maximized digital conversions.
POST
/
send
/
carousel
Dispatch Interactive Carousel UI Component
curl --request POST \
--url https://app.wachat.net/api/v1/send/carousel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"instanceName": "<string>",
"number": "<string>",
"type": "interactive",
"interactive": {
"type": "carousel",
"cards": [
{
"header": {
"type": "image",
"mediaUrl": "https://cdn.pixabay.com/photo/2022/09/23/09/13/promotion-7474039_1280.png"
},
"body": "Paket Kilat Pembuatan SaaS Modern",
"buttons": [
{
"buttonId": "c_saas",
"buttonText": {
"displayText": "Take Promotion"
},
"type": 1
}
]
},
{
"header": {
"type": "image",
"mediaUrl": "https://cdn.pixabay.com/photo/2022/07/21/13/18/computer-7336233_1280.png"
},
"body": "Setup VPS & CloudPanel",
"buttons": [
{
"buttonId": "c_vps",
"buttonText": {
"displayText": "Consultation"
},
"type": 2
}
]
}
],
"body": "Here is our web services catalog:"
},
"delay": 123
}
'import requests
url = "https://app.wachat.net/api/v1/send/carousel"
payload = {
"instanceName": "<string>",
"number": "<string>",
"type": "interactive",
"interactive": {
"type": "carousel",
"cards": [
{
"header": {
"type": "image",
"mediaUrl": "https://cdn.pixabay.com/photo/2022/09/23/09/13/promotion-7474039_1280.png"
},
"body": "Paket Kilat Pembuatan SaaS Modern",
"buttons": [
{
"buttonId": "c_saas",
"buttonText": { "displayText": "Take Promotion" },
"type": 1
}
]
},
{
"header": {
"type": "image",
"mediaUrl": "https://cdn.pixabay.com/photo/2022/07/21/13/18/computer-7336233_1280.png"
},
"body": "Setup VPS & CloudPanel",
"buttons": [
{
"buttonId": "c_vps",
"buttonText": { "displayText": "Consultation" },
"type": 2
}
]
}
],
"body": "Here is our web services catalog:"
},
"delay": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
instanceName: '<string>',
number: '<string>',
type: 'interactive',
interactive: {
type: 'carousel',
cards: [
{
header: {
type: 'image',
mediaUrl: 'https://cdn.pixabay.com/photo/2022/09/23/09/13/promotion-7474039_1280.png'
},
body: JSON.stringify('Paket Kilat Pembuatan SaaS Modern'),
buttons: [{buttonId: 'c_saas', buttonText: {displayText: 'Take Promotion'}, type: 1}]
},
{
header: {
type: 'image',
mediaUrl: 'https://cdn.pixabay.com/photo/2022/07/21/13/18/computer-7336233_1280.png'
},
body: JSON.stringify('Setup VPS & CloudPanel'),
buttons: [{buttonId: 'c_vps', buttonText: {displayText: 'Consultation'}, type: 2}]
}
],
body: JSON.stringify('Here is our web services catalog:')
},
delay: 123
})
};
fetch('https://app.wachat.net/api/v1/send/carousel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.wachat.net/api/v1/send/carousel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'instanceName' => '<string>',
'number' => '<string>',
'type' => 'interactive',
'interactive' => [
'type' => 'carousel',
'cards' => [
[
'header' => [
'type' => 'image',
'mediaUrl' => 'https://cdn.pixabay.com/photo/2022/09/23/09/13/promotion-7474039_1280.png'
],
'body' => 'Paket Kilat Pembuatan SaaS Modern',
'buttons' => [
[
'buttonId' => 'c_saas',
'buttonText' => [
'displayText' => 'Take Promotion'
],
'type' => 1
]
]
],
[
'header' => [
'type' => 'image',
'mediaUrl' => 'https://cdn.pixabay.com/photo/2022/07/21/13/18/computer-7336233_1280.png'
],
'body' => 'Setup VPS & CloudPanel',
'buttons' => [
[
'buttonId' => 'c_vps',
'buttonText' => [
'displayText' => 'Consultation'
],
'type' => 2
]
]
]
],
'body' => 'Here is our web services catalog:'
],
'delay' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.wachat.net/api/v1/send/carousel"
payload := strings.NewReader("{\n \"instanceName\": \"<string>\",\n \"number\": \"<string>\",\n \"type\": \"interactive\",\n \"interactive\": {\n \"type\": \"carousel\",\n \"cards\": [\n {\n \"header\": {\n \"type\": \"image\",\n \"mediaUrl\": \"https://cdn.pixabay.com/photo/2022/09/23/09/13/promotion-7474039_1280.png\"\n },\n \"body\": \"Paket Kilat Pembuatan SaaS Modern\",\n \"buttons\": [\n {\n \"buttonId\": \"c_saas\",\n \"buttonText\": {\n \"displayText\": \"Take Promotion\"\n },\n \"type\": 1\n }\n ]\n },\n {\n \"header\": {\n \"type\": \"image\",\n \"mediaUrl\": \"https://cdn.pixabay.com/photo/2022/07/21/13/18/computer-7336233_1280.png\"\n },\n \"body\": \"Setup VPS & CloudPanel\",\n \"buttons\": [\n {\n \"buttonId\": \"c_vps\",\n \"buttonText\": {\n \"displayText\": \"Consultation\"\n },\n \"type\": 2\n }\n ]\n }\n ],\n \"body\": \"Here is our web services catalog:\"\n },\n \"delay\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.wachat.net/api/v1/send/carousel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"instanceName\": \"<string>\",\n \"number\": \"<string>\",\n \"type\": \"interactive\",\n \"interactive\": {\n \"type\": \"carousel\",\n \"cards\": [\n {\n \"header\": {\n \"type\": \"image\",\n \"mediaUrl\": \"https://cdn.pixabay.com/photo/2022/09/23/09/13/promotion-7474039_1280.png\"\n },\n \"body\": \"Paket Kilat Pembuatan SaaS Modern\",\n \"buttons\": [\n {\n \"buttonId\": \"c_saas\",\n \"buttonText\": {\n \"displayText\": \"Take Promotion\"\n },\n \"type\": 1\n }\n ]\n },\n {\n \"header\": {\n \"type\": \"image\",\n \"mediaUrl\": \"https://cdn.pixabay.com/photo/2022/07/21/13/18/computer-7336233_1280.png\"\n },\n \"body\": \"Setup VPS & CloudPanel\",\n \"buttons\": [\n {\n \"buttonId\": \"c_vps\",\n \"buttonText\": {\n \"displayText\": \"Consultation\"\n },\n \"type\": 2\n }\n ]\n }\n ],\n \"body\": \"Here is our web services catalog:\"\n },\n \"delay\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.wachat.net/api/v1/send/carousel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"instanceName\": \"<string>\",\n \"number\": \"<string>\",\n \"type\": \"interactive\",\n \"interactive\": {\n \"type\": \"carousel\",\n \"cards\": [\n {\n \"header\": {\n \"type\": \"image\",\n \"mediaUrl\": \"https://cdn.pixabay.com/photo/2022/09/23/09/13/promotion-7474039_1280.png\"\n },\n \"body\": \"Paket Kilat Pembuatan SaaS Modern\",\n \"buttons\": [\n {\n \"buttonId\": \"c_saas\",\n \"buttonText\": {\n \"displayText\": \"Take Promotion\"\n },\n \"type\": 1\n }\n ]\n },\n {\n \"header\": {\n \"type\": \"image\",\n \"mediaUrl\": \"https://cdn.pixabay.com/photo/2022/07/21/13/18/computer-7336233_1280.png\"\n },\n \"body\": \"Setup VPS & CloudPanel\",\n \"buttons\": [\n {\n \"buttonId\": \"c_vps\",\n \"buttonText\": {\n \"displayText\": \"Consultation\"\n },\n \"type\": 2\n }\n ]\n }\n ],\n \"body\": \"Here is our web services catalog:\"\n },\n \"delay\": 123\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Authenticate your integration payloads by injecting your premium secure Wachat Account API Private Secret Key inside standard Authorization Bearer header vectors.
Body
application/json
Name of your connected WhatsApp session profile.
Target phone number with international country code routing.
Set this strictly to interactive.
Available options:
interactive Example:
"interactive"
Show child attributes
Show child attributes
Custom time delay configuration before rendering the structural carousel cards.
Response
200
Complex sliding carousel matrix successfully structured and delivered to user interface.
⌘I
