Documentation
Sign inGet started

Get a message template

GET
/v1/whatsapp/templates/{template_id}
curl -X GET "https://us1.platform.bird.com/v1/whatsapp/templates/{template_id}" \
  -H "Authorization: Bearer $TOKEN"
Returns a single WhatsApp message template by its id.
Parameter
template_id
string
Template ID.
Antwort-Payload
id
object
erforderlich
Stable Bird identifier for the template.
name
object
erforderlich
The template's stable handle. Pass it as the template reference when sending.
description
nullable string
Optional description of the template's purpose. Null when unset.
scope
string
erforderlich
Whether the template is a built-in Bird template (system) or one your workspace authored (workspace).
Possible values: system, workspace
language
object
erforderlich
category
object
erforderlich
Content classification applied to messages sent from this template.
status
object
erforderlich
The template's review and health status.
components
array of object
erforderlich
The content blocks that make up the template, in display order.
Untergeordnete Attribute anzeigen
components.type
string
erforderlich
The content block's type within the template.
Possible values (may grow over time): header, body, footer, buttons
components.text
string
The block's text content, with any variable placeholders shown inline. Present when the block carries text.
components.example_parameters
array of object
Example values for this block's variables, in placeholder order (one per {{n}}). Use them to see what a filled message looks like. Present when the block has variables.
Untergeordnete Attribute anzeigen
components.example_parameters.type
object
erforderlich
The kind of value this parameter accepts.
components.example_parameters.text
string
An example value for a text parameter. Present when type is text.
components.example_parameters.name
string
The named placeholder this example fills, for templates that use named parameters. Absent for system templates, which use positional parameters.
components.buttons
array of object
The buttons attached to this block. Present when the block carries buttons.
Untergeordnete Attribute anzeigen
components.buttons.type
string
erforderlich
The button's behavior type.
Possible values (may grow over time): url, otp
components.buttons.otp_type
string
How the recipient receives the one-time passcode. Present on authentication-template OTP buttons.
Possible values (may grow over time): copy_code
components.buttons.text
string
erforderlich
The button's label text.
components.buttons.url
string
The URL the button opens, with any variable placeholder shown inline. Present on link buttons.
components.buttons.example_parameters
array of object
Example values for this button's variables, in placeholder order. Present when the button URL has variables.
Untergeordnete Attribute anzeigen
components.buttons.example_parameters.type
object
erforderlich
The kind of value this parameter accepts.
components.buttons.example_parameters.text
string
An example value for a text parameter. Present when type is text.
components.buttons.example_parameters.name
string
The named placeholder this example fills, for templates that use named parameters. Absent for system templates, which use positional parameters.