Skip to main content
POST
/
api
/
templates
Create template
curl --request POST \
  --url https://api.agentixx.io/api/templates \
  --header 'Content-Type: application/json' \
  --header 'x-tenant-id: <api-key>' \
  --cookie better-auth.session_token= \
  --data '
{
  "name": "order_update",
  "category": "UTILITY",
  "language": "en",
  "components": [
    {
      "type": "BODY",
      "text": "Your order {{1}} is ready."
    }
  ]
}
'
{}

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by Better Auth on sign-in.

x-tenant-id
string
header
required

Tenant/workspace UUID. Required on all /api/* endpoints.

Body

application/json

Create a WhatsApp message template (submits to Meta for approval)

name
string
required
Minimum string length: 1
category
string
required
Minimum string length: 1
language
string
required
Minimum string length: 1
components
any[]
required

Response

Template created (pending approval)

{key}
any