> ## Documentation Index
> Fetch the complete documentation index at: https://docs.smartsend.co.il/llms.txt
> Use this file to discover all available pages before exploring further.

# Send a template message by phone number

> Templates can be sent anytime, even outside the 24-hour window



## OpenAPI

````yaml /openapi-make.json post /integrations/make/messages/send-template
openapi: 3.0.3
info:
  title: SmartSend Make.com API
  version: 1.0.0
  description: >-
    Public HTTP API for the SmartSend Make.com integration. Every request is
    authenticated with the `x-organization-id` header. These are the endpoints
    Make.com (and any external automation tool) calls to send messages, manage
    conversations, tags, lists, custom fields, and more.
  contact:
    name: SmartSend Support
    email: support@smartsend.com
servers:
  - url: https://smartsend-server.otherwise.co.il
    description: Production
  - url: http://localhost:3091
    description: Local development
security:
  - organizationId: []
tags: []
paths:
  /integrations/make/messages/send-template:
    post:
      tags:
        - Make.com Integration
      summary: Send a template message by phone number
      description: Templates can be sent anytime, even outside the 24-hour window
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - phoneNumber
                - templateName
              properties:
                phoneNumber:
                  type: string
                  description: Phone number in any format (972..., 05..., +972...)
                templateName:
                  type: string
                  description: Name of the approved WhatsApp template
                languageCode:
                  type: string
                  description: Template language code (default 'he')
                parameters:
                  type: array
                  items:
                    type: string
                  description: Template parameters for variable substitution
                sentByUserId:
                  type: string
                sentByUserName:
                  type: string
                avoidBlacklist:
                  type: boolean
                  description: When true, the send is skipped if the number is blacklisted.
                headerMediaUrl:
                  type: string
                  description: >-
                    Optional public URL for header media (image/video/document).
                    Overrides the template's default media at send time.
                urlButtonParams:
                  description: >
                    Optional. Per-send values for dynamic URL buttons (URL
                    contains `{{1}}` in the stored template). Two accepted
                    shapes:
                      - Positional array: `["abc", null, "xyz"]` (index = button position in template)
                      - Make.com Array of Collections: `[{ "buttonIndex": 0, "value": "abc" }, ...]`
                    Buttons not listed (or with null/empty value) fall back to
                    Meta's example URL.
                  oneOf:
                    - type: array
                      items:
                        type: string
                        nullable: true
                    - type: array
                      items:
                        type: object
                        required:
                          - buttonIndex
                          - value
                        properties:
                          buttonIndex:
                            type: integer
                            description: >-
                              0-based index of the button in the template's
                              buttons array
                          value:
                            type: string
                            description: The string that replaces `{{1}}` for this send
      responses:
        '200':
          description: Template message sent successfully
      security:
        - organizationId: []
components:
  securitySchemes:
    organizationId:
      type: apiKey
      in: header
      name: x-organization-id
      description: Your SmartSend Organization ID. Required on every request.

````