template_create_draft
Creates a WhatsApp template draft inside Spur.
Required fields
- name
- channelId
- category
- format
- language
- components
Optional fields
- subCategory
Behavior notes
- category: MARKETING | UTILITY | AUTHENTICATION
- format: SINGLE | CAROUSEL
- Creates draft only and does not submit to Meta
- Template name should be lowercase with underscores for reliable Meta acceptance
- When BODY has variables ({{1}}, {{2}}), include example.body_text values to avoid review failures
- BUTTON text must exactly match what you intend to submit. Meta is strict about button text mismatches
Example request
{
"jsonrpc": "2.0",
"id": 11,
"method": "tools/call",
"params": {
"name": "template_create_draft",
"arguments": {
"name": "order_update_template",
"channelId": 101,
"category": "UTILITY",
"format": "SINGLE",
"language": "en",
"components": {
"body": "Your order update text"
}
}
}
}Example success structuredContent
{
"ok": true,
"draftTemplateId": 873,
"templateSummary": {
"name": "order_update_template",
"channelId": 101,
"category": "UTILITY",
"language": "en",
"format": "SINGLE"
}
}