---
updatedAt: 2026-10-30T08:57:56.000Z
agentTools:
  projectIndex: https://docs.wati.io/llms.txt
---

# Create a template

Retained legacy exception: Create a WhatsApp template; use V3 to read/send/schedule.

Create a template. POST /{tenantId}/api/v1/whatsApp/templates.

### Permissions

For API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `messagetemplate:write`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "WATI API",
    "version": "2.6",
    "description": "Documentation contract version 2.6. Use V3 for supported business operations, adopting its request, response, defaults and pagination. Retain V1/V2 only for the business exceptions listed in Introduction. API route versions are independent of this artifact version.\n\nSend Authorization: Bearer <your-token> with the workspace credential and regional API host. API route version does not select the authentication mechanism. Endpoint scopes, roles, account availability and channel access still apply; consult Authentication and each operation.\n\nChannel support is operation-specific. GET /api/ext/v3/channels lists additional connected channels and may exclude the default WhatsApp number; do not infer full channel coverage or permission to send from discovery alone.\n\nInspect HTTP status and business result separately. Some operations report business failure or partial recipient failure in HTTP 200. Authorization errors may have no JSON body. A 429 can indicate a rate or usage limit. For unknown write outcomes, reconcile state before retrying; do not assume idempotency.\n\nCreate webhook subscriptions through the documented V2 exception or the dashboard, then manage them through V3. Use supported event types for the workspace and distinguish request acceptance from final message delivery.",
    "contact": {
      "name": "WATI Support",
      "url": "https://docs.wati.io"
    }
  },
  "servers": [
    {
      "url": "https://live-mt-server.wati.io",
      "description": "WATI API host. Legacy v1 and v2 endpoints require tenantId in the path; v3 endpoints do not."
    }
  ],
  "tags": [
    {
      "name": "Templates",
      "description": "Manage and send WhatsApp message templates."
    }
  ],
  "paths": {
    "/{tenantId}/api/v1/whatsApp/templates": {
      "post": {
        "tags": [
          "Templates"
        ],
        "summary": "Create a template",
        "responses": {
          "200": {
            "description": "Create template success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "description": "Indicates whether the template creation request was successful."
                    },
                    "result": {
                      "type": "object",
                      "description": "Details of the created template.",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier of the created template."
                        },
                        "tenantId": {
                          "type": "string",
                          "description": "Tenant ID that owns this template."
                        },
                        "wabaContextId": {
                          "description": "Context ID of the associated WhatsApp Business Account, if available."
                        },
                        "clareTemplateId": {
                          "description": "Internal Clare template ID, null if not applicable."
                        },
                        "status": {
                          "type": "object",
                          "description": "Status metadata for this template in the provider system.",
                          "properties": {
                            "clareTemplateId": {
                              "description": "Clare template ID in status context, if any."
                            },
                            "waTemplateId": {
                              "description": "WhatsApp template ID assigned by Meta, null until approved."
                            },
                            "newStatus": {
                              "type": "integer",
                              "description": "Numeric status of the template (internal enum)."
                            },
                            "feedback": {
                              "type": "string",
                              "description": "Feedback message from template review, if any."
                            },
                            "submittedAt": {
                              "type": "string",
                              "description": "Timestamp when the template was submitted for review."
                            },
                            "currencyMigration": {
                              "type": "boolean",
                              "description": "Indicates whether this template has gone through currency migration."
                            }
                          }
                        },
                        "templateParamMapping": {
                          "description": "Mapping of template parameters, null if not specified."
                        },
                        "waTemplateId": {
                          "description": "WhatsApp template ID, null until assigned."
                        },
                        "elementName": {
                          "type": "string",
                          "description": "Internal name of the template (element name)."
                        },
                        "category": {
                          "type": "string",
                          "description": "Template category (e.g. MARKETING, UTILITY, AUTHENTICATION)."
                        },
                        "subCategory": {
                          "type": "string",
                          "description": "Template sub-category (e.g. STANDARD, CAROUSEL, CATALOG, CHECKOUT_BUTTON, ORDER_STATUS, LIMITED_TIME_OFFER)."
                        },
                        "catalogInfo": {
                          "description": "Catalog information if the template is linked to a product catalog, otherwise null."
                        },
                        "language": {
                          "type": "string",
                          "description": "Language code of the template (e.g. 'en_US')."
                        },
                        "customParams": {
                          "type": "array",
                          "description": "Array of custom parameter definitions used in the template.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "paramName": {
                                "type": "string",
                                "description": "Name of the parameter."
                              },
                              "paramValue": {
                                "type": "string",
                                "description": "Default value or example value of the parameter."
                              }
                            }
                          }
                        },
                        "hsm": {
                          "description": "Legacy HSM payload, usually null for new templates."
                        },
                        "hsmOriginal": {
                          "description": "Original HSM definition if applicable, usually null."
                        },
                        "localizableParams": {
                          "description": "Localizable parameter configuration, null if not used."
                        },
                        "lastModified": {
                          "type": "string",
                          "description": "Last modification date of the template."
                        },
                        "created": {
                          "type": "string",
                          "description": "Creation date of the template."
                        },
                        "lastSynchronized": {
                          "type": "string",
                          "description": "Last synchronization date of the template with upstream systems."
                        },
                        "type": {
                          "type": "integer",
                          "description": "Template type (internal numeric enum, 1 indicates template)."
                        },
                        "header": {
                          "type": "object",
                          "description": "Header configuration of the template.",
                          "properties": {
                            "type": {
                              "type": "integer",
                              "description": "Header type as numeric enum (0 for none)."
                            },
                            "headerTypeString": {
                              "type": "string",
                              "description": "Header type as string (e.g. 'none', 'text', 'image')."
                            },
                            "typeString": {
                              "type": "string",
                              "description": "Alias for header type string."
                            },
                            "text": {
                              "description": "Header text content, if applicable."
                            },
                            "link": {
                              "type": "string",
                              "description": "Header media link, if header is media type."
                            },
                            "mediaHeaderId": {
                              "type": "string",
                              "description": "Identifier of the header media, if any."
                            },
                            "mediaFromPC": {
                              "type": "string",
                              "description": "Path or flag indicating the media is uploaded from PC."
                            },
                            "headerOriginal": {
                              "description": "Original header content definition, if any."
                            },
                            "headerParamMapping": {
                              "description": "Mapping for header parameters, if any."
                            }
                          }
                        },
                        "body": {
                          "type": "string",
                          "description": "Template body text with parameter placeholders (e.g. {{name}})."
                        },
                        "bodyOriginal": {
                          "description": "Original body definition if different from the current body."
                        },
                        "footer": {
                          "type": "string",
                          "description": "Footer text shown at the bottom of the message."
                        },
                        "buttons": {
                          "type": "array",
                          "description": "List of buttons configured for the template.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "description": "Button type (e.g. 'url', 'copy_offer_code', 'quick_reply')."
                              },
                              "parameter": {
                                "type": "object",
                                "description": "Button configuration parameters.",
                                "properties": {
                                  "text": {
                                    "type": "string",
                                    "description": "Button display text."
                                  },
                                  "phoneNumber": {
                                    "type": "string",
                                    "description": "Phone number associated with the button, if any.",
                                    "nullable": true
                                  },
                                  "url": {
                                    "type": "string",
                                    "description": "URL associated with the button, if type is 'url'.",
                                    "nullable": true
                                  },
                                  "urlOriginal": {
                                    "description": "Original URL before mapping, if applicable."
                                  },
                                  "urlType": {
                                    "type": "string",
                                    "description": "URL type (e.g. 'static' or 'none')."
                                  },
                                  "buttonParamMapping": {
                                    "description": "Mapping of parameters used by the button, if any."
                                  },
                                  "copyOfferCode": {
                                    "description": "Offer code to be copied when button is pressed, if applicable."
                                  },
                                  "orderDetails": {
                                    "description": "Order details object, if the button is linked to an order."
                                  }
                                }
                              }
                            }
                          }
                        },
                        "carouselCards": {
                          "description": "Carousel cards configuration, null if not used."
                        },
                        "buttonsType": {
                          "type": "integer",
                          "description": "Numeric representation of the buttons configuration type."
                        },
                        "lastSubmitAttemptDate": {
                          "description": "Timestamp of the last attempt to submit this template for review, if any."
                        },
                        "submittedUserId": {
                          "description": "User ID of the person who submitted the template, if any."
                        },
                        "wabaCheckPendingStatusTimes": {
                          "type": "integer",
                          "description": "Number of times WABA status check is pending."
                        },
                        "lastWABACheckStatusDate": {
                          "description": "Timestamp of the last check of WABA template status."
                        },
                        "expiresIn": {
                          "type": "integer",
                          "description": "Lifetime of the template in seconds, 0 means no explicit expiry."
                        },
                        "includeExpiryTime": {
                          "type": "boolean",
                          "description": "Indicates whether an explicit expiry time is included."
                        },
                        "addSecurityRecommendation": {
                          "type": "boolean",
                          "description": "Indicates whether security recommendation text is added."
                        },
                        "isUrlBtnClickTrackingEnabled": {
                          "type": "boolean",
                          "description": "Whether URL button click tracking is enabled for this template."
                        },
                        "limitedTimeOffer": {
                          "description": "Limited time offer configuration, if present."
                        },
                        "quality": {
                          "type": "integer",
                          "description": "Quality score of the template (0 for default)."
                        },
                        "creationMethod": {
                          "type": "integer",
                          "description": "Indicates how the template was created (internal enum)."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "result": {
                    "id": "6915454a8d18d2ecd92c2254",
                    "tenantId": "100132",
                    "wabaContextId": null,
                    "clareTemplateId": null,
                    "status": {
                      "clareTemplateId": null,
                      "waTemplateId": null,
                      "newStatus": 0,
                      "feedback": "",
                      "submittedAt": "0001-01-01T00:00:00",
                      "currencyMigration": false
                    },
                    "templateParamMapping": null,
                    "waTemplateId": null,
                    "elementName": "mock_api_1",
                    "category": "MARKETING",
                    "subCategory": "STANDARD",
                    "catalogInfo": null,
                    "language": "en_US",
                    "customParams": [
                      {
                        "paramName": "name",
                        "paramValue": "aaa"
                      }
                    ],
                    "hsm": null,
                    "hsmOriginal": null,
                    "localizableParams": null,
                    "lastModified": "11-13-2025",
                    "created": "11-13-2025",
                    "lastSynchronized": "11-13-2025",
                    "type": 1,
                    "header": {
                      "type": 0,
                      "headerTypeString": "none",
                      "typeString": "none",
                      "text": null,
                      "link": "",
                      "mediaHeaderId": "",
                      "mediaFromPC": "",
                      "headerOriginal": null,
                      "headerParamMapping": null
                    },
                    "body": "Make your messages personal using variables like {{name}} and get more replies!",
                    "bodyOriginal": null,
                    "footer": "Powered by wati.io",
                    "buttons": [
                      {
                        "type": "url",
                        "parameter": {
                          "text": "Visit us",
                          "phoneNumber": "",
                          "url": "https://www.wati.io",
                          "urlOriginal": null,
                          "urlType": "static",
                          "buttonParamMapping": null,
                          "copyOfferCode": null,
                          "orderDetails": null
                        }
                      },
                      {
                        "type": "copy_offer_code",
                        "parameter": {
                          "text": "Copy offer code",
                          "phoneNumber": "",
                          "url": "",
                          "urlOriginal": null,
                          "urlType": "none",
                          "buttonParamMapping": null,
                          "copyOfferCode": "123",
                          "orderDetails": null
                        }
                      },
                      {
                        "type": "quick_reply",
                        "parameter": {
                          "text": "aaa",
                          "phoneNumber": null,
                          "url": null,
                          "urlOriginal": null,
                          "urlType": "none",
                          "buttonParamMapping": null,
                          "copyOfferCode": null,
                          "orderDetails": null
                        }
                      }
                    ],
                    "carouselCards": null,
                    "buttonsType": 4,
                    "lastSubmitAttemptDate": null,
                    "submittedUserId": null,
                    "wabaCheckPendingStatusTimes": 0,
                    "lastWABACheckStatusDate": null,
                    "expiresIn": 0,
                    "includeExpiryTime": false,
                    "addSecurityRecommendation": false,
                    "isUrlBtnClickTrackingEnabled": false,
                    "limitedTimeOffer": null,
                    "quality": 0,
                    "creationMethod": 0
                  }
                }
              }
            }
          },
          "403": {
            "description": "Authorization failed. Check the Permissions section for the credential-specific scope rules, and check roles and workspace access. The response may have no body; do not require a JSON error envelope."
          }
        },
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "description": "Your WATI workspace (tenant) ID. This required path segment identifies the WATI account for legacy v1 and v2 API requests.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "Template type, for example 'template'."
                  },
                  "category": {
                    "type": "string",
                    "description": "High-level category of the template, e.g. MARKETING, UTILITY, AUTHENTICATION."
                  },
                  "subCategory": {
                    "type": "string",
                    "description": "Sub-category of the template, e.g. STANDARD, CAROUSEL, CATALOG, CHECKOUT_BUTTON, ORDER_STATUS, LIMITED_TIME_OFFER."
                  },
                  "buttonsType": {
                    "type": "string",
                    "description": "Type of buttons configuration, e.g. NONE, quick_reply, call_to_action, quick_reply_and_call_to_action, order_details, checkout."
                  },
                  "buttons": {
                    "type": "array",
                    "description": "List of buttons used in the template.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "Button type, e.g. quick_reply ,url ,call , copy_code , one_tap , launch_catalog ,copy_offer_code ,order_details ,voice_call , call_permission_request."
                        },
                        "parameter": {
                          "type": "object",
                          "description": "Configuration of the button.",
                          "properties": {
                            "text": {
                              "type": "string",
                              "description": "Button text shown to the user."
                            },
                            "phoneNumber": {
                              "type": "string",
                              "description": "Phone number used for call-type buttons, if applicable."
                            },
                            "url": {
                              "type": "string",
                              "description": "URL used for URL-type buttons."
                            },
                            "urlType": {
                              "type": "string",
                              "description": "URL type, e.g. 'static' or 'none'."
                            },
                            "copyOfferCode": {
                              "type": "string",
                              "description": "Offer code to be copied for copy_offer_code button type."
                            }
                          }
                        }
                      }
                    }
                  },
                  "footer": {
                    "type": "string",
                    "description": "Footer text of the template."
                  },
                  "elementName": {
                    "type": "string",
                    "description": "Internal name of the template."
                  },
                  "language": {
                    "type": "string",
                    "description": "Language code of the template, e.g. en, es, fr."
                  },
                  "header": {
                    "type": "object",
                    "description": "Header configuration of the template.",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "Header type, e.g. 'none'."
                      },
                      "link": {
                        "type": "string",
                        "description": "Link used in header for media templates."
                      },
                      "mediaFromPC": {
                        "type": "string",
                        "description": "Local media reference if media is uploaded from PC."
                      },
                      "mediaHeaderId": {
                        "type": "string",
                        "description": "Identifier of the media header."
                      }
                    }
                  },
                  "body": {
                    "type": "string",
                    "description": "Body text of the template, can include variables like {{name}}."
                  },
                  "customParams": {
                    "type": "array",
                    "description": "List of custom parameters to be used in the template.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "paramName": {
                          "type": "string",
                          "description": "Name of the template parameter."
                        },
                        "paramValue": {
                          "type": "string",
                          "description": "Default value of the template parameter."
                        }
                      }
                    }
                  },
                  "creationMethod": {
                    "type": "integer",
                    "description": "Template creation method. 0 - HUMAN, 1 - AI, 2 - HUMAN_AND_AI."
                  }
                }
              },
              "example": {
                "type": "template",
                "category": "MARKETING",
                "subCategory": "STANDARD",
                "buttonsType": "quick_reply_and_call_to_action",
                "buttons": [
                  {
                    "type": "url",
                    "parameter": {
                      "text": "Visit us",
                      "phoneNumber": "",
                      "url": "https://www.wati.io",
                      "urlType": "static"
                    }
                  },
                  {
                    "type": "copy_offer_code",
                    "parameter": {
                      "text": "Copy offer code",
                      "phoneNumber": "",
                      "copyOfferCode": "123",
                      "url": "",
                      "urlType": "none"
                    }
                  },
                  {
                    "type": "quick_reply",
                    "parameter": {
                      "text": "aaa",
                      "urlType": "none"
                    }
                  }
                ],
                "footer": "Powered by wati.io",
                "elementName": "mock_api_1",
                "language": "en",
                "header": {
                  "type": "none",
                  "link": "",
                  "mediaFromPC": "",
                  "mediaHeaderId": ""
                },
                "body": "Make your messages personal using variables like {{name}} and get more replies!",
                "customParams": [
                  {
                    "paramName": "name",
                    "paramValue": "aaa"
                  }
                ],
                "creationMethod": 0
              }
            }
          }
        },
        "operationId": "createWhatsAppTemplateV1",
        "description": "Retained legacy exception: Create a WhatsApp template; use V3 to read/send/schedule.\n\nCreate a template. POST /{tenantId}/api/v1/whatsApp/templates.\n\n### Permissions\n\nFor API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `messagetemplate:write`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.",
        "x-wati-permissions": {
          "scopeRequirementGroups": [
            {
              "anyOf": [
                "api",
                "messagetemplate:write"
              ]
            }
          ],
          "groupOperator": "allOf",
          "appliesTo": [
            "ApiAccessToken",
            "OIDC"
          ],
          "legacyJwtScopeCheck": "skipped",
          "apiAccessTokenHierarchy": "configured-by-identity-provider",
          "oidcFallbackWhenNoEndpointScope": null,
          "sourceCommit": "03c6d4bc1590408c569e65602f969c6a596672e3"
        },
        "x-wati-documentation": {
          "discovery": "legacy-exception",
          "reason": "Create a WhatsApp template; use V3 to read/send/schedule."
        },
        "x-internal": false
      },
      "parameters": [
        {
          "name": "tenantId",
          "in": "path",
          "required": true,
          "description": "Your WATI workspace (tenant) ID. This required path segment identifies the WATI account for legacy v1 and v2 API requests.",
          "schema": {
            "type": "string"
          }
        }
      ]
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token from your WATI Dashboard > API Settings. Pass as `Authorization: Bearer <token>`."
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
```