Skip to main content
PUT
/
{business_account_id}
/
message_templates
Update message template
curl --request PUT \
  --url https://api.kapso.ai/meta/whatsapp/v24.0/{business_account_id}/message_templates \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "updated_template",
  "components": [
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "Updated Header"
    },
    {
      "type": "BODY",
      "text": "Updated body text"
    }
  ],
  "language": "en_US",
  "category": "MARKETING"
}
'
{
  "success": true
}

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

Query Parameters

hsm_id
string
required

Template ID to update (the template's unique identifier)

Body

application/json
name
string

Template name (lowercase, underscore-separated)

Example:

"order_confirmation"

language
string

Language code (e.g., en, en_US)

Example:

"en_US"

category
enum<string>

Template category

Available options:
AUTHENTICATION,
MARKETING,
UTILITY
Example:

"UTILITY"

components
object[]

Template components (same structure as create endpoint)

Response

Template updated successfully

success
boolean
Example:

true