API reference
List templates
List the approved WhatsApp templates you can send on a channel.
GET
https://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
curl "https://inbobo.im/transport/api/v1/templates?channel_id=ch_12" \
-H "Authorization: Bearer $INBOBO_TOKEN"{
"templates": [
{
"name": "order_shipped",
"language": "en_US",
"category": "UTILITY",
"status": "APPROVED",
"components": [
{ "type": "BODY", "text": "Hi {{1}}, your order {{2}} has shipped." }
]
}
]
}Fields
| Field | Type | Description |
|---|---|---|
name | string | Use as template.name. |
language | string | Use as template.language, exactly as shown. |
category | string | The WhatsApp category, such as UTILITY or MARKETING. |
components | array | The template parts. Variables like {{1}} are filled by template.parameters. |