InboboDocsMenu

Get started

Quickstart

Go from nothing to a delivered WhatsApp message in four steps.

1. Get your credentials

Ask an Inbobo super admin to create a consumer for your application (Super Admin → Transport API → New consumer). They choose the account, a name, an optional callback URL, and the channels you may use. You are given:

  • an access token starting with tpt_, shown once
  • a signing secret for verifying callbacks
  • one or more channel ids such as ch_12
Terminal
export INBOBO_TOKEN=tpt_...
export INBOBO_CHANNEL=ch_12

2. Check your channel

Confirm the token works and see which channels it can use.

Terminal
curl https://inbobo.im/transport/api/v1/channels \
  -H "Authorization: Bearer $INBOBO_TOKEN"
200 OK
{
  "channels": [
    { "channel_id": "ch_12", "kind": "whatsapp", "name": "Support WhatsApp", "address": "+255766575860" }
  ]
}

3. Send a message

WhatsApp conversations start with an approved template. List the ones available with GET /templates?channel_id=ch_12, then send one. Replace the template name and language with one of yours.

curl -X POST https://inbobo.im/transport/api/v1/messages \
  -H "Authorization: Bearer $INBOBO_TOKEN" \
  -H "Idempotency-Key: order-1042-shipped-v1" \
  -H "Content-Type: application/json" \
  -d '{
    "channel_id": "ch_12",
    "to": { "wa_id": "255712345678" },
    "message": {
      "type": "template",
      "template": {
        "name": "order_shipped",
        "language": "en_US",
        "parameters": [{ "name": "1", "value": "Amina" }, { "name": "2", "value": "1042" }]
      }
    },
    "purpose": "utility",
    "consent_reference": "checkout-1042"
  }'
202 Accepted
{
  "message_id": "msg_981",
  "status": "accepted",
  "channel_id": "ch_12",
  "provider_message_id": null,
  "request_id": "req_3f1c2a64-7d0e-4b0b-9e55-1f6a0c0a9b21"
}

4. Track delivery

Ask for the current status at any time using the message_id you were given.

Terminal
curl https://inbobo.im/transport/api/v1/messages/msg_981 \
  -H "Authorization: Bearer $INBOBO_TOKEN"

To be told as it happens, and to receive customer replies, set up a callback URL.

Next steps