---
updatedAt: 2026-06-30T11:47:42.000Z
agentTools:
  projectIndex: https://whapi.readme.io/llms.txt
---

# Edit newsletter

This method is responsible for editing a WhatsApp Newsletter Channel

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "name": "Whapi Support",
      "email": "care@whapi.cloud",
      "url": "https://whapi.cloud/support"
    },
    "description": "Sending and receiving messages using HTTP requests. Fixed price with no hidden fees, without limits and restrictions. You will be able to send and receive text/media/files/locations/goods/orders/polls messages via WhatsApp in private or group chats. Guides and SDK can be found on our website.",
    "title": "WhatsApp API",
    "version": "1.8.7",
    "termsOfService": "https://whapi.cloud/terms"
  },
  "servers": [
    {
      "url": "https://gate.whapi.cloud"
    },
    {
      "url": "http://localhost:8000"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    },
    {
      "tokenAuth": []
    }
  ],
  "tags": [
    {
      "name": "Newsletters",
      "description": "WhatsApp Channels Functions (Threads)"
    }
  ],
  "paths": {
    "/newsletters/{NewsletterID}": {
      "patch": {
        "tags": [
          "Newsletters"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/NewsletterID"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/editNewsletterRequest"
              },
              "example": {
                "name": "<Newsletter Title>"
              }
            }
          },
          "description": "Newsletter data",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Newsletter"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseError"
                }
              }
            },
            "description": "Wrong request parameters"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseError"
                }
              }
            },
            "description": "Need admin permissions for edit newsletter"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseError"
                }
              }
            },
            "description": "Specified newsletter not found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseError"
                }
              }
            },
            "description": "Too many requests"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          }
        },
        "deprecated": false,
        "operationId": "editNewsletter",
        "summary": "Edit newsletter",
        "description": "This method is responsible for editing a WhatsApp Newsletter Channel"
      }
    }
  },
  "components": {
    "parameters": {
      "NewsletterID": {
        "name": "NewsletterID",
        "style": "simple",
        "explode": false,
        "description": "Newsletter ID",
        "schema": {
          "$ref": "#/components/schemas/NewsletterID"
        },
        "in": "path",
        "required": true
      }
    },
    "responses": {
      "Error": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ResponseError"
            }
          }
        },
        "description": "Internal Error"
      }
    },
    "schemas": {
      "ResponseError": {
        "title": "ResponseError",
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/Error"
          }
        },
        "required": [
          "error"
        ]
      },
      "Newsletter": {
        "title": "Newsletter",
        "type": "object",
        "required": [
          "id",
          "type",
          "name"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/Chat"
          },
          {
            "properties": {
              "name": {
                "type": "string",
                "description": "Newsletter name",
                "example": "Newsletter name"
              },
              "name_at": {
                "type": "integer",
                "description": "Newsletter name change timestamp",
                "example": 1675964377
              },
              "description": {
                "type": "string",
                "description": "Newsletter description",
                "example": "Newsletter description"
              },
              "description_at": {
                "type": "string",
                "description": "Newsletter description change timestamp",
                "example": "Newsletter description ID"
              },
              "subscribers_count": {
                "type": "integer",
                "description": "Newsletter subscribers count",
                "example": 2
              },
              "created_at": {
                "type": "integer",
                "description": "Newsletter creation timestamp",
                "example": 1675964377
              },
              "invite_code": {
                "type": "string",
                "description": "Newsletter invite code",
                "example": "Newsletter invite code"
              },
              "handle": {
                "type": "string",
                "description": "Newsletter handle",
                "example": "Newsletter handle"
              },
              "verification": {
                "type": "boolean",
                "description": "Is newsletter verified",
                "example": true
              },
              "preview": {
                "type": "string",
                "description": "Newsletter preview URL",
                "example": "https://example.com/photo.jpg"
              },
              "role": {
                "type": "string",
                "description": "User's role regarding the newsletter",
                "enum": [
                  "subscriber",
                  "admin",
                  "guest",
                  "owner"
                ]
              }
            }
          }
        ]
      },
      "editNewsletterRequest": {
        "title": "Edit newsletter request",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "<Newsletter Title>"
          },
          "description": {
            "type": "string",
            "example": "<Newsletter Description>"
          },
          "newsletter_pic": {
            "type": "string",
            "description": "Newsletter jpeg picture in base64 format",
            "example": "<data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAAAAAAAD/>"
          },
          "reactions": {
            "description": "Available reactions",
            "type": "string",
            "enum": [
              "all",
              "basic",
              "blocklist",
              "none"
            ]
          }
        }
      },
      "MessagePropsText": {
        "title": "Message text unique parameters",
        "type": "object",
        "required": [
          "body"
        ],
        "properties": {
          "body": {
            "description": "Message text",
            "type": "string"
          }
        }
      },
      "ChatID": {
        "type": "string",
        "description": "Chat ID",
        "pattern": "^(?:0@(?:c\\.us|s\\.whatsapp\\.net)|[\\d-]{10,31}@[\\w\\.]{1,})$"
      },
      "InviteCode": {
        "type": "string",
        "description": "Invite code",
        "pattern": "^[A-Za-z0-9]{14,22}$"
      },
      "LabelID": {
        "type": "string",
        "description": "Label ID",
        "pattern": "^([\\d]{1,2})?$"
      },
      "MediaID": {
        "type": "string",
        "description": "Media ID",
        "pattern": "^[a-zA-Z0-9]+-[0-9a-fA-F-]+$"
      },
      "MediaMessageType": {
        "type": "string",
        "description": "Media message type",
        "enum": [
          "image",
          "video",
          "gif",
          "audio",
          "voice",
          "document",
          "sticker"
        ]
      },
      "NewsletterID": {
        "type": "string",
        "description": "Newsletter ID",
        "pattern": "^[\\d]{10,18}@newsletter$"
      },
      "Chat": {
        "title": "Chat",
        "type": "object",
        "required": [
          "id",
          "type"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ChatID"
          },
          "phone": {
            "type": "string",
            "description": "Phone number"
          },
          "name": {
            "type": "string",
            "description": "Chat name",
            "example": "Chat name"
          },
          "username": {
            "type": "string",
            "description": "WhatsApp username without the leading @"
          },
          "type": {
            "type": "string",
            "description": "Chat type",
            "example": "group",
            "enum": [
              "group",
              "contact",
              "broadcast",
              "newsletter",
              "stories",
              "announcement",
              "unknown"
            ]
          },
          "timestamp": {
            "type": "integer",
            "description": "Chat timestamp",
            "example": 1675964377
          },
          "chat_pic": {
            "type": "string",
            "description": "Chat picture URL",
            "example": "https://example.com/photo.jpg"
          },
          "chat_pic_full": {
            "type": "string",
            "description": "Chat full picture URL",
            "example": "https://example.com/photo.jpg"
          },
          "pin": {
            "type": "boolean",
            "description": "Is chat pinned",
            "example": true
          },
          "mute": {
            "type": "boolean",
            "description": "Is chat muted",
            "example": true
          },
          "mute_until": {
            "type": "integer",
            "description": "Chat mute until",
            "example": 0
          },
          "archive": {
            "type": "boolean",
            "description": "Is chat archived",
            "example": true
          },
          "unread": {
            "type": "integer",
            "description": "Unread messages count",
            "example": 0
          },
          "unread_mention": {
            "type": "boolean",
            "description": "Is chat unread mention",
            "example": false
          },
          "read_only": {
            "type": "boolean",
            "description": "Is chat read only",
            "example": false
          },
          "not_spam": {
            "type": "boolean",
            "description": "Is chat not spam",
            "example": true
          },
          "last_message": {
            "$ref": "#/components/schemas/Message"
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            },
            "description": "Labels associated with chat"
          }
        }
      },
      "DataModeIdentity": {
        "title": "Data mode identity",
        "description": "Identifier represented according to the configured data mode.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/ChatID"
          },
          {
            "$ref": "#/components/schemas/DataModeIdentityExtended"
          }
        ]
      },
      "Message": {
        "title": "Message",
        "required": [
          "id",
          "type",
          "chat_id",
          "from_me",
          "timestamp"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Message ID"
          },
          "type": {
            "$ref": "#/components/schemas/MessageType"
          },
          "subtype": {
            "type": "string",
            "description": "Message subtype"
          },
          "chat_id": {
            "type": "string",
            "description": "Chat ID"
          },
          "chat_name": {
            "type": "string",
            "description": "Chat name"
          },
          "from": {
            "description": "WhatsApp ID of the sender",
            "type": "string"
          },
          "phone": {
            "type": "string",
            "description": "Phone number of the sender"
          },
          "from_me": {
            "type": "boolean",
            "description": "Is message from me"
          },
          "from_name": {
            "type": "string",
            "description": "Pushname of the sender"
          },
          "username": {
            "type": "string",
            "description": "WhatsApp username of the incoming sender without the leading @"
          },
          "source": {
            "$ref": "#/components/schemas/MessageSource"
          },
          "timestamp": {
            "type": "number",
            "description": "Message timestamp"
          },
          "device_id": {
            "type": "number",
            "description": "Device ID, if the message was not sent through the app"
          },
          "status": {
            "$ref": "#/components/schemas/StatusEnum"
          },
          "text": {
            "$ref": "#/components/schemas/MessageContentText"
          },
          "image": {
            "$ref": "#/components/schemas/MessageContentImage"
          },
          "video": {
            "$ref": "#/components/schemas/MessageContentVideo"
          },
          "short": {
            "$ref": "#/components/schemas/MessageContentVideo"
          },
          "gif": {
            "$ref": "#/components/schemas/MessageContentVideo"
          },
          "audio": {
            "$ref": "#/components/schemas/MessageContentAudio"
          },
          "voice": {
            "$ref": "#/components/schemas/MessageContentAudio"
          },
          "document": {
            "$ref": "#/components/schemas/MessageContentDocument"
          },
          "link_preview": {
            "$ref": "#/components/schemas/MessageContentLinkPreview"
          },
          "sticker": {
            "$ref": "#/components/schemas/MessageContentSticker"
          },
          "location": {
            "$ref": "#/components/schemas/MessageContentLocation"
          },
          "live_location": {
            "$ref": "#/components/schemas/MessageContentLiveLocation"
          },
          "contact": {
            "$ref": "#/components/schemas/MessageContentContact"
          },
          "contact_list": {
            "$ref": "#/components/schemas/MessageContentContacts"
          },
          "template": {
            "$ref": "#/components/schemas/MessageContentTemplate"
          },
          "interactive": {
            "$ref": "#/components/schemas/MessageContentInteractive"
          },
          "interactive_response": {
            "$ref": "#/components/schemas/MessageContentInteractiveResponse"
          },
          "poll": {
            "$ref": "#/components/schemas/MessageContentPoll"
          },
          "quiz": {
            "$ref": "#/components/schemas/MessageContentQuiz"
          },
          "question": {
            "$ref": "#/components/schemas/MessageContentQuestion"
          },
          "hsm": {
            "$ref": "#/components/schemas/MessageContentHSM"
          },
          "system": {
            "$ref": "#/components/schemas/MessageContentSystem"
          },
          "order": {
            "$ref": "#/components/schemas/MessageContentOrder"
          },
          "group_invite": {
            "$ref": "#/components/schemas/MessageContentLinkPreview"
          },
          "newsletter_invite": {
            "$ref": "#/components/schemas/MessageContentLinkPreview"
          },
          "admin_invite": {
            "$ref": "#/components/schemas/MessageContentNewsletterAdminInvite"
          },
          "product": {
            "$ref": "#/components/schemas/MessageContentProduct"
          },
          "catalog": {
            "$ref": "#/components/schemas/MessageContentLinkPreview"
          },
          "product_items": {
            "$ref": "#/components/schemas/MessageContentProductItems"
          },
          "action": {
            "$ref": "#/components/schemas/MessageAction"
          },
          "context": {
            "$ref": "#/components/schemas/MessageContext"
          },
          "event": {
            "$ref": "#/components/schemas/MessageContentEvent"
          },
          "list": {
            "$ref": "#/components/schemas/MessageContentList"
          },
          "buttons": {
            "$ref": "#/components/schemas/MessageContentButtons"
          },
          "starred": {
            "type": "boolean",
            "description": "Is message starred"
          },
          "reactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MessageReaction"
            },
            "description": "Reactions for message"
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            },
            "description": "Labels associated with message"
          }
        }
      },
      "Label": {
        "title": "Label",
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/LabelID"
          },
          "name": {
            "type": "string",
            "description": "Label name"
          },
          "color": {
            "type": "string",
            "description": "Label color",
            "enum": [
              "salmon",
              "lightskyblue",
              "gold",
              "plum",
              "silver",
              "mediumturquoise",
              "violet",
              "goldenrod",
              "cornflowerblue",
              "greenyellow",
              "cyan",
              "lightpink",
              "mediumaquamarine",
              "orangered",
              "deepskyblue",
              "limegreen",
              "darkorange",
              "lightsteelblue",
              "mediumpurple",
              "rebeccapurple"
            ]
          },
          "count": {
            "type": "integer",
            "description": "Number of objects associated with this label",
            "format": "int32",
            "minimum": 0,
            "example": 1
          }
        },
        "required": [
          "id",
          "name",
          "color"
        ]
      },
      "ViewOnce": {
        "title": "View once",
        "type": "object",
        "properties": {
          "view_once": {
            "type": "boolean",
            "description": "Is view once"
          }
        }
      },
      "DataModeIdentityExtended": {
        "title": "Extended data mode identity",
        "description": "Original WhatsApp identifier accompanied by its phone number.",
        "type": "object",
        "required": [
          "id",
          "phone"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ChatID"
          },
          "phone": {
            "type": "string",
            "description": "Phone number without a WhatsApp domain.",
            "pattern": "^\\d{7,15}$"
          },
          "username": {
            "type": "string",
            "description": "WhatsApp username without the leading @."
          }
        }
      },
      "MessageType": {
        "default": "text",
        "type": "string",
        "description": "Message type",
        "enum": [
          "text",
          "image",
          "video",
          "gif",
          "audio",
          "voice",
          "short",
          "document",
          "documentWithCaption",
          "link_preview",
          "location",
          "live_location",
          "contact",
          "contact_list",
          "sticker",
          "system",
          "call",
          "unknown",
          "action",
          "group_invite",
          "newsletter_invite",
          "admin_invite",
          "product",
          "catalog",
          "template",
          "interactive",
          "interactive_response",
          "reply",
          "poll",
          "quiz",
          "question",
          "hsm",
          "order",
          "story",
          "event",
          "buttons",
          "list",
          "pin",
          "carousel",
          "album"
        ]
      },
      "MessageSource": {
        "default": "text",
        "type": "string",
        "description": "Message source",
        "enum": [
          "web",
          "mobile",
          "api",
          "system",
          "business_api",
          "unknown"
        ]
      },
      "StatusEnum": {
        "type": "string",
        "description": "Message ack status",
        "enum": [
          "failed",
          "pending",
          "sent",
          "delivered",
          "read",
          "played",
          "deleted"
        ],
        "x-enum-descriptions": [
          "Message failed to send (Red error triangle in WhatsApp Mobile)",
          "Message pending to send (One clock in WhatsApp Mobile)",
          "Message received by WhatsApp server (One checkmark in WhatsApp Mobile)",
          "Message delivered to recipient (Two checkmarks in WhatsApp Mobile)",
          "Message read by recipient (Two blue checkmarks in WhatsApp Mobile)",
          "Voice-message played by recipient (Two blue checkmarks in WhatsApp Mobile)",
          "Message deleted by the user"
        ]
      },
      "MessageContentText": {
        "title": "Content text message",
        "description": "",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/MessagePropsText"
          },
          {
            "$ref": "#/components/schemas/ActionButtons"
          },
          {
            "$ref": "#/components/schemas/ActionList"
          },
          {
            "$ref": "#/components/schemas/ViewOnce"
          }
        ]
      },
      "MessageContentImage": {
        "title": "Content image message",
        "type": "object",
        "required": [
          "id"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/MediaFile"
          },
          {
            "$ref": "#/components/schemas/MessagePropsImageOrVideo"
          },
          {
            "$ref": "#/components/schemas/ActionButtons"
          },
          {
            "$ref": "#/components/schemas/ViewOnce"
          }
        ]
      },
      "MessageContentVideo": {
        "title": "Content video message",
        "type": "object",
        "required": [
          "id"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/MediaFile"
          },
          {
            "$ref": "#/components/schemas/MessagePropsImageOrVideo"
          },
          {
            "properties": {
              "seconds": {
                "description": "Optional. For video files, this field indicates the duration of the video file in seconds.",
                "type": "integer",
                "format": "int32"
              },
              "autoplay": {
                "description": "Optional. If the media is a GIF, this field indicates whether the GIF should be played automatically when the message is received.",
                "type": "boolean"
              }
            }
          },
          {
            "$ref": "#/components/schemas/ActionButtons"
          },
          {
            "$ref": "#/components/schemas/ViewOnce"
          }
        ]
      },
      "MessageContentAudio": {
        "title": "Content audio message",
        "type": "object",
        "required": [
          "id"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/MediaFile"
          },
          {
            "$ref": "#/components/schemas/MessagePropsVoice"
          },
          {
            "$ref": "#/components/schemas/ViewOnce"
          }
        ]
      },
      "MessageContentDocument": {
        "title": "Content document message",
        "type": "object",
        "required": [
          "id"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/MediaFile"
          },
          {
            "$ref": "#/components/schemas/MessagePropsDocument"
          },
          {
            "properties": {
              "page_count": {
                "description": "Optional. Number of pages",
                "type": "integer"
              },
              "preview": {
                "description": "Optional. Base64 encoded preview of the media. In JPEG format.",
                "type": "string"
              }
            }
          },
          {
            "$ref": "#/components/schemas/ActionButtons"
          },
          {
            "$ref": "#/components/schemas/ViewOnce"
          }
        ]
      },
      "MessageContentLinkPreview": {
        "title": "Content link preview message",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/MessagePropsText"
          },
          {
            "properties": {
              "url": {
                "type": "string",
                "description": "URL of the link"
              },
              "id": {
                "$ref": "#/components/schemas/MediaID"
              },
              "link": {
                "description": "Optional. Link to media",
                "type": "string"
              },
              "sha256": {
                "description": "Checksum",
                "type": "string"
              },
              "catalog_id": {
                "$ref": "#/components/schemas/DataModeIdentity"
              },
              "newsletter_id": {
                "$ref": "#/components/schemas/NewsletterID"
              },
              "invite_code": {
                "$ref": "#/components/schemas/InviteCode"
              }
            }
          },
          {
            "$ref": "#/components/schemas/MessagePropsLinkPreview"
          },
          {
            "$ref": "#/components/schemas/ViewOnce"
          }
        ]
      },
      "MessageContentSticker": {
        "title": "Content sticker message",
        "type": "object",
        "required": [
          "id"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/MediaFile"
          },
          {
            "$ref": "#/components/schemas/MessagePropsSticker"
          },
          {
            "properties": {
              "preview": {
                "description": "Optional. Base64 encoded preview of the media. In PNG format.",
                "type": "string"
              }
            }
          },
          {
            "$ref": "#/components/schemas/Size"
          },
          {
            "$ref": "#/components/schemas/ViewOnce"
          }
        ]
      },
      "MessageContentLocation": {
        "title": "Content location message",
        "type": "object",
        "required": [
          "latitude",
          "longitude"
        ],
        "allOf": [
          {
            "properties": {
              "latitude": {
                "format": "double",
                "description": "Latitude of location being sent",
                "type": "number"
              },
              "longitude": {
                "format": "double",
                "description": "Longitude of location being sent",
                "type": "number"
              },
              "address": {
                "description": "Address of the location",
                "type": "string"
              },
              "name": {
                "description": "Name of the location",
                "type": "string"
              },
              "url": {
                "description": "URL for the website where the user downloaded the location information",
                "type": "string"
              },
              "preview": {
                "description": "Optional. Base64 encoded preview of the media. In JPEG format.",
                "type": "string"
              },
              "accuracy": {
                "description": "Accuracy of the location in meters",
                "type": "integer",
                "format": "int32"
              },
              "speed": {
                "description": "Speed of the location in meters per second",
                "type": "integer",
                "format": "int32"
              },
              "degrees": {
                "description": "Degrees clockwise from true north",
                "type": "integer",
                "format": "int32"
              },
              "comment": {
                "description": "Optional. Comment for the location",
                "type": "string"
              }
            }
          },
          {
            "$ref": "#/components/schemas/ViewOnce"
          }
        ]
      },
      "MessageContentLiveLocation": {
        "title": "Content live location message",
        "type": "object",
        "required": [
          "latitude",
          "longitude"
        ],
        "allOf": [
          {
            "properties": {
              "latitude": {
                "format": "double",
                "description": "Latitude of live location being sent",
                "type": "number"
              },
              "longitude": {
                "format": "double",
                "description": "Longitude of live location being sent",
                "type": "number"
              },
              "accuracy": {
                "description": "Accuracy of the live location in meters",
                "type": "integer",
                "format": "int32"
              },
              "speed": {
                "description": "Speed of the live location in meters per second",
                "type": "integer",
                "format": "int32"
              },
              "degrees": {
                "description": "Degrees clockwise from true north",
                "type": "integer",
                "format": "int32"
              },
              "caption": {
                "description": "Optional. Text caption under the live location",
                "type": "string"
              },
              "sequence_number": {
                "description": "Optional. Sequence number of the live location for event tracking",
                "type": "integer",
                "format": "int64"
              },
              "time_offset": {
                "description": "Optional. Time offset of the live location",
                "type": "number"
              },
              "preview": {
                "description": "Optional. Base64 encoded preview of the media. In JPEG format.",
                "type": "string"
              }
            }
          },
          {
            "$ref": "#/components/schemas/ViewOnce"
          }
        ]
      },
      "MessageContentContact": {
        "title": "Content contact message",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/VCard"
          }
        ]
      },
      "MessageContentContacts": {
        "title": "Content contacts message",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "list": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VCard"
                }
              }
            }
          }
        ]
      },
      "MessageContentTemplate": {
        "title": "Message content template",
        "type": "object",
        "description": "Template envelope for a message containing a WhatsApp Flow button",
        "required": [
          "type",
          "native_flow"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "flow"
            ],
            "description": "Template content subtype"
          },
          "header": {
            "type": "string",
            "description": "Visible template header text"
          },
          "body": {
            "type": "string",
            "description": "Visible template body text"
          },
          "footer": {
            "type": "string",
            "description": "Visible template footer text"
          },
          "buttons": {
            "type": "array",
            "description": "Compatibility view of the template Flow buttons",
            "items": {
              "$ref": "#/components/schemas/MessageInteractiveButton"
            }
          },
          "template_id": {
            "type": "string",
            "description": "WhatsApp template ID"
          },
          "native_flow": {
            "$ref": "#/components/schemas/MessageNativeFlow"
          },
          "cta_disabled": {
            "type": "boolean",
            "description": "Whether WhatsApp disabled the Flow call-to-action after the Flow was submitted"
          },
          "id": {
            "type": "string",
            "description": "Media ID when the template header contains media"
          },
          "link": {
            "type": "string",
            "description": "Link to template header media"
          },
          "mime_type": {
            "type": "string",
            "description": "Template header media MIME type"
          },
          "file_size": {
            "type": "integer",
            "format": "int64",
            "description": "Template header media size"
          },
          "file_name": {
            "type": "string",
            "description": "Template header media file name"
          },
          "sha256": {
            "type": "string",
            "description": "Template header media checksum"
          },
          "timestamp": {
            "type": "number",
            "description": "Template header media timestamp"
          },
          "preview": {
            "type": "string",
            "description": "Base64-encoded template header media preview"
          },
          "width": {
            "type": "integer",
            "description": "Template header media width"
          },
          "height": {
            "type": "integer",
            "description": "Template header media height"
          },
          "seconds": {
            "type": "integer",
            "description": "Template header video duration"
          },
          "view_once": {
            "type": "boolean",
            "description": "Whether the template message is view once"
          }
        }
      },
      "MessageContentInteractive": {
        "title": "Message content interactive",
        "type": "object",
        "description": "Incoming native interactive message, with a WABA-style subtype for Flow messages and submitted Flow responses",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "flow",
              "nfm_reply"
            ],
            "description": "WABA interactive subtype; absent for non-Flow native interactive messages"
          },
          "header": {
            "type": "string",
            "description": "Visible interactive header text"
          },
          "body": {
            "type": "string",
            "description": "Visible interactive body text"
          },
          "footer": {
            "type": "string",
            "description": "Visible interactive footer text"
          },
          "buttons": {
            "type": "array",
            "description": "Compatibility view of the native interactive buttons",
            "items": {
              "$ref": "#/components/schemas/MessageInteractiveButton"
            }
          },
          "template_id": {
            "type": "string",
            "description": "WhatsApp template ID when the interactive message arrived as an interactiveMessageTemplate"
          },
          "native_flow": {
            "$ref": "#/components/schemas/MessageNativeFlow"
          },
          "nfm_reply": {
            "$ref": "#/components/schemas/MessageNfmReply"
          },
          "cta_disabled": {
            "type": "boolean",
            "description": "Whether WhatsApp disabled the Flow call-to-action after the Flow was submitted"
          },
          "id": {
            "type": "string",
            "description": "Media ID when the interactive header contains media"
          },
          "link": {
            "type": "string",
            "description": "Link to interactive header media"
          },
          "mime_type": {
            "type": "string",
            "description": "Interactive header media MIME type"
          },
          "file_size": {
            "type": "integer",
            "format": "int64",
            "description": "Interactive header media size in bytes"
          },
          "file_name": {
            "type": "string",
            "description": "Interactive header media file name"
          },
          "sha256": {
            "type": "string",
            "description": "Interactive header media checksum"
          },
          "timestamp": {
            "type": "number",
            "description": "Interactive header media timestamp"
          },
          "preview": {
            "type": "string",
            "description": "Base64-encoded interactive header media preview"
          },
          "width": {
            "type": "integer",
            "description": "Interactive header media width"
          },
          "height": {
            "type": "integer",
            "description": "Interactive header media height"
          },
          "seconds": {
            "type": "integer",
            "description": "Interactive header video duration"
          },
          "view_once": {
            "type": "boolean",
            "description": "Whether the interactive message is view once"
          }
        }
      },
      "MessageContentInteractiveResponse": {
        "title": "Message content interactive response",
        "description": "Response submitted from a non-Flow interactive native message",
        "type": "object",
        "required": [
          "type",
          "native_flow"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "native_flow"
            ]
          },
          "body": {
            "type": "string",
            "description": "Visible response body"
          },
          "body_format": {
            "type": "integer",
            "format": "int32",
            "enum": [
              0,
              1
            ],
            "description": "InteractiveResponseMessage body format (0 DEFAULT, 1 EXTENSIONS_1)"
          },
          "native_flow": {
            "$ref": "#/components/schemas/MessageNativeFlowResponse"
          }
        }
      },
      "MessageContentPoll": {
        "title": "Message content poll",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/MessagePollResults"
          },
          {
            "properties": {
              "results": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PollResults"
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/ViewOnce"
          }
        ]
      },
      "MessageContentQuiz": {
        "title": "Message content quiz",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/MessagePollResults"
          },
          {
            "properties": {
              "correct_answer": {
                "type": "string",
                "description": "Correct option for quiz"
              },
              "results": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PollResults"
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/ViewOnce"
          }
        ]
      },
      "MessageContentQuestion": {
        "title": "Message content question",
        "type": "object",
        "properties": {
          "body": {
            "type": "string",
            "description": "Question text",
            "example": "What do you think?"
          },
          "total": {
            "type": "integer",
            "description": "Total count of responses",
            "example": 1
          },
          "responses": {
            "type": "array",
            "description": "Question responses",
            "items": {
              "$ref": "#/components/schemas/QuestionAnswer"
            }
          }
        }
      },
      "MessageContentHSM": {
        "title": "Message content HSM",
        "type": "object",
        "properties": {
          "header": {
            "type": "object",
            "description": "Header",
            "properties": {
              "type": {
                "type": "string",
                "description": "Header type",
                "enum": [
                  "text",
                  "image",
                  "video",
                  "document",
                  "location"
                ]
              },
              "text": {
                "$ref": "#/components/schemas/MessagePropsText"
              },
              "image": {
                "$ref": "#/components/schemas/MediaFile"
              },
              "video": {
                "$ref": "#/components/schemas/MediaFile"
              },
              "document": {
                "$ref": "#/components/schemas/MediaFile"
              },
              "location": {
                "$ref": "#/components/schemas/MessageContentLocation"
              }
            }
          },
          "body": {
            "description": "Message text",
            "type": "string"
          },
          "footer": {
            "description": "Message footer",
            "type": "string"
          },
          "buttons": {
            "type": "array",
            "description": "Buttons",
            "items": {
              "$ref": "#/components/schemas/HSMButton"
            }
          }
        }
      },
      "MessageContentSystem": {
        "title": "Message content interactive",
        "type": "object",
        "properties": {
          "body": {
            "type": "string",
            "description": "Message body"
          }
        }
      },
      "MessageContentOrder": {
        "title": "Message content order",
        "type": "object",
        "properties": {
          "order_id": {
            "description": "Order ID",
            "type": "string"
          },
          "seller": {
            "$ref": "#/components/schemas/DataModeIdentity",
            "description": "Seller ID (Contact ID)"
          },
          "title": {
            "type": "string",
            "description": "Order title"
          },
          "text": {
            "type": "string",
            "description": "Order message text"
          },
          "token": {
            "description": "Base64 secret token",
            "type": "string"
          },
          "item_count": {
            "description": "Total products count",
            "type": "number"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "total_price": {
            "description": "Total order price",
            "type": "number"
          },
          "status": {
            "description": "Order status",
            "type": "string",
            "enum": [
              "new",
              "accepted",
              "canceled"
            ]
          },
          "preview": {
            "description": "Order preview base64 image JPEG",
            "type": "string"
          }
        }
      },
      "MessageContentNewsletterAdminInvite": {
        "title": "Content newsletter admin invite message",
        "type": "object",
        "required": [
          "newsletter_id",
          "newsletter_name",
          "expiration"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/MessagePropsText"
          },
          {
            "properties": {
              "newsletter_id": {
                "$ref": "#/components/schemas/NewsletterID"
              },
              "newsletter_name": {
                "description": "Newsletter name",
                "type": "string"
              },
              "expiration": {
                "description": "Expiration timestamp of the invitation",
                "type": "number"
              },
              "preview": {
                "type": "string",
                "description": "Base64 encoded newsletter preview image. In JPEG format"
              }
            }
          }
        ]
      },
      "MessageContentProduct": {
        "title": "Message content product",
        "type": "object",
        "properties": {
          "catalog_id": {
            "description": "Catalog ID",
            "$ref": "#/components/schemas/DataModeIdentity"
          },
          "product_id": {
            "description": "Product ID",
            "type": "string"
          }
        }
      },
      "MessageContentProductItems": {
        "title": "Message content product items",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Type of interactive",
            "enum": [
              "list",
              "buttons"
            ]
          }
        }
      },
      "MessageAction": {
        "title": "Message action",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "target": {
            "description": "Target message ID or chat ID",
            "type": "string"
          },
          "type": {
            "description": "Type of action",
            "type": "string",
            "enum": [
              "edited",
              "edit",
              "delete",
              "reaction",
              "ephemeral",
              "vote",
              "result",
              "comment",
              "event_response",
              "answer",
              "pin",
              "unpin",
              "label_change",
              "media_notify",
              "status_notify",
              "group_status_notify"
            ]
          },
          "emoji": {
            "description": "Action emoji for reaction",
            "type": "string"
          },
          "ephemeral": {
            "description": "Ephemeral message duration",
            "type": "integer"
          },
          "edited_type": {
            "$ref": "#/components/schemas/MessageType"
          },
          "edited_content": {
            "$ref": "#/components/schemas/MessageContent"
          },
          "votes": {
            "type": "array",
            "description": "List of poll options",
            "items": {
              "type": "string"
            }
          },
          "result": {
            "$ref": "#/components/schemas/QuizResult"
          },
          "comment": {
            "type": "string",
            "description": "Comment"
          },
          "event_response": {
            "$ref": "#/components/schemas/EventResponse"
          },
          "answer": {
            "$ref": "#/components/schemas/QuestionAnswer"
          },
          "participant": {
            "$ref": "#/components/schemas/DataModeIdentity"
          }
        }
      },
      "MessageContext": {
        "title": "Message context",
        "description": "",
        "type": "object",
        "properties": {
          "forwarded": {
            "type": "boolean",
            "description": "Is forwarding message"
          },
          "forwarding_score": {
            "type": "integer",
            "format": "int32",
            "description": "Count fo forwarding message"
          },
          "mentions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DataModeIdentity"
            },
            "description": "The numbers of the mentioned users"
          },
          "ad": {
            "$ref": "#/components/schemas/MessageContextAD"
          },
          "conversion": {
            "$ref": "#/components/schemas/MessageContextConversion"
          },
          "paid_partnership": {
            "type": "boolean",
            "description": "True if a WhatsApp Channel message is labelled as a paid partnership"
          },
          "quoted_id": {
            "type": "string",
            "description": "ID of quoted message"
          },
          "quoted_type": {
            "$ref": "#/components/schemas/MessageType"
          },
          "quoted_content": {
            "$ref": "#/components/schemas/MessageContent"
          },
          "quoted_author": {
            "$ref": "#/components/schemas/DataModeIdentity",
            "description": "Whatsapp ID of quoted message author"
          },
          "ephemeral": {
            "type": "integer",
            "description": "Ephemeral message duration"
          }
        }
      },
      "MessageContentEvent": {
        "title": "Message content event",
        "type": "object",
        "properties": {
          "is_canceled": {
            "type": "boolean",
            "description": "True if event is canceled",
            "example": false
          },
          "name": {
            "type": "string",
            "description": "Event name",
            "example": "Some name"
          },
          "description": {
            "type": "string",
            "description": "Event description",
            "example": "Some description"
          },
          "join_link": {
            "type": "string",
            "description": "Join link",
            "example": "https://call.whatsapp.com/voice/K5IFl19olpzTLsh52A0G9R"
          },
          "start": {
            "type": "integer",
            "description": "Chat timestamp",
            "example": 1675964377
          },
          "responses": {
            "type": "array",
            "description": "Event responses",
            "items": {
              "$ref": "#/components/schemas/EventResponse"
            }
          }
        }
      },
      "MessageContentList": {
        "title": "Message content list",
        "type": "object",
        "properties": {
          "header": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "footer": {
            "type": "string"
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string"
                },
                "rows": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "MessageContentButtons": {
        "title": "Message content buttons",
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "footer": {
            "type": "string"
          },
          "buttons": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "UNKNOWN",
                    "RESPONSE",
                    "NATIVE_FLOW"
                  ]
                }
              }
            }
          }
        }
      },
      "MessageReaction": {
        "title": "Message reactions",
        "type": "object",
        "required": [
          "emoji"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Reaction ID"
          },
          "emoji": {
            "$ref": "#/components/schemas/Emoji"
          },
          "group_key": {
            "type": "string",
            "description": "Reaction group key"
          },
          "t": {
            "type": "number",
            "description": "Reaction timestamp"
          },
          "unread": {
            "type": "boolean",
            "description": "Is reaction unread"
          },
          "count": {
            "type": "number",
            "description": "Reaction count"
          }
        }
      },
      "MessageContent": {
        "title": "Message content",
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/MessageContentText"
          },
          {
            "$ref": "#/components/schemas/MessageContentImage"
          },
          {
            "$ref": "#/components/schemas/MessageContentVideo"
          },
          {
            "$ref": "#/components/schemas/MessageContentAudio"
          },
          {
            "$ref": "#/components/schemas/MessageContentDocument"
          },
          {
            "$ref": "#/components/schemas/MessageContentLinkPreview"
          },
          {
            "$ref": "#/components/schemas/MessageContentNewsletterAdminInvite"
          },
          {
            "$ref": "#/components/schemas/MessageContentProduct"
          },
          {
            "$ref": "#/components/schemas/MessageContentSticker"
          },
          {
            "$ref": "#/components/schemas/MessageContentLocation"
          },
          {
            "$ref": "#/components/schemas/MessageContentLiveLocation"
          },
          {
            "$ref": "#/components/schemas/MessageContentContact"
          },
          {
            "$ref": "#/components/schemas/MessageContentContacts"
          },
          {
            "$ref": "#/components/schemas/MessageContentTemplate"
          },
          {
            "$ref": "#/components/schemas/MessageContentInteractive"
          },
          {
            "$ref": "#/components/schemas/MessageContentInteractiveResponse"
          },
          {
            "$ref": "#/components/schemas/MessageContentPoll"
          },
          {
            "$ref": "#/components/schemas/MessageContentQuiz"
          },
          {
            "$ref": "#/components/schemas/MessageContentQuestion"
          },
          {
            "$ref": "#/components/schemas/MessageContentReply"
          }
        ]
      },
      "QuizResult": {
        "title": "Quiz result",
        "type": "object",
        "properties": {
          "participant": {
            "$ref": "#/components/schemas/DataModeIdentity"
          },
          "answers": {
            "type": "array",
            "description": "Selected quiz answers",
            "items": {
              "type": "string"
            }
          },
          "timestamp": {
            "type": "integer",
            "description": "Response timestamp",
            "example": 1675964377
          }
        }
      },
      "EventResponse": {
        "title": "Message content event",
        "type": "object",
        "properties": {
          "participant": {
            "$ref": "#/components/schemas/DataModeIdentity"
          },
          "response": {
            "type": "string",
            "description": "Response",
            "example": "JOING",
            "enum": [
              "UNKNOWN",
              "GOING",
              "NOT_GOING"
            ]
          },
          "timestamp": {
            "type": "integer",
            "description": "Response timestamp",
            "example": 1675964377
          }
        }
      },
      "QuestionAnswer": {
        "title": "Question answer",
        "type": "object",
        "properties": {
          "participant": {
            "$ref": "#/components/schemas/DataModeIdentity"
          },
          "text": {
            "type": "string",
            "description": "Answer text",
            "example": "Some answer"
          },
          "timestamp": {
            "type": "integer",
            "description": "Response timestamp",
            "example": 1675964377
          }
        }
      },
      "MessageContentReply": {
        "title": "Message content reply",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Type of message content",
            "enum": [
              "list_reply",
              "buttons_reply"
            ]
          },
          "list_reply": {
            "$ref": "#/components/schemas/ListReply"
          },
          "buttons_reply": {
            "$ref": "#/components/schemas/ButtonsReply"
          }
        }
      },
      "MediaFile": {
        "title": "Media file",
        "type": "object",
        "required": [
          "id",
          "mime_type",
          "file_size",
          "time"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/MediaID"
          },
          "link": {
            "description": "Optional. Link to media",
            "type": "string"
          },
          "mime_type": {
            "description": "Mime type of media",
            "type": "string"
          },
          "file_size": {
            "description": "File size in bytes",
            "type": "integer",
            "format": "int64"
          },
          "file_name": {
            "description": "Optional. File name",
            "type": "string"
          },
          "sha256": {
            "description": "Checksum",
            "type": "string"
          },
          "timestamp": {
            "description": "Created at",
            "type": "number"
          }
        }
      },
      "MessagePropsVoice": {
        "title": "Message voice unique parameters",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/MessagePropsAudio"
          },
          {
            "properties": {
              "recording_time": {
                "type": "number",
                "description": "Time in seconds to simulate recording voice",
                "default": 0,
                "minimum": 0
              },
              "waveform": {
                "type": "string",
                "description": "Voice message waveform"
              }
            }
          }
        ]
      },
      "VCard": {
        "title": "VCard",
        "type": "object",
        "properties": {
          "name": {
            "description": "Name of contact",
            "type": "string"
          },
          "vcard": {
            "description": "Vcard of contact",
            "type": "string"
          }
        }
      },
      "MessagePropsDocument": {
        "title": "Message document unique parameters",
        "type": "object",
        "properties": {
          "caption": {
            "description": "Optional. Text caption under the document.",
            "type": "string"
          },
          "filename": {
            "description": "Optional. File name",
            "type": "string"
          }
        }
      },
      "ActionButtons": {
        "title": "Buttons",
        "type": "object",
        "properties": {
          "buttons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Button"
            }
          }
        }
      },
      "HSMButton": {
        "title": "Button",
        "type": "object",
        "properties": {
          "id": {
            "description": "ID of the button",
            "type": "string"
          },
          "type": {
            "description": "Type of button",
            "type": "string",
            "enum": [
              "simple",
              "reply",
              "url",
              "phone_number",
              "copy_code"
            ]
          },
          "text": {
            "description": "Button text",
            "type": "string"
          },
          "url": {
            "description": "URL",
            "type": "string"
          },
          "phone_number": {
            "description": "Phone number",
            "type": "string"
          },
          "copy_code": {
            "description": "Code",
            "type": "string"
          }
        }
      },
      "MessagePropsImageOrVideo": {
        "title": "Message image or video unique parameters",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "caption": {
                "description": "Optional. Text caption under the media.",
                "type": "string"
              },
              "preview": {
                "description": "Optional. Base64 encoded preview of the media. In JPEG format.",
                "type": "string"
              }
            }
          },
          {
            "$ref": "#/components/schemas/Size"
          }
        ]
      },
      "MessageInteractiveButton": {
        "title": "Interactive message button",
        "description": "Compatibility view of a decoded native interactive button",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Native Flow button name"
          },
          "text": {
            "type": "string",
            "description": "Button display text when present"
          },
          "id": {
            "type": "string",
            "description": "Button ID when present"
          },
          "phone_number": {
            "type": "string",
            "description": "Button phone number when present"
          },
          "copy_code": {
            "type": "string",
            "description": "Button copy code when present"
          },
          "url": {
            "type": "string",
            "description": "Button URL when present"
          },
          "merchant_url": {
            "type": "string",
            "description": "Button merchant URL when present"
          }
        }
      },
      "MessageNativeFlow": {
        "title": "Native Flow message",
        "description": "Full NativeFlowMessage payload decoded from an incoming interactive message",
        "type": "object",
        "properties": {
          "message_version": {
            "type": "integer",
            "format": "int32",
            "description": "NativeFlowMessage protobuf messageVersion"
          },
          "message_params_json": {
            "type": "string",
            "description": "Original NativeFlowMessage messageParamsJson value"
          },
          "message_params": {
            "type": "object",
            "additionalProperties": {},
            "description": "Parsed messageParamsJson object when it is valid JSON"
          },
          "buttons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MessageNativeFlowButton"
            }
          }
        }
      },
      "MessageNfmReply": {
        "title": "Native Flow reply",
        "type": "object",
        "description": "WABA-style nfm_reply payload produced when a user submits a Flow",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "flow"
            ],
            "description": "WABA native Flow reply name"
          },
          "body": {
            "type": "string",
            "description": "Visible reply body, normally Sent"
          },
          "body_format": {
            "type": "integer",
            "format": "int32",
            "description": "Original NativeFlowResponseMessage body format"
          },
          "response_json": {
            "type": "string",
            "description": "Original NativeFlowResponseMessage paramsJson value exposed as WABA response_json"
          },
          "response": {
            "type": "object",
            "additionalProperties": {},
            "description": "Parsed response_json object when it is valid JSON"
          },
          "native_flow_name": {
            "type": "string",
            "description": "Original WhatsApp Web NativeFlowResponseMessage name, for example galaxy_message"
          },
          "version": {
            "type": "integer",
            "format": "int32",
            "description": "NativeFlowResponseMessage protobuf version"
          },
          "response_message": {
            "type": "object",
            "additionalProperties": {},
            "description": "Parsed nested or legacy Flow response_message object when it is valid JSON"
          }
        }
      },
      "MessageNativeFlowResponse": {
        "title": "Native Flow response",
        "description": "Full NativeFlowResponseMessage payload decoded from a non-Flow interactive response",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Native Flow response name"
          },
          "version": {
            "type": "integer",
            "format": "int32",
            "description": "NativeFlowResponseMessage protobuf version"
          },
          "params_json": {
            "type": "string",
            "description": "Original NativeFlowResponseMessage paramsJson value"
          },
          "params": {
            "type": "object",
            "additionalProperties": {},
            "description": "Parsed paramsJson object when it is valid JSON"
          },
          "response": {
            "type": "object",
            "additionalProperties": {},
            "description": "Parsed nested response_message object when it is valid JSON"
          }
        }
      },
      "MessagePropsLinkPreview": {
        "title": "Preview link send parameters",
        "description": "If 'body' contains a link, this props can be used to create custom preview link",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Title of the link"
          },
          "description": {
            "type": "string",
            "description": "Description of the link"
          },
          "canonical": {
            "type": "string",
            "description": "Canonical URL of the link (for example, if the link is shortened)"
          },
          "preview": {
            "type": "string",
            "description": "Base64 encoded image for mini version link preview. In JPEG format"
          }
        },
        "required": [
          "title"
        ]
      },
      "Currency": {
        "description": "Currency",
        "type": "string",
        "enum": [
          "USD",
          "EUR",
          "AED",
          "AFN",
          "ALL",
          "AMD",
          "ANG",
          "AOA",
          "ARS",
          "AUD",
          "AWG",
          "AZN",
          "BAM",
          "BBD",
          "BDT",
          "BGN",
          "BHD",
          "BIF",
          "BMD",
          "BND",
          "BOB",
          "BRL",
          "BSD",
          "BTN",
          "BWP",
          "BYN",
          "BZD",
          "CAD",
          "CDF",
          "CHF",
          "CLP",
          "CNY",
          "COP",
          "CRC",
          "CUP",
          "CVE",
          "CZK",
          "DJF",
          "DKK",
          "DOP",
          "DZD",
          "EGP",
          "ERN",
          "ETB",
          "FJD",
          "FKP",
          "GBP",
          "GEL",
          "GGP",
          "GHS",
          "GIP",
          "GMD",
          "GNF",
          "GTQ",
          "GYD",
          "HKD",
          "HNL",
          "HRK",
          "HTG",
          "HUF",
          "IDR",
          "ILS",
          "IMP",
          "INR",
          "IQD",
          "IRR",
          "ISK",
          "JEP",
          "JMD",
          "JOD",
          "JPY",
          "KES",
          "KGS",
          "KHR",
          "KMF",
          "KPW",
          "KRW",
          "KWD",
          "KYD",
          "KZT",
          "LAK",
          "LBP",
          "LKR",
          "LRD",
          "LSL",
          "LYD",
          "MAD",
          "MDL",
          "MGA",
          "MKD",
          "MMK",
          "MNT",
          "MOP",
          "MRU",
          "MUR",
          "MVR",
          "MWK",
          "MXN",
          "MYR",
          "MZN",
          "NAD",
          "NGN",
          "NIO",
          "NOK",
          "NPR",
          "NZD",
          "OMR",
          "PAB",
          "PEN",
          "PGK",
          "PHP",
          "PKR",
          "PLN",
          "PYG",
          "QAR",
          "RON",
          "RSD",
          "RUB",
          "RWF",
          "SAR",
          "SBD",
          "SCR",
          "SDG",
          "SEK",
          "SGD",
          "SHP",
          "SLL",
          "SOS",
          "SRD",
          "SSP",
          "STN",
          "SVC",
          "SYP",
          "SZL",
          "THB",
          "TJS",
          "TMT",
          "TND",
          "TOP",
          "TRY",
          "TTD",
          "TWD",
          "TZS",
          "UAH",
          "UGX",
          "UYU",
          "UZS",
          "VEF",
          "VND",
          "VUV",
          "WST",
          "XAF",
          "XCD",
          "XOF",
          "XPF",
          "YER",
          "ZAR",
          "ZMW",
          "ZWL"
        ]
      },
      "MessagePollResults": {
        "title": "Message poll unique parameters",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Title of poll"
          },
          "options": {
            "type": "array",
            "description": "Options of poll",
            "items": {
              "type": "string"
            },
            "minItems": 2,
            "maxItems": 12
          },
          "vote_limit": {
            "type": "integer",
            "description": "Number of selectable options in poll (1 - can choose only one option, 0 - any number of options)"
          },
          "end_time": {
            "type": "integer",
            "description": "Poll end timestamp"
          },
          "hide_participant_name": {
            "type": "boolean",
            "description": "Hide participant names in poll results"
          },
          "allow_add_option": {
            "type": "boolean",
            "description": "Allow participants to add options"
          },
          "total": {
            "type": "integer",
            "description": "Total count of selected options"
          }
        },
        "required": [
          "title",
          "options"
        ]
      },
      "PollResults": {
        "title": "Poll results",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "option ID"
          },
          "name": {
            "type": "string",
            "description": "option name"
          },
          "count": {
            "type": "integer",
            "description": "Number of votes for this option"
          },
          "voters": {
            "type": "array",
            "description": "List of users who voted for this option",
            "items": {
              "$ref": "#/components/schemas/DataModeIdentity"
            }
          }
        },
        "required": [
          "id",
          "name",
          "count",
          "voters"
        ]
      },
      "ListReply": {
        "title": "Buttons reply",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Clicked list ID"
          },
          "title": {
            "type": "string",
            "description": "Clicked list title"
          },
          "description": {
            "type": "string",
            "description": "Clicked list description"
          }
        }
      },
      "ButtonsReply": {
        "title": "Buttons reply",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Clicked button ID"
          },
          "title": {
            "type": "string",
            "description": "Clicked button text"
          }
        }
      },
      "MessagePropsSticker": {
        "title": "Message sticker unique parameters",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "animated": {
                "description": "Optional. For stickers, this field indicates whether the sticker is animated.",
                "type": "boolean"
              }
            }
          },
          {
            "$ref": "#/components/schemas/Size"
          }
        ]
      },
      "Size": {
        "title": "Size",
        "type": "object",
        "properties": {
          "width": {
            "description": "Width of the media in pixels",
            "type": "integer",
            "format": "int32"
          },
          "height": {
            "description": "Height of the media in pixels",
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ActionList": {
        "title": "List of messages",
        "type": "object",
        "properties": {
          "sections": {
            "description": "Section of the message",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "description": "Title of the section",
                  "type": "string"
                },
                "rows": {
                  "description": "Rows of the section",
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "description": "Title of the row",
                        "type": "string"
                      },
                      "description": {
                        "description": "Description of the row",
                        "type": "string"
                      },
                      "id": {
                        "description": "Row ID",
                        "type": "string"
                      }
                    }
                  }
                },
                "product_items": {
                  "description": "Product items of the section",
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "catalog_id": {
                        "description": "Catalog ID",
                        "type": "string"
                      },
                      "product_id": {
                        "description": "Product ID",
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "button": {
            "description": "Button text for list of message",
            "type": "string"
          }
        }
      },
      "MessageContextAD": {
        "title": "Message advertisement",
        "description": "Advertisement message from META-business",
        "type": "object",
        "properties": {
          "advertiser_name": {
            "type": "string",
            "description": "Name of the advertiser"
          },
          "media_type": {
            "$ref": "#/components/schemas/MediaMessageType"
          },
          "preview": {
            "type": "string",
            "description": "Base64 encoded preview. In JPEG format."
          },
          "preview_url": {
            "type": "string",
            "description": "URL of the preview"
          },
          "title": {
            "type": "string",
            "description": "Title of the advertisement"
          },
          "body": {
            "type": "string",
            "description": "Body of the advertisement"
          },
          "media_url": {
            "type": "string",
            "description": "URL of the media"
          },
          "source": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "ID of the advertisement source"
              },
              "type": {
                "type": "string",
                "description": "Type of the advertisement source"
              },
              "url": {
                "type": "string",
                "description": "URL of the advertisement source"
              }
            }
          },
          "auto_reply": {
            "type": "boolean",
            "description": "True if the advertisement contains an auto-reply"
          },
          "attrib": {
            "type": "boolean",
            "description": "True if the advertisement shows the attributions"
          },
          "ctwa": {
            "type": "string",
            "description": "Call to action"
          },
          "ref": {
            "type": "string",
            "description": "Reference"
          }
        }
      },
      "MessageContextConversion": {
        "title": "Message conversion",
        "description": "Message conversion data",
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "Source of the conversion"
          },
          "data": {
            "type": "string",
            "description": "Conversion data in Base64"
          },
          "delay": {
            "type": "integer",
            "description": "Delay in seconds"
          }
        }
      },
      "MessageNativeFlowButton": {
        "title": "Native Flow button",
        "description": "Native Flow button as decoded from InteractiveMessage.NativeFlowMessage",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Native Flow button name, for example galaxy_message"
          },
          "params_json": {
            "type": "string",
            "description": "Original buttonParamsJson value"
          },
          "params": {
            "type": "object",
            "additionalProperties": {},
            "description": "Parsed buttonParamsJson object when it is valid JSON"
          }
        }
      },
      "MessagePropsAudio": {
        "title": "Message audio unique parameters",
        "type": "object",
        "properties": {
          "seconds": {
            "description": "Optional. For audio files, this field indicates the duration of the audio file in seconds.",
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "Emoji": {
        "type": "string",
        "description": "Reaction text"
      },
      "Error": {
        "title": "Error",
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "format": "int32",
            "description": "See the https://whapi.cloud/docs/whatsapp/api/errors for more information.",
            "type": "integer"
          },
          "message": {
            "description": "error message",
            "type": "string"
          },
          "details": {
            "description": "error detail",
            "type": "string"
          },
          "href": {
            "description": "location for error detail",
            "type": "string"
          },
          "support": {
            "description": "support contact",
            "type": "string"
          }
        }
      },
      "Button": {
        "title": "Button",
        "type": "object",
        "properties": {
          "type": {
            "description": "Type of button",
            "type": "string",
            "enum": [
              "quick_reply",
              "call",
              "copy",
              "url"
            ]
          },
          "title": {
            "description": "Button text",
            "type": "string"
          },
          "id": {
            "description": "Button ID",
            "type": "string"
          },
          "copy_code": {
            "description": "Button code for copy type",
            "type": "string"
          },
          "phone_number": {
            "description": "Button phone number for call type",
            "type": "string"
          },
          "url": {
            "description": "Button url for url type",
            "type": "string"
          },
          "merchant_url": {
            "description": "Button merchant_url for url type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "title",
          "id"
        ]
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "bearerFormat": "token",
        "type": "http"
      },
      "tokenAuth": {
        "in": "query",
        "name": "token",
        "type": "apiKey"
      }
    }
  }
}
```