API reference

Three documents, generated from the registered routes and request types. Choose a source in the reference below; the URL, auth and envelope differ per contract.

First request: list SMS senders
curl 'https://api.bonga.africa/api/v2/senders?channel=sms' \
  -H "Authorization: Bearer $BONGA_API_KEY"

Conventions

  • Base URL https://api.bonga.africa; HTTPS only.
  • Authorization: Bearer <key>; agent keys only on /api/v1/agent/* and /api/mcp.
  • Success envelope { success, message, data }; branch on data.error.code.
  • 202 means accepted, not delivered. Track the message for delivery evidence.
  • Use Idempotency-Key on sends; reuse it only with the same payload.
  • Scopes are exact; no wildcard or prefix grants.

Looking for a walkthrough instead? Browse the guides.

Loading the interactive API reference…