ChatofyDevelopers
REST APIMCP Server (AI)New
API KeysWebhooks
Chatofy API
/
Getting Started
API Resources
API v1.0 Live
Developer APITemplatesCreate Template

Create Template

Submits a new WhatsApp message template to Meta Graph API for review and approval.

POST/api/v1/templates

Request Body Schema

application/json
namestringrequired

Template name in lowercase alphanumeric and underscore

Example:seasonal_sale_v1
categorystringrequired

MARKETING, UTILITY, or AUTHENTICATION

Example:MARKETING
languagestringrequired

Language code, e.g. en_US or hi

Example:en_US
body_textstringoptional

Text body with {{1}} placeholders

Example:Get 20% off on your next order with code {{1}}!
header_textstringoptional

Optional text header

buttonsarrayoptional

Optional quick reply button titles

Response Payload

200 OKapplication/json
statusstring

"1" = Success, "0" = Failure.

messageobject

The response data payload.

Code Snippets & Examples

1curl -X POST "https://app.chatofy.in/api/v1/templates" \
2 -H "Authorization: Bearer YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{"name":"seasonal_sale_v1","category":"MARKETING","language":"en_US","body_text":"Get 20% off on your next order with code {{1}}!"}'

Was this endpoint guide helpful?

Previous Endpoint
List Templates
Next Endpoint
List Campaigns
© 2026 Chatofy Cloud Platform. All rights reserved.
1curl -X POST "https://app.chatofy.in/api/v1/templates" \
2 -H "Authorization: Bearer YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{"name":"seasonal_sale_v1","category":"MARKETING","language":"en_US","body_text":"Get 20% off on your next order with code {{1}}!"}'
200 OKapplication/json
1{
2 "success": true,
3 "data": {
4 "template": {
5 "id": "tmpl-uuid-001",
6 "meta_template_id": "1699161804623999",
7 "name": "seasonal_sale_v1",
8 "category": "MARKETING",
9 "language": "en_US",
10 "status": "PENDING",
11 "created_at": "2026-10-26T10:00:00+05:30",
12 "updated_at": "2026-10-26T10:00:00+05:30"
13 }
14 },
15 "message": "Template created and submitted to Meta for review"
16}