Skip to main content
GET
/
{business_account_id}
/
message_templates
/
{template_id}
Get message template by ID
curl --request GET \
  --url https://api.kapso.ai/meta/whatsapp/v24.0/{business_account_id}/message_templates/{template_id} \
  --header 'X-API-Key: <api-key>'
{
  "id": "1259544702043867",
  "name": "order_confirmation",
  "language": "en_US",
  "status": "APPROVED",
  "category": "UTILITY",
  "components": [
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "Order Update"
    },
    {
      "type": "BODY",
      "text": "Your order {{1}} has been confirmed and will arrive by {{2}}.",
      "example": {
        "body_text": [
          [
            "#12345",
            "Friday"
          ]
        ]
      }
    },
    {
      "type": "FOOTER",
      "text": "Thanks for shopping with us!"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Project API key for authentication. This is the recommended authentication method.

Get your API key from the Kapso dashboard under Project Settings > API Keys.

Path Parameters

business_account_id
string
required

WhatsApp Business Account ID

template_id
string
required

Template ID

Query Parameters

fields
string

Comma-separated list of fields to retrieve

Response

Successfully retrieved template

id
string

Template ID

Example:

"1259544702043867"

name
string
Example:

"order_confirmation"

language
string
Example:

"en_US"

status
enum<string>
Available options:
APPROVED,
PENDING,
REJECTED
Example:

"APPROVED"

category
enum<string>
Available options:
AUTHENTICATION,
MARKETING,
UTILITY
Example:

"UTILITY"

previous_category
string

Previous category if changed

Example:

"ACCOUNT_UPDATE"

components
object[]

Template components (header, body, footer, buttons)