Guides
Migrating from Niaje
The Transport API keeps Niaje's send contract and callback format, so most services only change configuration.
What changes
| Niaje | Transport API |
|---|---|
NIAJE_API_URL + /v1/messages | https://inbobo.im/transport/api/v1 + /messages |
NIAJE_CONSUMER_TOKEN | The consumer token (tpt_...) |
NIAJE_CHANNEL_ID (nch_...) | A channel id such as ch_12, from GET /channels |
to.wa_id, message, purpose, consent_reference, attribution | Unchanged |
Idempotency-Key and X-Request-Id headers | Unchanged |
422 WINDOW_CLOSED, then fall back to a template | Unchanged |
X-Niaje-Signature: t=..,v1=.. on callbacks | Same header and algorithm. Use the new signing secret. |
whatsapp.message.received and whatsapp.message.status | Same event types |
Message ids njmsg_... | msg_... |
Event ids njevt_... | evt_... |
Migration steps
- Ask an admin to create a consumer for your service and bind your WhatsApp channel.
- Make sure your templates are approved on the Inbobo channel in the same names and languages, and confirm them with GET /templates.
- Switch the base URL, token and channel id. Keep the request body as it is.
- Register your callback URL and swap in the new signing secret. Because
X-Niaje-Signatureis still sent, your verifier needs no code change. - Send a test message to your own number and watch the status callbacks arrive.
- 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,messageandconversation_idsit at the top level and there is noproviderblock. - 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.