Templates API

    v1.0

    Create, manage, and use pre-approved WhatsApp message templates for marketing, utility, and authentication

    Available Endpoints

    POST/api/templatesCreate a new message template
    Core
    GET/api/templatesGet all templates
    Core
    GET/api/templates/:idGet a specific template
    Core
    PUT/api/templates/:id/editEdit a template
    Core
    DELETE/api/templates/:idDelete a template
    Core
    POST/api/templates/syncSync templates with WhatsApp
    Advanced

    Create New Template

    Submit a new message template for Meta approval.

    POST/api/templates

    cURL Example

    curl -X POST "https://zaptick.io/api/templates" \
      -H "X-API-Key: zaptick_live_your_api_key_here" \
      -H "Content-Type: application/json" \
      -d '{
        "name": "welcome_message",
        "category": "UTILITY",
        "language": "en",
        "components": [...]
      }'

    Request Body

    JSON
    {
      "name": "welcome_message",
      "category": "UTILITY",
      "language": "en",
      "components": [
        {
          "type": "HEADER",
          "format": "TEXT",
          "text": "Welcome {{1}}!"
        },
        {
          "type": "BODY",
          "text": "Thank you for signing up."
        },
        {
          "type": "FOOTER",
          "text": "Powered by Zaptick"
        }
      ]
    }

    Parameters

    FieldTypeRequiredDescription
    namestringYesTemplate name (lowercase, underscore separated)
    categorystringYesMARKETING, UTILITY, or AUTHENTICATION
    languagestringYesLanguage code (e.g., en, hi, es)
    componentsarrayYesTemplate components (header, body, footer, buttons)

    Success Response

    200 OKSuccess
    {
      "success": true,
      "template": {
        "id": "template_123456",
        "name": "welcome_message",
        "status": "PENDING",
        "category": "UTILITY",
        "language": "en"
      }
    }