---
agentTools:
  projectIndex: https://documentation.viasay.io/llms.txt
---

# Launch your WhatsApp Push campaign

## WhatsApp Message API

The WhatsApp Message API allows you to send template-based messages to WhatsApp users. This API is based on the Meta API for WhatsApp, and we forward your request directly to Meta.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "WhatsApp Push v1.0",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://chatbot.laiye.com/bom/whatsapp_push/"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/{token}": {
      "post": {
        "summary": "Launch your WhatsApp Push campaign",
        "description": "",
        "operationId": "whatsapp-push-getting-started-with-your-api",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "You can copy the whole URL from your WhatsApp Push feature page",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "X-Mindsay-Signature",
            "in": "header",
            "description": "A HMAC-SHA256 signature of the current Unix timestamp and the request body. This is used to verify the authenticity of the request.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Mindsay-Timestamp",
            "in": "header",
            "description": "The current Unix timestamp.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "RAW_BODY": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "template": {
                          "type": "object",
                          "description": "The template of the message.",
                          "properties": {
                            "name": {
                              "type": "string",
                              "description": "The name of the template."
                            },
                            "language": {
                              "type": "object",
                              "description": "The language of the template",
                              "properties": {
                                "code": {
                                  "type": "string",
                                  "description": "The language code of the template. Can be one of the values listed in https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates/supported-languages"
                                }
                              }
                            },
                            "components": {
                              "type": "array",
                              "description": "Array of components objects containing the parameters of the message.",
                              "items": {
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the component."
                                  },
                                  "sub_type": {
                                    "type": "string",
                                    "description": "The subtype of the button"
                                  },
                                  "index": {
                                    "type": "integer",
                                    "format": "int32"
                                  },
                                  "parameters": {
                                    "type": "array",
                                    "items": {
                                      "properties": {
                                        "type": {
                                          "type": "string",
                                          "description": "Currently only 'text, 'currency', 'date_time', 'payload' and 'image' are supported."
                                        },
                                        "payload": {
                                          "type": "string",
                                          "description": "The payload for a quick_reply button.",
                                          "format": "json"
                                        },
                                        "text": {
                                          "type": "string"
                                        },
                                        "currency": {
                                          "type": "object",
                                          "properties": {
                                            "fallback_value": {
                                              "type": "string"
                                            },
                                            "code": {
                                              "type": "string"
                                            },
                                            "amount_1000": {
                                              "type": "integer",
                                              "format": "int32"
                                            }
                                          }
                                        },
                                        "image": {
                                          "type": "object",
                                          "properties": {
                                            "link": {
                                              "type": "string",
                                              "description": "The URL to the image"
                                            }
                                          }
                                        }
                                      },
                                      "type": "object"
                                    }
                                  }
                                },
                                "type": "object"
                              }
                            }
                          }
                        },
                        "to": {
                          "type": "string",
                          "description": "The phone number of the recipient in E.164 format."
                        }
                      },
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\"message\": \"Push request queued\"}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Push request queued"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "Invalid JSON document"
                  }
                }
              }
            }
          },
          "411": {
            "description": "411",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "Length Required"
                  }
                }
              }
            }
          },
          "415": {
            "description": "415",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "Expected an entity of content type application/json"
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "X-Mindsay-Signature",
        "value": "Your_Encrypted_Signature"
      },
      {
        "key": "X-Mindsay-Timestamp",
        "value": "Math.floor(Date.now() / 1000).toString();"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true,
  "_id": "6479d6ecf6a59f000e1516b9:6479d6ecf6a59f000e1516be"
}
```