InboboDocsMenu

Guides

Migrating from Niaje

The Transport API keeps Niaje's send contract and callback format, so most services only change configuration.

What changes

NiajeTransport API
NIAJE_API_URL + /v1/messageshttps://inbobo.im/transport/api/v1 + /messages
NIAJE_CONSUMER_TOKENThe consumer token (tpt_...)
NIAJE_CHANNEL_ID (nch_...)A channel id such as ch_12, from GET /channels
to.wa_id, message, purpose, consent_reference, attributionUnchanged
Idempotency-Key and X-Request-Id headersUnchanged
422 WINDOW_CLOSED, then fall back to a templateUnchanged
X-Niaje-Signature: t=..,v1=.. on callbacksSame header and algorithm. Use the new signing secret.
whatsapp.message.received and whatsapp.message.statusSame event types
Message ids njmsg_...msg_...
Event ids njevt_...evt_...

Migration steps

  1. Ask an admin to create a consumer for your service and bind your WhatsApp channel.
  2. Make sure your templates are approved on the Inbobo channel in the same names and languages, and confirm them with GET /templates.
  3. Switch the base URL, token and channel id. Keep the request body as it is.
  4. Register your callback URL and swap in the new signing secret. Because X-Niaje-Signature is still sent, your verifier needs no code change.
  5. Send a test message to your own number and watch the status callbacks arrive.
  6. Roll out behind a per-service switch so you can go back to Niaje quickly if needed.

Differences to handle

  • Ids use new prefixes. Treat them as opaque strings and do not validate their format.
  • The inbound event is flatter: sender, message and conversation_id sit at the top level and there is no provider block.
  • Media upload and download (/v1/media) is not available yet. Attachments are not part of the send contract.
  • SMS and email use the same endpoint and callbacks, so a service can drop other senders and use one client.