Gupshup Templates API

Send and list WhatsApp template (HSM) messages.

GitHub OpenAPI
Business capability
SMS & Messaging Apps AE-150.20

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /template/msg Send a WhatsApp template message · Send a WhatsApp template message #
Ask an LLM
“How do I send a pre-approved WhatsApp template message to a customer?”
“Can I send a template message with a media header attached?”
Tell an agent
Send template {template} from {source} to {destination}.
Send WhatsApp template {template} to {destination} from {source} with media {message}.
GET /template/list/{appName} List an app's WhatsApp templates · List an app's templates #
Ask an LLM
“Which WhatsApp message templates are registered and approved for my app?”
“What approval status do my app's templates have?”
Tell an agent
List the WhatsApp templates for app {appName}.
Show the approved status of each template in {appName}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/gupshup:gupshup-templates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

gupshup-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Gupshup WhatsApp Business Templates API
  description: REST API for sending and managing WhatsApp Business messages through Gupshup.
  version: '1.0'
  contact:
    name: Gupshup
    url: https://www.gupshup.io
  x-modeled: true
servers:
- url: https://api.gupshup.io/wa/api/v1
  description: Gupshup WhatsApp Business API
security:
- apiKeyAuth: []
tags:
- name: Templates
  description: Send and list WhatsApp template (HSM) messages.
paths:
  /template/msg:
    post:
      operationId: sendTemplateMessage
      tags:
      - Templates
      summary: Send a WhatsApp template message
      description: Sends a pre-approved template (HSM) message to an opted-in user, used for business-initiated notifications outside the 24-hour session window. Confirmed endpoint.
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SendTemplateRequest'
      responses:
        '202':
          description: Template message accepted for asynchronous delivery.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendMessageResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '400':
          $ref: '#/components/responses/BadRequest'
  /template/list/{appName}:
    parameters:
    - $ref: '#/components/parameters/AppName'
    get:
      operationId: listTemplates
      tags:
      - Templates
      summary: List an app's templates
      description: Returns the message templates registered for an app along with their approval status. Modeled from documentation.
      responses:
        '200':
          description: A list of templates.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  parameters:
    AppName:
      name: appName
      in: path
      required: true
      description: The Gupshup app name registered to the WhatsApp business number.
      schema:
        type: string
  schemas:
    Error:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
    TemplateListResponse:
      type: object
      properties:
        status:
          type: string
          example: success
        templates:
          type: array
          items:
            $ref: '#/components/schemas/Template'
    SendTemplateRequest:
      type: object
      required:
      - channel
      - source
      - destination
      - template
      - src.name
      properties:
        channel:
          type: string
          example: whatsapp
        source:
          type: string
          description: Registered WhatsApp Business phone number.
        destination:
          type: string
          description: Recipient phone number (must be opted-in).
        template:
          type: string
          description: JSON-encoded template object referencing an approved template id and its parameter values, e.g. {"id":"<template-id>","params":["value1","value2"]}.
          example: '{"id":"00000000-0000-0000-0000-000000000000","params":["Kin","ORD-42"]}'
        message:
          type: string
          description: Optional JSON-encoded media header object for media templates (image / document / video).
        src.name:
          type: string
          description: Gupshup app name registered to the source number.
    SendMessageResponse:
      type: object
      description: Asynchronous accept response carrying a Gupshup message identifier.
      properties:
        status:
          type: string
          example: submitted
        messageId:
          type: string
          description: Gupshup unique message identifier used to correlate webhook delivery events.
    Template:
      type: object
      properties:
        id:
          type: string
        elementName:
          type: string
        category:
          type: string
        status:
          type: string
          description: Approval status (e.g. APPROVED, PENDING, REJECTED).
        languageCode:
          type: string
        data:
          type: string
          description: Template body text with placeholders.
  responses:
    BadRequest:
      description: The request was malformed or missing required parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid apikey.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: apikey
      description: Account API key sent in the `apikey` request header. Available from the Gupshup dashboard. Scopes requests to your account and its registered apps.