Peach
  1. whatsapp_templates
Peach
  • messaging
    • Send a pre-approved template message
      POST
    • Poll template message status
      GET
    • Launch a broadcast
      POST
    • Poll broadcast status
      GET
    • Poll template messages status
      GET
    • Connect to AI Agent
      POST
  • whatsapp_templates
    • List all templates
      GET
    • Create a template
      POST
    • Update template
      PATCH
    • Archive template
      PATCH
    • Pause template
      PATCH
    • Submit template
      PATCH
  • conversations
    • Agent Assignment
      POST
    • Close Conversation
      POST
  • contacts
    • Create a contact on Peach
      POST
  • orders
    • Create an order
      POST
    • Find order by ID
      GET
    • Create a refund for an order
      POST
  • medias
    • List available medias
      GET
    • Add a media
      POST
    • Remove a media
      DELETE
  • webhooks
    • Order status webhooks
    • Flow execution status webhooks
    • Message delivery status webhooks
    • AI flow execution status webhooks
  1. whatsapp_templates

List all templates

GET
/api/v1/whats_app_templates/

Request

Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/whats_app_templates/' \
--header 'Authorization;'

Responses

🟢200Success
application/json
Body
array of:
id
string 
required
template_name
string 
required
language
string 
required
category
string 
required
status
string 
required
whats_app_business_account_id
integer 
required
components
array [object {5}] 
required
id
string 
required
component_type
string 
required
data_type
string 
required
value
string 
required
index
integer 
required
Example
[
  {
    "id": "template_prefix_id_1",
    "template_name": "Welcome Message",
    "language": "en",
    "category": "MARKETING",
    "status": "approved",
    "whats_app_business_account_id": 123,
    "components": [
      {
        "id": "component_id_1",
        "component_type": "body",
        "data_type": "text",
        "value": "Hello {{subscriber.name | fallback: 'there' | example: 'John'}}, welcome to our service!",
        "index": 0
      }
    ]
  },
  {
    "id": "template_prefix_id_2",
    "template_name": "Order Confirmation",
    "language": "en",
    "category": "TRANSACTIONAL",
    "status": "approved",
    "whats_app_business_account_id": 123,
    "components": [
      {
        "id": "component_id_2",
        "component_type": "body",
        "data_type": "text",
        "value": "Your order #{{order.number | example: '12345'}} has been confirmed.",
        "index": 0
      }
    ]
  }
]
Modified at 2025-06-10 07:40:11
Previous
Connect to AI Agent
Next
Create a template
Built with