API Reference

Message Create Event

Description

This event is triggered when a message is created (sent).

Webhook Request

HTTP Method

POST

Request Headers

NameValue
Content-Typeapplication/json
User-AgentWaAPI Webhook User Agent

Request Body

{
  "event": "message_create",
  "instanceId": "1",
  "data": {
    "message": {
      "_data": {
        "id": {
          "fromMe": false,
          "remote": "[email protected]",
          "id": "AAABBBCCCDDDEEEFFF111222333",
          "_serialized": "[email protected]_AAABBBCCCDDDEEEFFF111222333"
        },
        "viewed": false,
        "body": "https://www.google.com\n\nsample message",
        "type": "chat",
        "t": 1738927668,
        "notifyName": "test user",
        "from": "[email protected]",
        "to": "[email protected]",
        "ack": 1,
        "invis": false,
        "isNewMsg": true,
        "star": false,
        "kicNotified": false,
        "recvFresh": true,
        "isFromTemplate": false,
        "pollInvalidated": false,
        "isSentCagPollCreation": false,
        "latestEditMsgKey": null,
        "latestEditSenderTimestampMs": null,
        "mentionedJidList": [],
        "groupMentions": [],
        "isEventCanceled": false,
        "eventInvalidated": false,
        "isVcardOverMmsDocument": false,
        "isForwarded": false,
        "hasReaction": false,
        "viewMode": "VISIBLE",
        "messageSecret": {
          "0": 130,
          "1": 228,
          "2": 89,
          "3": 86,
          "4": 191,
          "5": 106,
          "6": 101,
          "7": 139,
          "8": 147,
          "9": 50,
          "10": 209,
          "11": 65,
          "12": 118,
          "13": 53,
          "14": 121,
          "15": 8,
          "16": 189,
          "17": 4,
          "18": 96,
          "19": 253,
          "20": 71,
          "21": 224,
          "22": 49,
          "23": 209,
          "24": 101,
          "25": 37,
          "26": 88,
          "27": 122,
          "28": 91,
          "29": 239,
          "30": 47,
          "31": 244
        },
        "productHeaderImageRejected": false,
        "lastPlaybackProgress": 0,
        "isDynamicReplyButtonsMsg": false,
        "isCarouselCard": false,
        "parentMsgId": null,
        "callSilenceReason": null,
        "isVideoCall": false,
        "isMdHistoryMsg": false,
        "stickerSentTs": 0,
        "isAvatar": false,
        "lastUpdateFromServerTs": 0,
        "invokedBotWid": null,
        "bizBotType": null,
        "botResponseTargetId": null,
        "botPluginType": null,
        "botPluginReferenceIndex": null,
        "botPluginSearchProvider": null,
        "botPluginSearchUrl": null,
        "botPluginSearchQuery": null,
        "botPluginMaybeParent": false,
        "botReelPluginThumbnailCdnUrl": null,
        "botMsgBodyType": null,
        "requiresDirectConnection": null,
        "bizContentPlaceholderType": null,
        "hostedBizEncStateMismatch": false,
        "senderOrRecipientAccountTypeHosted": false,
        "placeholderCreatedWhenAccountIsHosted": false,
        "links": [
          {
            "link": "https://www.google.com",
            "isSuspicious": false
          }
        ]
      },
      "id": {
        "fromMe": false,
        "remote": "[email protected]",
        "id": "AAABBBCCCDDDEEEFFF111222333",
        "_serialized": "[email protected]_AAABBBCCCDDDEEEFFF111222333"
      },
      "ack": 1,
      "hasMedia": false,
      "body": "https://www.google.com\n\nsample message",
      "type": "chat",
      "timestamp": 1738927668,
      "from": "[email protected]",
      "to": "[email protected]",
      "deviceType": "android",
      "isForwarded": false,
      "forwardingScore": 0,
      "isStatus": false,
      "isStarred": false,
      "fromMe": false,
      "hasQuotedMsg": false,
      "hasReaction": false,
      "vCards": [],
      "mentionedIds": [],
      "groupMentions": [],
      "isGif": false,
      "links": [
        {
          "link": "https://www.google.com",
          "isSuspicious": false
        }
      ]
    },
    "media": null
  }
}