# External API

## External API Integrations

Halaman ini berisi dokumentasi lengkap semua **External API** yang bisa dihubungkan dengan dashboard Innovasia (Pilovasia Panel). Setiap integrasi punya sub-halaman dengan panduan konfigurasi, contoh payload, screenshot, dan troubleshooting.

> Navigasi lengkap tersedia di **sidebar kiri** — pilih sub-halaman sesuai integrasi yang ingin Anda setup.

### Daftar Integrasi

| # | Integrasi                     | Arah               | Auth                     | Halaman Dashboard             |
| - | ----------------------------- | ------------------ | ------------------------ | ----------------------------- |
| 1 | **Partner API**               | Inbound + Outbound | API Key + Scope          | Master Data → External API    |
| 2 | **Public API (Legacy)**       | Inbound            | API Key                  | Master Data → External API    |
| 3 | **Payment Gateway**           | Outbound + Webhook | Per-provider credentials | Master Data → Payment         |
| 4 | **WhatsApp / Meta Cloud API** | Outbound + Webhook | Permanent Token          | Master Data → WhatsApp        |
| 5 | **AI Agent**                  | OAuth PKCE         | OAuth Token + API Key    | Master Data → AI Agent        |
| 6 | **Zains API (Wakaf/Ziswaf)**  | Outbound           | API Key                  | (otomatis saat settlement)    |
| 7 | **PDAM (RajaBiller)**         | Outbound           | UID + PIN                | Modul PDAM                    |
| 8 | **SIMBA (BAZNAS)**            | Outbound           | Org Code + API Key       | Master Data → Payment → Simba |

### Arsitektur Singkat

```
┌────────────────────┐
│  Website Partner   │──┐
└────────────────────┘  │
                        │ Partner API / Public API (x-api-key)
┌────────────────────┐  │
│   Zapier / N8N     │──┼──▶  ┌─────────────────────────────┐
└────────────────────┘  │     │  Pilovasia Panel (Laravel)  │──▶ Meta WhatsApp Cloud API
                        │     │                             │──▶ Payment Gateway (Winpay/Midtrans/Faspay)
┌────────────────────┐  │     │                             │──▶ Zains (Ziswaf)
│   External CRM     │──┘     │                             │──▶ SIMBA (BAZNAS)
└────────────────────┘        │                             │──▶ RajaBiller (PDAM)
                              └─────────────────────────────┘
                                     ▲
                                     │ OAuth PKCE
                              ┌──────┴──────┐
                              │  AI Agent   │
                              └─────────────┘
```

### Arah Integrasi

* **Inbound** — sistem eksternal memanggil Innovasia (pakai API Key).
* **Outbound** — Innovasia memanggil sistem eksternal (konfigurasi credentials).
* **Webhook** — notifikasi callback dari pihak ketiga.
* **OAuth PKCE** — flow authorization 2-way dengan PKCE security.

### Kontak Support

* **WhatsApp Support:** 0823-1548-6886
* **Email:** <innovasiaofficial@gmail.com>

***

*Versi PDF tiap dokumen tersedia di dashboard: menu **Master Data → External API → Download Dokumentasi**.*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.innovasia.id/dokumentasi/external-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
