{"componentChunkName":"component---src-templates-docs-js","path":"/whatsapp/authentication_token/response","result":{"data":{"site":{"siteMetadata":{"title":"broadcaster","docsLocation":"https://github.com","docsLocationType":"github","editable":false}},"mdx":{"fields":{"id":"e4aa3e0c-0019-5f80-9586-dc70d808320c","title":"Response","slug":"/whatsapp/authentication_token/response"},"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\": \"Response\",\n  \"order\": 3\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(\"p\", null, \"Both the Messaging and Admin token endpoints return the same response: the authentication token on success, or a code and detail when an error occurs.\"), mdx(\"table\", null, 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(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"token\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Authentication token. Send it as \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"Authorization: Bearer <token>\"), \" in your requests.\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"String\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"code\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Response code if an error occurs. For details, see \", mdx(\"a\", {\n    href: \"/whatsapp/error_codes\"\n  }, \"Error codes\"), \".\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Number\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"detail\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Description of the response code received.\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"String\")))), mdx(\"blockquote\", null, mdx(\"p\", {\n    parentName: \"blockquote\"\n  }, \"HTTP 200 on success, HTTP 401 on authentication errors.\")), mdx(\"p\", null, \"Token errors use codes 3000\\u20133015. See \", mdx(\"a\", {\n    href: \"/whatsapp/error_codes\"\n  }, \"Error codes\"), \".\"), mdx(\"section\", {\n    \"id\": \"successfulresponse(http200)\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"Successful response (HTTP 200)\"), mdx(\"pre\", {\n    parentName: \"section\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-json\"\n  }, \"{\\n    \\\"token\\\": \\\"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIxMDEiLCJhdWQiOiJjb25jZXB0b21vdmlsLXdoYXRzYXBwLWFwaSIsIm5iZiI6MTYxNzAzMDUxNCwicmVxdWVzdF9oYXNoIjoiMjUzNmQ5MTdiM2MwMDIxM2U3NjVhMGI4NjczNTRjMzQ2YjNiNDg0M2Q5M2NmZDJkNWFmOTNjY2MwYTcyNmRlNTZiYTQ2YmIzZDRjZTJhYTZhOTkwNWNlYmU4MDBiNzg4MjYwOGI4OWM1YTU2OTU2ZDk2N2NjMDk5MDMyNmQxNzIiLCJpc3MiOiJjb25jZXB0b21vdmlsLmNvbSIsImV4cCI6MTYxNzExNjkxNCwiaWF0IjoxNjE3MDMwNTE0LCJqdGkiOiI5MjQ5OTZkMi04ZDIyLTQ5YjUtOGZiYi0zM2IxOWMxODc1ZjIifQ.pHNyDoksB9ZHUJQb9vyhhNO13D5QTU8LIDybvU0278uWDD8H88WLWkFKAUqgEUflAuBMgfCCzyF19o9ZZkh7mjqV3XMOnQJU8RnoHbIHG6WC4-ElfFtWCYOhhAfS_Yn5SfOAeD_LR_DW2jOEMc7bQoaTNBPHj6eyjuRto3A5IU4gx7yxsWWv2g7bSuzSmIFVb0SIkmL5v0pa07We3aEFFJzLcA0bLiMZn9MJfLlbkPf1YIq2THBuzs7ac5PXtiVVyDpLmHZ56-0c_zADEkZvGWEusCoyfMX9RDp_NbD1WmFivoGCEcqgRAMNPFUSfOA5UamJ07BaKoK2p4FpByKw\\\"\\n}\\n\"))), mdx(\"section\", {\n    \"id\": \"errorresponse(http401)\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"Error response (HTTP 401)\"), mdx(\"pre\", {\n    parentName: \"section\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-json\"\n  }, \"{\\n    \\\"code\\\": 3003,\\n    \\\"detail\\\": \\\"Api-Key invalid\\\"\\n}\\n\"))));\n}\n;\nMDXContent.isMDXComponent = true;","tableOfContents":{"items":[{"url":"#successful-response-http-200","title":"Successful response (HTTP 200)"},{"url":"#error-response-http-401","title":"Error response (HTTP 401)"}]},"timeToRead":1,"parent":{"__typename":"File","relativePath":"whatsapp/authentication_token/response.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":"e4aa3e0c-0019-5f80-9586-dc70d808320c"}},"staticQueryHashes":["12478684","12478684","2882937274","2882937274","353167761","353167761"]}