API Developer

Dokumentasi API V.1.0

blog-img

Send Messages

Send text or media messages to any supported channel. The system automatically handles channel-specific logic.

POST/messages
php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
 CURLOPT_URL => 'https://app.cloudchat.id/api/public/v1/messages',
 CURLOPT_RETURNTRANSFER => true,
 CURLOPT_ENCODING => '',
 CURLOPT_MAXREDIRS => 10,
 CURLOPT_TIMEOUT => 0,
 CURLOPT_FOLLOWLOCATION => true,
 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
 CURLOPT_CUSTOMREQUEST => 'POST',
 CURLOPT_POSTFIELDS => '{  "channel": "whatsapp",  "type": "text",  "content": {    "text": "Hello from API!"  },  "to": "6281234567890"}',
 CURLOPT_HTTPHEADER => array(
   'Authorization: Bearer YOUR_API_KEY',
   'Content-Type: application/json'
 ),
));

$response = curl_exec($curl);
curl_close($curl);
echo $response;

Example Response (200 OK)

json
{
 "success": true,
 "data": {
   "id": "msg_123456789",
   "status": "queued",
   "timestamp": 1700000000
 }
}

Contact Support
Not finding the help you need?

Submit a Ticket
Prosperous impression had delay

Email us
Reach us at example@gmail.com