List templates
GET/v1/templates
Lists the templates registered for this key’s account, newest first, with the parameter schema each one takes.
This is the read a 422 outside_customer_window points you at: outside a
customer’s service window only an approved template part sends, and this
is where the sendable ones and their variables are. It is also the read to
hand an agent — parameters is a JSON Schema shaped to be used verbatim as
a tool definition.
Templates in every status are listed, including ones that are not sendable,
so a pause or a rejection is visible rather than looking like a template
that vanished. Filter on status == "approved" for the sendable set.
List templates
curl https://whatsapp.messages.api.linqapp.com/v1/templates \
-H "Authorization: Bearer $LINQ_WHATSAPP_API_KEY"{
"data": [
{
"category": "category",
"created_at": "2019-12-27T18:11:19.117Z",
"language": "language",
"name": "name",
"parameters": {},
"quality": "quality",
"rejected_reason": "rejected_reason",
"send_schema": {},
"status": "status",
"updated_at": "2019-12-27T18:11:19.117Z",
"content": {
"body": "body",
"buttons": [
{
"type": "type",
"phone_number": "phone_number",
"text": "text",
"url": "url"
}
],
"carousel": [
{
"body": "body",
"buttons": [
{
"type": "type",
"phone_number": "phone_number",
"text": "text",
"url": "url"
}
],
"header": {
"kind": "kind",
"text": "text"
}
}
],
"footer": "footer",
"header": {
"kind": "kind",
"text": "text"
}
},
"retry_allowed": true
}
],
"has_more": true,
"next_cursor": "next_cursor"
}Returns Examples
{
"data": [
{
"category": "category",
"created_at": "2019-12-27T18:11:19.117Z",
"language": "language",
"name": "name",
"parameters": {},
"quality": "quality",
"rejected_reason": "rejected_reason",
"send_schema": {},
"status": "status",
"updated_at": "2019-12-27T18:11:19.117Z",
"content": {
"body": "body",
"buttons": [
{
"type": "type",
"phone_number": "phone_number",
"text": "text",
"url": "url"
}
],
"carousel": [
{
"body": "body",
"buttons": [
{
"type": "type",
"phone_number": "phone_number",
"text": "text",
"url": "url"
}
],
"header": {
"kind": "kind",
"text": "text"
}
}
],
"footer": "footer",
"header": {
"kind": "kind",
"text": "text"
}
},
"retry_allowed": true
}
],
"has_more": true,
"next_cursor": "next_cursor"
}