Skip to main content
POST
/
api
/
v1
/
whatsapp_templates
Create a draft WhatsApp template
curl --request POST \
  --url https://api.izap.ai/api/v1/whatsapp_templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'business-id: <business-id>' \
  --data '
{
  "display_name": "<string>",
  "language": "<string>",
  "body_text": "<string>",
  "category": "<string>",
  "header_text": "<string>",
  "footer_text": "<string>",
  "twilio_content_sid": "<string>"
}
'
{
  "id": "t1a2b3c4-1234-4a5b-9c8d-abcdef123456",
  "business_id": "6a1f2e2e-1c34-4e2a-9c3e-1234567890ab",
  "display_name": "order_confirmation",
  "language": "pt_BR",
  "status": "DRAFT",
  "body_text": "Seu pedido {{1}} foi confirmado!"
}

Authorizations

Authorization
string
header
required

JWT access token obtained from POST /api/v1/auth/jwt/login, the OAuth token endpoint, or a business-scoped API token. Some Business/Chat/Template/Scheduling endpoints alternatively accept HTTP Basic credentials scoped to the business slug.

Headers

business-id
string<uuid>
required

Body

application/json
display_name
string
required
Maximum string length: 512
language
string
required
Maximum string length: 10
body_text
string
required
Required string length: 1 - 1024
category
string | null
header_text
string | null
Maximum string length: 60
Maximum string length: 60
twilio_content_sid
string | null
Maximum string length: 64

Response

Draft template created.

id
string<uuid>
business_id
string<uuid>
display_name
string
language
string
category
string | null
status
enum<string>
Available options:
DRAFT,
PENDING,
APPROVED,
REJECTED
body_text
string
created
string<date-time>
modified
string<date-time>