Introduction
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.
https://www.ovowp.penastudio.id/external-api
Authentication
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.
Response Format
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
{
"status": "success",
"remark": "contact_list",
"message":[
"Contact list fetched successfully"
],
"data": {
...you get all data here
}
}
Contoh Respon Error
{
"remark": "Unauthorized",
"status": "error",
"message": [
"The client secret is required"
]
}
{
"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."
]
}
$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;
Get Contact List
This endpoint allows you to retrieve a complete list of contacts associated with your OvoWpp account.
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 | - |
$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;
Buat Kontak Baru
This endpoint allows you to add a new contact to your OvoWpp account. Provide the necessary contact details, and upon successful request, the API returns the created contact’s information in JSON format for easy integration.
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 | - |
$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;
Perbarui Kontak
Endpoint ini memungkinkan Anda memperbarui kontak yang sudah ada. Anda hanya perlu mengirimkan kolom yang ingin diubah. Kolom yang tidak disertakan dalam permintaan akan tetap tidak berubah.
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 | - |
$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;
Hapus Kontak
Endpoint ini memungkinkan Anda menghapus kontak dengan ID uniknya. Penghapusan mungkin dibatasi jika kontak memiliki pesan terkait atau diblokir.
$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;
Daftar Percakapan
Ambil daftar percakapan yang dipaginasi untuk pengguna yang terautentikasi, termasuk info kontak dan status percakapan.
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 |
$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;
Ubah Status Percakapan
Perbarui status percakapan seperti pending, selesai, atau penting. Di sini Selesai = 1, Pending = 2, Penting = 3, Belum Dibaca = 4
Parameter URL
| Parameter | Jenis | Deskripsi |
|---|---|---|
conversation_id |
integer | ID unik percakapan |
Isi Permintaan
| Kolom | Jenis | Dibutuhkan |
|---|---|---|
status |
integer | YEs |
$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;
Detail Percakapan
Mengambil detail lengkap percakapan termasuk informasi kontak, catatan, tag, dan asosiasi daftar.
Parameter URL
| Parameter | Jenis | Deskripsi |
|---|---|---|
conversation_id |
integer | ID unik percakapan |
$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;
Kirim Pesan
Kirim pesan WhatsApp ke nomor ponsel. Endpoint ini mendukung teks, media, lokasi, daftar interaktif, URL CTA, dan pesan e-commerce. Jika tidak ditemukan kontak atau percakapan yang ada untuk nomor ponsel yang diberikan, kontak dan percakapan baru akan dibuat secara otomatis.
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.
$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;
Kirim Pesan Template
Kirim pesan template WhatsApp yang telah disetujui ke percakapan yang sudah ada. Pesan template biasanya digunakan untuk notifikasi, peringatan, dan komunikasi yang dimulai oleh bisnis.
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.
$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;
Dapatkan Daftar Template
Endpoint ini memungkinkan Anda untuk mengambil semua template WhatsApp yang terkait dengan akun Anda.