Messaging API (WhatsApp / RCS) — Overview

Send rich conversational messages over WhatsApp and RCS.

Base URL

https://api.kongapj.com

Authentication

OpenID Connect bearer token. Register an application against this API, then obtain a token with your application's credentials.

TOKEN=$(curl -s https://v707gttxghno2ia9.au.identity.konghq.com/auth/oauth/token \
  -d grant_type=client_credentials -d client_id=YOUR_CLIENT_ID \
  -d client_secret=YOUR_CLIENT_SECRET -d "scope=openid" | jq -r .access_token)

Send a message

curl -X POST https://api.kongapj.com/messaging/v1/messages \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"to":"+61400000000","channel":"whatsapp","type":"text","content":"Your order has shipped"}'
{ "id": "rmsg_01HZY9T5S8U3V6X0D4F2H7K1M9", "channel": "whatsapp", "status": "sent" }

Supported channels: whatsapp, rcs. Track status with GET /messaging/v1/messages/{id}.