The OvoWpp API follows RESTful architecture standards, offering clear and consistent resource-based endpoints. All requests and responses are transmitted in JSON format, leveraging standard HTTP verbs, status codes, and authentication protocols to enable secure, efficient, and scalable integrations.

API Base URL

Please note that OvoWpp does not provide a sandbox or test environment. All API requests are processed in the live environment, so ensure that all request data and parameters are accurate before making any calls.

string
https://www.ovowp.penastudio.id/external-api

All requests to the OvoWpp API require authentication. Each API request must include a valid client-id and client-secret to the request header, which can be obtained from your OvoWpp Dashboard under Developer Tools.

In addition to credentials, OvoWpp enforces IP-based security. You must register and enable your server’s public IP address in the IP Whitelist section of the dashboard. Requests originating from non-whitelisted IP addresses will be automatically rejected.

Both valid API credentials and an approved IP address are mandatory. Without completing these two steps, authentication will fail and API access will not be granted.

All responses from the OvoWpp API are returned in JSON format. Each response follows a consistent structure and includes a status indicator, message, and relevant data payload when applicable. Standard HTTP status codes are used to represent the outcome of each request.

Contoh Respon Sukses

JSON
{
"status": "success",
"remark": "contact_list",
"message":[
    "Contact list fetched successfully"
],
"data": {
   ...you get all data here
    }
}
                    

Contoh Respon Error

JSON
{
    "remark": "Unauthorized",
    "status": "error",
    "message": [
        "The client secret is required"
    ]
}
                    
JSON
 {
    "remark": "Unauthorized",
    "status": "error",
    "message": [
        "Access to this API endpoint is restricted to IP addresses that have been explicitly whitelisted.",
        "In order to access this API endpoint, please add your IP address (::1) to the white list from the user dashboard."
    ]
}
                    
php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://www.ovowp.penastudio.id/extern-api/contact/list',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'client-id: YOUR-CLIENT-ID',
    'client-secret: YOUR-CLIENT-SECRET',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

 
                                
                        
Parameter Query

Parameter query yang memungkinkan Anda menyesuaikan respons API.

Nama Deskripsi Dibutuhkan Default
halaman Menentukan nomor halaman untuk diambil. Tidak 1
paginate Menentukan jumlah item yang dikembalikan per halaman. Tidak 20
cari Mencari kontak berdasarkan nama depan, nama belakang, atau nomor ponsel. Tidak -
php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://www.ovowp.penastudio.id/extern-api/contact/store',
  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 => array('firstname' => 'John','lastname' => 'Doe','mobile_code' => '880','mobile' => '01988'),
  CURLOPT_HTTPHEADER => array(
    'client-id: YOUR-CLIENT-ID',
    'client-secret: YOUR-CLIENT-SECRET',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Kolom Wajib

Kolom berikut diperlukan untuk membuat kontak baru dalam sistem.

Nama Dibutuhkan Default
nama_depan Ya -
nama_belakang Ya -
kode_ponsel Ya -
ponsel Ya -
kota Tidak -
provinsi Tidak -
kode_pos Tidak -
alamat Tidak -
gambar_profil Tidak -
php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://www.ovowp.penastudio.id/extern-api/contact/update/{contactId}',
  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 => array('firstname' => 'John','lastname' => 'Doe','mobile_code' => '880','mobile' => '01988'),
  CURLOPT_HTTPHEADER => array(
    'client-id: YOUR-CLIENT-ID',
    'client-secret: YOUR-CLIENT-SECRET',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Kolom Wajib

Kolom berikut diperlukan untuk membuat kontak baru dalam sistem.

Nama Dibutuhkan Default
nama_depan Ya -
nama_belakang Ya -
kode_ponsel Ya -
ponsel Ya -
kota Tidak -
provinsi Tidak -
kode_pos Tidak -
alamat Tidak -
gambar_profil Tidak -
php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://www.ovowp.penastudio.id/extern-api/contact/delete/{contactId}',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'DELETE',
  CURLOPT_POSTFIELDS => array('firstname' => 'John','lastname' => 'Doe','mobile_code' => '880','mobile' => '01988'),
  CURLOPT_HTTPHEADER => array(
    'client-id: YOUR-CLIENT-ID',
    'client-secret: YOUR-CLIENT-SECRET',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://www.ovowp.penastudio.id/extern-api/inbox/conversation-list',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'client-id: YOUR-CLIENT-ID',
    'client-secret: YOUR-CLIENT-SECRET',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Parameter Query

Nama Deskripsi Default
status Filter percakapan berdasarkan status. Gunakan nilai di bawah ini untuk memfilter percakapan berdasarkan status. Done = 1; Pending = 2; Important = 3; Unread = 4; Semua
halaman Menentukan nomor halaman untuk diambil. 1
paginate Menentukan jumlah item yang dikembalikan per halaman. 20
php

$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://www.ovowp.penastudio.id/extern-api/inbox/change-conversation-status/2',
  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 => array('status' => '1'),
  CURLOPT_HTTPHEADER => array(
    'client-id: YOUR-CLIENT-ID',
    'client-secret: YOUR-CLIENT-SECRET',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Parameter URL

Parameter Jenis Deskripsi
conversation_id integer ID unik percakapan

Isi Permintaan

Kolom Jenis Dibutuhkan
status integer YEs
php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://www.ovowp.penastudio.id/extern-api/inbox/conversation-details/2',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_POSTFIELDS => array('status' => '1'),
  CURLOPT_HTTPHEADER => array(
    'client-id: YOUR-CLIENT-ID',
    'client-secret: YOUR-CLIENT-SECRET',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Parameter URL

Parameter Jenis Deskripsi
conversation_id integer ID unik percakapan
php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://www.ovowp.penastudio.id/extern-api/inbox/send-message',
  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 => array('mobile_code' => '880','mobile' => xxxxxxxxx','message' => 'Hello world'),
  CURLOPT_HTTPHEADER => array(
    'client-id: YOUR-CLIENT-ID',
    'client-secret: YOUR-CLIENT-SECRET',
  ),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;

Isi Permintaan

Kolom Jenis Dibutuhkan Deskripsi
mobile_code string yes Kode negara ponsel. Harus kode negara numerik yang valid tanpa tanda plus (+).
mobile string yes Nomor ponsel yang valid yang terkait dengan kode negara yang diberikan.
from_number string conditional Diperlukan nomor telepon WhatsApp Business yang valid yang terdaftar di akun Anda dan di dasbor Meta. Jika tidak ada ID yang diberikan, pesan akan dikirim menggunakan akun WhatsApp default Anda.
message string Conditional Isi pesan teks. Diperlukan jika tidak ada media, lokasi, atau data interaktif yang disediakan
image file No File gambar (jpg, jpeg, png – maks 5MB)
document file No File dokumen (pdf, doc, docx – maks 100MB)
video file No File video (mp4 – maks 16MB)
audio file No File audio – maks 16MB
latitude decimal Conditional Lintang untuk pesan lokasi
longitude decimal Conditional Bujur untuk pesan lokasi
cta_url_id integer No ID URL CTA untuk pesan tombol interaktif
interactive_list_id integer No ID daftar interaktif

Catatan

Setidaknya satu jenis pesan harus disediakan.

Pesan interaktif memerlukan paket aktif.

Kontak yang diblokir tidak dapat mengirim atau menerima pesan.

php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://www.ovowp.penastudio.id/extern-api/inbox/send-template-message',
  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 => array('mobile_code' => '880','mobile' => 'xxxxxx','testmplate_id' => 'your template id'),
  CURLOPT_HTTPHEADER => array(
    'client-id: YOUR-CLIENT-ID',
    'client-secret: YOUR-CLIENT-SECRET',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Isi Permintaan

Kolom Jenis Dibutuhkan Deskripsi
mobile_code string yes Kode negara ponsel. Harus kode negara numerik yang valid tanpa tanda plus (+).
mobile string yes Nomor ponsel yang valid yang terkait dengan kode negara yang diberikan.
from_number string conditional Diperlukan nomor telepon WhatsApp Business yang valid yang terdaftar di akun Anda dan di dasbor Meta. Jika tidak ada ID yang diberikan, pesan akan dikirim menggunakan akun WhatsApp default Anda.
template_id integer Yes ID template WhatsApp yang disetujui

Catatan

Hanya template WhatsApp yang disetujui yang dapat dikirim.

Pesan template biasanya digunakan untuk percakapan yang dimulai oleh bisnis.

Kontak yang diblokir tidak dapat menerima pesan template.

Akun WhatsApp harus terhubung sebelum mengirim pesan.

php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://www.ovowp.penastudio.id/extern-api/inbox/template-list',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'client-id: YOUR-CLIENT-ID',
    'client-secret: YOUR-CLIENT-SECRET',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;