Use this page to understand the common request format for Wazapin Public API.

Base URL

https://api.wazapin.id

Common headers

  • X-Api-Key: <api_key> (recommended)
  • Content-Type: application/json
  • Accept: application/json

Example request

cURL
curl -X GET "https://api.wazapin.id/v1/messages" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Accept: application/json"
Bearer token is still supported for session-based auth, but all quick examples in this docs use X-Api-Key.

Example response

Response
{
  "data": [
    {
      "id": "msg_123",
      "status": "sent",
      "to": "6281234567890"
    }
  ],
  "meta": {
    "next_cursor": "cursor_abc"
  }
}

Versioning

  • API path uses version prefix: /v1/...
  • Breaking changes are released in a new major version.

Next steps