InboboDocsMenu

API reference

List templates

List the approved WhatsApp templates you can send on a channel.

GEThttps://inbobo.im/transport/api/v1/templates?channel_id={channel_id}

Only approved templates are returned. Sending a template that is not in this list fails with 400 VALIDATION_ERROR. The channel must be a WhatsApp channel; any other channel returns 403 CHANNEL_NOT_FOUND.

Example

Terminal
curl "https://inbobo.im/transport/api/v1/templates?channel_id=ch_12" \
  -H "Authorization: Bearer $INBOBO_TOKEN"
200 OK
{
  "templates": [
    {
      "name": "order_shipped",
      "language": "en_US",
      "category": "UTILITY",
      "status": "APPROVED",
      "components": [
        { "type": "BODY", "text": "Hi {{1}}, your order {{2}} has shipped." }
      ]
    }
  ]
}

Fields

FieldTypeDescription
namestringUse as template.name.
languagestringUse as template.language, exactly as shown.
categorystringThe WhatsApp category, such as UTILITY or MARKETING.
componentsarrayThe template parts. Variables like {{1}} are filled by template.parameters.