{"componentChunkName":"component---src-templates-docs-js","path":"/whatsapp/receive_notifications/webhook","result":{"data":{"site":{"siteMetadata":{"title":"broadcaster","docsLocation":"https://github.com","docsLocationType":"github","editable":false}},"mdx":{"fields":{"id":"6fd6d898-183a-558a-b15b-e7a553845142","title":"Webhook","slug":"/whatsapp/receive_notifications/webhook"},"body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Webhook\",\n  \"order\": 1\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"blockquote\", null, mdx(\"p\", {\n    parentName: \"blockquote\"\n  }, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Integration summary\")), mdx(\"ul\", {\n    parentName: \"blockquote\"\n  }, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Delivery:\"), \" WhatsApp \\u2192 Concepto M\\xF3vil \\u2192 \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"POST\"), \" to your webhook URL (the one you share with our Operations team), with a JSON body.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Format:\"), \" Meta's \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"value\"), \" object without \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"metadata\"), \" or \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"messaging_product\"), \"; \", mdx(\"a\", {\n    href: \"/whatsapp/receive_notifications/flows\"\n  }, \"Flows notifications\"), \" arrive with the full object (\", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"object\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"entry\"), \").\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Identify the user:\"), \" \", mdx(\"a\", {\n    href: \"/whatsapp/receive_notifications#h-howtoidentifytheuser\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"from\"), \"/\", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"recipient_id\"), \" or, if missing, the BSUID\"), \".\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Expected response:\"), \" HTTP 200 with no body; otherwise the notification is retried with exponential backoff.\"))), mdx(\"p\", null, \"Every notification is sent to your webhook with the same HTTP request. The body depends on the notification type; see the pages in \", mdx(\"a\", {\n    href: \"/whatsapp/receive_notifications\"\n  }, \"Receive notifications\"), \".\"), mdx(\"section\", {\n    \"id\": \"webhook\"\n  }, mdx(\"h2\", {\n    parentName: \"section\"\n  }, \"Webhook\")), mdx(\"section\", {\n    \"id\": \"webhook--request\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"Request\"), mdx(\"p\", {\n    parentName: \"section\"\n  }, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Webhook\"), \" request:\"), mdx(\"table\", {\n    parentName: \"section\"\n  }, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"URL\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Share your Webhook URL with our Operations team.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Method\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"POST\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Type\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"application/json\"))))), mdx(\"section\", {\n    \"id\": \"webhook--headers\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"Headers\"), mdx(\"p\", {\n    parentName: \"section\"\n  }, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Webhook\"), \" headers:\"), mdx(\"table\", {\n    parentName: \"section\"\n  }, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Name\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Description\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Type\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Requirements\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Content-Type\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"application/json; charset=UTF-8\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"String\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Required\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Cache-Control\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"no-cache\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"String\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Required\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Accept\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"*/*\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"String\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Optional\"))))), mdx(\"section\", {\n    \"id\": \"webhook--response\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"Response\"), mdx(\"p\", {\n    parentName: \"section\"\n  }, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Webhook\"), \" response:\"), mdx(\"p\", {\n    parentName: \"section\"\n  }, \"The platform expects your webhook to respond with an HTTP 200 code and no body. Retries only happen on connection errors/timeouts or when the response has one of the HTTP status codes 408, 429, 500, 502, 503 or 504 (limited number of attempts with exponential backoff); other response codes (e.g. 400, 401, 404) are discarded and not retried.\"), mdx(\"blockquote\", {\n    parentName: \"section\"\n  }, mdx(\"p\", {\n    parentName: \"blockquote\"\n  }, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Note:\"), \" \", mdx(\"a\", {\n    href: \"/whatsapp/receive_notifications/flows\"\n  }, \"Flows\"), \" notifications are delivered to the platform webhook configured for the account (not the per-number webhook), with different headers (no \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Cache-Control\"), \", optional \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Authorization: Basic \\u2026\"), \") and are not retried on HTTP error responses (only on I/O errors).\")), mdx(\"br\", null), mdx(\"hr\", {\n    parentName: \"section\"\n  })));\n}\n;\nMDXContent.isMDXComponent = true;","tableOfContents":{"items":[{"url":"#webhook","title":"Webhook","items":[{"url":"#request","title":"Request"},{"url":"#headers","title":"Headers"},{"url":"#response","title":"Response"}]}]},"timeToRead":1,"parent":{"__typename":"File","relativePath":"whatsapp/receive_notifications/webhook.md","fields":{"gitLogLatestAuthorName":"Irais Aguirre","gitLogLatestAuthorEmail":"irais.aguirre@conceptomovil.com","gitLogLatestDate":"6 hours ago"}},"frontmatter":{"metaTitle":null,"showMetadata":null,"editable":null,"showPreviousNext":null,"showToc":null}},"gitBranch":{"name":"20211019-2FACTOR_AUTH"},"gitCommit":{"hash":"9713e1925aeb8cad930f91b6bf05d0b5937b2bb5","date":"2026-11-13 06:39"}},"pageContext":{"id":"6fd6d898-183a-558a-b15b-e7a553845142"}},"staticQueryHashes":["12478684","12478684","2882937274","2882937274","353167761","353167761"]}