{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-getting-started/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["tabs","tab","cards","card"]},"type":"markdown"},"seo":{"title":"Webhook Guide","description":"Bookable is a TMS API gateway API — one integration to access real-time availability and manage bookings across venues on any table management system.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"webhook-guide","__idx":0},"children":["Webhook Guide"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Bookable webhook system delivers real-time notifications to your endpoint when booking events occur — such as new bookings, updates, and cancellations."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"integration-flow","__idx":1},"children":["Integration flow"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Register"]}," your callback URL via the API and receive a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["secretKey"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Store"]}," the secret key securely — you'll use it to verify every incoming request"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Implement"]}," an HTTPS endpoint that accepts POST requests and verifies the HMAC-SHA256 signature"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Respond"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["204 No Content"]}," on success"]}]},{"$$mdtype":"Tag","name":"Mermaid","attributes":{"data-language":"mermaid","diagramSource":"sequenceDiagram\n    participant D as Your App\n    participant BKB as Bookable\n    participant WE as Your Webhook Endpoint\n\n    Note over D,BKB: Phase 1: Registration\n    D->>BKB: POST /webhooks {callbackUrl}\n    BKB->>D: { secretKey }\n    Note over D: Store secretKey securely\n\n    Note over BKB,WE: Phase 2: Event Delivery\n    loop For each booking event\n        BKB->>BKB: Generate HMAC-SHA256 signature\n        BKB->>WE: POST {callbackUrl}<br/>X-API-Key: signature\n        WE->>WE: Verify signature\n        alt Valid\n            WE->>BKB: 204 No Content\n        else Invalid\n            WE->>BKB: 401 Unauthorized\n        end\n    end\n\n    Note over BKB,WE: Failed deliveries retry with exponential backoff\n","diagramHtml":"<div class=\"mermaid\" data-processed=\"true\"><svg id=\"mermaid-1772563140225\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" style=\"max-width: 830.5px;\" viewBox=\"-76.5 -10 830.5 1000\" role=\"graphics-document document\" aria-roledescription=\"sequence\"><g><rect x=\"502\" y=\"914\" fill=\"#eaeaea\" stroke=\"#666\" width=\"202\" height=\"65\" name=\"WE\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\"></rect><text x=\"603\" y=\"946.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\"><tspan x=\"603\" dy=\"0\">Your Webhook Endpoint</tspan></text></g><g><rect x=\"294\" y=\"914\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"BKB\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\"></rect><text x=\"369\" y=\"946.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\"><tspan x=\"369\" dy=\"0\">Bookable</tspan></text></g><g><rect x=\"0\" y=\"914\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"D\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\"></rect><text x=\"75\" y=\"946.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\"><tspan x=\"75\" dy=\"0\">Your App</tspan></text></g><g><line id=\"actor2\" x1=\"603\" y1=\"65\" x2=\"603\" y2=\"914\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"WE\"></line><g id=\"root-2\"><rect x=\"502\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"202\" height=\"65\" name=\"WE\" rx=\"3\" ry=\"3\" class=\"actor actor-top\"></rect><text x=\"603\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\"><tspan x=\"603\" dy=\"0\">Your Webhook Endpoint</tspan></text></g></g><g><line id=\"actor1\" x1=\"369\" y1=\"65\" x2=\"369\" y2=\"914\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"BKB\"></line><g id=\"root-1\"><rect x=\"294\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"BKB\" rx=\"3\" ry=\"3\" class=\"actor actor-top\"></rect><text x=\"369\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\"><tspan x=\"369\" dy=\"0\">Bookable</tspan></text></g></g><g><line id=\"actor0\" x1=\"75\" y1=\"65\" x2=\"75\" y2=\"914\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"D\"></line><g id=\"root-0\"><rect x=\"0\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"D\" rx=\"3\" ry=\"3\" class=\"actor actor-top\"></rect><text x=\"75\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\"><tspan x=\"75\" dy=\"0\">Your App</tspan></text></g></g><style>#mermaid-1772563140225{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-1772563140225 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-1772563140225 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-1772563140225 .error-icon{fill:#552222;}#mermaid-1772563140225 .error-text{fill:#552222;stroke:#552222;}#mermaid-1772563140225 .edge-thickness-normal{stroke-width:1px;}#mermaid-1772563140225 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-1772563140225 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-1772563140225 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-1772563140225 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-1772563140225 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-1772563140225 .marker{fill:#333333;stroke:#333333;}#mermaid-1772563140225 .marker.cross{stroke:#333333;}#mermaid-1772563140225 svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mermaid-1772563140225 p{margin:0;}#mermaid-1772563140225 .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-1772563140225 text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-1772563140225 .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-1772563140225 .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-1772563140225 .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-1772563140225 .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-1772563140225 #arrowhead path{fill:#333;stroke:#333;}#mermaid-1772563140225 .sequenceNumber{fill:white;}#mermaid-1772563140225 #sequencenumber{fill:#333;}#mermaid-1772563140225 #crosshead path{fill:#333;stroke:#333;}#mermaid-1772563140225 .messageText{fill:#333;stroke:none;}#mermaid-1772563140225 .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-1772563140225 .labelText,#mermaid-1772563140225 .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-1772563140225 .loopText,#mermaid-1772563140225 .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-1772563140225 .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-1772563140225 .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-1772563140225 .noteText,#mermaid-1772563140225 .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-1772563140225 .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-1772563140225 .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-1772563140225 .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-1772563140225 .actorPopupMenu{position:absolute;}#mermaid-1772563140225 .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#mermaid-1772563140225 .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-1772563140225 .actor-man circle,#mermaid-1772563140225 line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-1772563140225 :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}</style><g></g><defs><symbol id=\"computer\" width=\"24\" height=\"24\"><path transform=\"scale(.5)\" d=\"M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z\"></path></symbol></defs><defs><symbol id=\"database\" fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path transform=\"scale(.5)\" d=\"M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z\"></path></symbol></defs><defs><symbol id=\"clock\" width=\"24\" height=\"24\"><path transform=\"scale(.5)\" d=\"M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z\"></path></symbol></defs><defs><marker id=\"arrowhead\" refX=\"7.9\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto-start-reverse\"><path d=\"M -1 0 L 10 5 L 0 10 z\"></path></marker></defs><defs><marker id=\"crosshead\" markerWidth=\"15\" markerHeight=\"8\" orient=\"auto\" refX=\"4\" refY=\"4.5\"><path fill=\"none\" stroke=\"#000000\" stroke-width=\"1pt\" d=\"M 1,2 L 6,7 M 6,2 L 1,7\" style=\"stroke-dasharray: 0, 0;\"></path></marker></defs><defs><marker id=\"filled-head\" refX=\"15.5\" refY=\"7\" markerWidth=\"20\" markerHeight=\"28\" orient=\"auto\"><path d=\"M 18,7 L9,13 L14,7 L9,1 Z\"></path></marker></defs><defs><marker id=\"sequencenumber\" refX=\"15\" refY=\"15\" markerWidth=\"60\" markerHeight=\"40\" orient=\"auto\"><circle cx=\"15\" cy=\"15\" r=\"6\"></circle></marker></defs><g><rect x=\"50\" y=\"75\" fill=\"#EDF2AE\" stroke=\"#666\" width=\"344\" height=\"42\" class=\"note\"></rect><text x=\"222\" y=\"80\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"noteText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"222\">Phase 1: Registration</tspan></text></g><g><rect x=\"-26.5\" y=\"235\" fill=\"#EDF2AE\" stroke=\"#666\" width=\"203\" height=\"42\" class=\"note\"></rect><text x=\"75\" y=\"240\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"noteText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"75\">Store secretKey securely</tspan></text></g><g><rect x=\"344\" y=\"287\" fill=\"#EDF2AE\" stroke=\"#666\" width=\"284\" height=\"42\" class=\"note\"></rect><text x=\"486\" y=\"292\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"noteText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"486\">Phase 2: Event Delivery</tspan></text></g><g><line x1=\"358\" y1=\"630\" x2=\"614\" y2=\"630\" class=\"loopLine\"></line><line x1=\"614\" y1=\"630\" x2=\"614\" y2=\"832\" class=\"loopLine\"></line><line x1=\"358\" y1=\"832\" x2=\"614\" y2=\"832\" class=\"loopLine\"></line><line x1=\"358\" y1=\"630\" x2=\"358\" y2=\"832\" class=\"loopLine\"></line><line x1=\"358\" y1=\"736\" x2=\"614\" y2=\"736\" class=\"loopLine\" style=\"stroke-dasharray: 3, 3;\"></line><polygon points=\"358,630 408,630 408,643 399.6,650 358,650\" class=\"labelBox\"></polygon><text x=\"383\" y=\"643\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"labelText\" style=\"font-size: 16px; font-weight: 400;\">alt</text><text x=\"511\" y=\"648\" text-anchor=\"middle\" class=\"loopText\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"511\">[Valid]</tspan></text><text x=\"486\" y=\"754\" text-anchor=\"middle\" class=\"loopText\" style=\"font-size: 16px; font-weight: 400;\">[Invalid]</text></g><g><line x1=\"231\" y1=\"339\" x2=\"689\" y2=\"339\" class=\"loopLine\"></line><line x1=\"689\" y1=\"339\" x2=\"689\" y2=\"842\" class=\"loopLine\"></line><line x1=\"231\" y1=\"842\" x2=\"689\" y2=\"842\" class=\"loopLine\"></line><line x1=\"231\" y1=\"339\" x2=\"231\" y2=\"842\" class=\"loopLine\"></line><polygon points=\"231,339 281,339 281,352 272.6,359 231,359\" class=\"labelBox\"></polygon><text x=\"256\" y=\"352\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"labelText\" style=\"font-size: 16px; font-weight: 400;\">loop</text><text x=\"485\" y=\"357\" text-anchor=\"middle\" class=\"loopText\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"485\">[For each booking event]</tspan></text></g><g><rect x=\"344\" y=\"852\" fill=\"#EDF2AE\" stroke=\"#666\" width=\"284\" height=\"42\" class=\"note\"></rect><text x=\"486\" y=\"857\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"noteText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"486\">Failed deliveries retry with exponential backoff</tspan></text></g><text x=\"221\" y=\"132\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">POST /webhooks {callbackUrl}</text><line x1=\"76\" y1=\"171\" x2=\"365\" y2=\"171\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></line><text x=\"224\" y=\"186\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">{ secretKey }</text><line x1=\"368\" y1=\"225\" x2=\"79\" y2=\"225\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></line><text x=\"370\" y=\"391\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">Generate HMAC-SHA256 signature</text><path d=\"M 370,430 C 430,420 430,460 370,450\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></path><text x=\"485\" y=\"475\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">POST {callbackUrl}</text><text x=\"485\" y=\"497\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">X-API-Key: signature</text><line x1=\"370\" y1=\"536\" x2=\"599\" y2=\"536\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></line><text x=\"604\" y=\"551\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">Verify signature</text><path d=\"M 604,590 C 664,580 664,620 604,610\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></path><text x=\"488\" y=\"682\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">204 No Content</text><line x1=\"602\" y1=\"721\" x2=\"373\" y2=\"721\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></line><text x=\"488\" y=\"783\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">401 Unauthorized</text><line x1=\"602\" y1=\"822\" x2=\"373\" y2=\"822\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></line></svg></div>"},"children":["sequenceDiagram\n    participant D as Your App\n    participant BKB as Bookable\n    participant WE as Your Webhook Endpoint\n\n    Note over D,BKB: Phase 1: Registration\n    D->>BKB: POST /webhooks {callbackUrl}\n    BKB->>D: { secretKey }\n    Note over D: Store secretKey securely\n\n    Note over BKB,WE: Phase 2: Event Delivery\n    loop For each booking event\n        BKB->>BKB: Generate HMAC-SHA256 signature\n        BKB->>WE: POST {callbackUrl}<br/>X-API-Key: signature\n        WE->>WE: Verify signature\n        alt Valid\n            WE->>BKB: 204 No Content\n        else Invalid\n            WE->>BKB: 401 Unauthorized\n        end\n    end\n\n    Note over BKB,WE: Failed deliveries retry with exponential backoff\n"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-1-register-your-webhook","__idx":2},"children":["Step 1: Register your webhook"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"obtain-an-access-token","__idx":3},"children":["Obtain an access token"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/getting-started/auth"},"children":["Authentication"]}," for the full token flow. Quick reference:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST https://auth.bookabletech.com/oauth/token \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"grant_type\": \"client_credentials\",\n    \"client_id\": \"YOUR_CLIENT_ID\",\n    \"client_secret\": \"YOUR_CLIENT_SECRET\",\n    \"audience\": \"api.bookabletech.com\"\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"register-your-callback-url","__idx":4},"children":["Register your callback URL"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"cURL","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST https://api.bookabletech.com/webhooks \\\n  -H \"Authorization: Bearer YOUR_ACCESS_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"callbackUrl\": \"https://your-domain.com/webhooks/booking-notification\"\n  }'\n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"JavaScript","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"const response = await fetch('https://api.bookabletech.com/webhooks', {\n  method: 'POST',\n  headers: {\n    Authorization: `Bearer ${accessToken}`,\n    'Content-Type': 'application/json',\n  },\n  body: JSON.stringify({\n    callbackUrl: 'https://your-domain.com/webhooks/booking-notification',\n  }),\n});\n\nconst { secretKey } = await response.json();\n// Store secretKey securely — you'll need it to verify incoming requests\n","lang":"javascript"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Python","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"import requests\n\nresponse = requests.post(\n    'https://api.bookabletech.com/webhooks',\n    json={'callbackUrl': 'https://your-domain.com/webhooks/booking-notification'},\n    headers={'Authorization': f'Bearer {access_token}'}\n)\nresponse.raise_for_status()\nsecret_key = response.json()['secretKey']\n# Store secret_key securely — you'll need it to verify incoming requests\n","lang":"python"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Java","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"import java.net.http.*;\nimport java.net.URI;\n\nString body = \"\"\"\n    { \"callbackUrl\": \"https://your-domain.com/webhooks/booking-notification\" }\n\"\"\";\n\nHttpRequest request = HttpRequest.newBuilder()\n    .uri(URI.create(\"https://api.bookabletech.com/webhooks\"))\n    .header(\"Authorization\", \"Bearer \" + accessToken)\n    .header(\"Content-Type\", \"application/json\")\n    .POST(HttpRequest.BodyPublishers.ofString(body))\n    .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n// Parse response.body() to extract secretKey and store it securely\n","lang":"java"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"C#","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"csharp","header":{"controls":{"copy":{}}},"source":"var payload = new { callbackUrl = \"https://your-domain.com/webhooks/booking-notification\" };\n\nvar response = await client.PostAsJsonAsync(\"https://api.bookabletech.com/webhooks\", payload);\nresponse.EnsureSuccessStatusCode();\n\nusing var doc = JsonDocument.Parse(await response.Content.ReadAsStringAsync());\nvar secretKey = doc.RootElement.GetProperty(\"secretKey\").GetString();\n// Store secretKey securely — you'll need it to verify incoming requests\n","lang":"csharp"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"secretKey\": \"123e4567-e89b-12d3-a456-426655440000\",\n  \"callbackUrl\": \"https://your-domain.com/webhooks/booking-notification\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Cards","attributes":{},"children":[{"$$mdtype":"Tag","name":"Card","attributes":{"title":"⚠️ Store the secret key securely"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["secretKey"]}," is returned only once at registration. Store it in a secrets manager or environment variable — never hardcode it."]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"update-your-callback-url","__idx":5},"children":["Update your callback URL"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"cURL","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X PUT https://api.bookabletech.com/webhooks \\\n  -H \"Authorization: Bearer YOUR_ACCESS_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"callbackUrl\": \"https://your-new-domain.com/webhooks/booking-notification\"\n  }'\n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"JavaScript","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"await fetch('https://api.bookabletech.com/webhooks', {\n  method: 'PUT',\n  headers: {\n    Authorization: `Bearer ${accessToken}`,\n    'Content-Type': 'application/json',\n  },\n  body: JSON.stringify({\n    callbackUrl: 'https://your-new-domain.com/webhooks/booking-notification',\n  }),\n});\n","lang":"javascript"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Python","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"requests.put(\n    'https://api.bookabletech.com/webhooks',\n    json={'callbackUrl': 'https://your-new-domain.com/webhooks/booking-notification'},\n    headers={'Authorization': f'Bearer {access_token}'}\n).raise_for_status()\n","lang":"python"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Java","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"String updateBody = \"\"\"\n    { \"callbackUrl\": \"https://your-new-domain.com/webhooks/booking-notification\" }\n\"\"\";\n\nHttpRequest request = HttpRequest.newBuilder()\n    .uri(URI.create(\"https://api.bookabletech.com/webhooks\"))\n    .header(\"Authorization\", \"Bearer \" + accessToken)\n    .header(\"Content-Type\", \"application/json\")\n    .PUT(HttpRequest.BodyPublishers.ofString(updateBody))\n    .build();\n\nclient.send(request, HttpResponse.BodyHandlers.ofString());\n","lang":"java"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"C#","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"csharp","header":{"controls":{"copy":{}}},"source":"var payload = new { callbackUrl = \"https://your-new-domain.com/webhooks/booking-notification\" };\nvar request = new HttpRequestMessage(HttpMethod.Put, \"https://api.bookabletech.com/webhooks\");\nrequest.Content = JsonContent.Create(payload);\n(await client.SendAsync(request)).EnsureSuccessStatusCode();\n","lang":"csharp"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"delete-your-webhook","__idx":6},"children":["Delete your webhook"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"cURL","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X DELETE https://api.bookabletech.com/webhooks \\\n  -H \"Authorization: Bearer YOUR_ACCESS_TOKEN\"\n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"JavaScript","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"await fetch('https://api.bookabletech.com/webhooks', {\n  method: 'DELETE',\n  headers: { Authorization: `Bearer ${accessToken}` },\n});\n","lang":"javascript"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Python","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"requests.delete(\n    'https://api.bookabletech.com/webhooks',\n    headers={'Authorization': f'Bearer {access_token}'}\n).raise_for_status()\n","lang":"python"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Java","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"HttpRequest request = HttpRequest.newBuilder()\n    .uri(URI.create(\"https://api.bookabletech.com/webhooks\"))\n    .header(\"Authorization\", \"Bearer \" + accessToken)\n    .DELETE()\n    .build();\n\nclient.send(request, HttpResponse.BodyHandlers.ofString());\n","lang":"java"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"C#","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"csharp","header":{"controls":{"copy":{}}},"source":"(await client.DeleteAsync(\"https://api.bookabletech.com/webhooks\")).EnsureSuccessStatusCode();\n","lang":"csharp"},"children":[]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-2-implement-your-webhook-endpoint","__idx":7},"children":["Step 2: Implement your webhook endpoint"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your endpoint must accept ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," requests, verify the HMAC-SHA256 signature, process the event, and respond with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["204 No Content"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"supported-event-types","__idx":8},"children":["Supported event types"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Event"},"children":["Event"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["booking.created"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A new booking was created"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["booking.updated"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["An existing booking was modified"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["booking.cancelled"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A booking was cancelled"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"full-endpoint-implementation","__idx":9},"children":["Full endpoint implementation"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"JavaScript","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"// Node.js / Express\nconst express = require('express');\nconst crypto = require('crypto');\n\nconst app = express();\napp.use(express.json());\n\nconst WEBHOOK_SECRET = process.env.BOOKABLE_WEBHOOK_SECRET;\n\napp.post('/webhooks/booking-notification', (req, res) => {\n  try {\n    if (!verifySignature(req.headers['x-api-key'], req.body, WEBHOOK_SECRET)) {\n      return res.status(401).json({ success: false, error: 'unauthorized' });\n    }\n\n    const { eventType, timestamp, booking } = req.body;\n\n    if (!eventType || !timestamp) {\n      return res.status(400).json({ success: false, error: 'validation_error' });\n    }\n\n    switch (eventType) {\n      case 'booking.created':\n      case 'booking.updated':\n      case 'booking.cancelled':\n        console.log(`Event: ${eventType}, booking ID: ${booking[0]?.id}`);\n        // Handle event...\n        break;\n      default:\n        console.warn(`Unknown event type: ${eventType}`);\n    }\n\n    res.status(204).end();\n\n  } catch (error) {\n    console.error('Webhook error:', error);\n    res.status(500).json({ success: false, error: 'internal_error' });\n  }\n});\n\nfunction verifySignature(signature, body, secret) {\n  if (!signature) return false;\n  const expected = crypto\n    .createHmac('sha256', secret)\n    .update(JSON.stringify(body))\n    .digest('hex');\n  return crypto.timingSafeEqual(\n    Buffer.from(signature, 'hex'),\n    Buffer.from(expected, 'hex')\n  );\n}\n","lang":"javascript"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Python","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"# Python / Flask\nfrom flask import Flask, request, jsonify\nimport hashlib\nimport hmac\nimport json\nimport os\n\napp = Flask(__name__)\n\nWEBHOOK_SECRET = os.environ['BOOKABLE_WEBHOOK_SECRET']\n\n@app.route('/webhooks/booking-notification', methods=['POST'])\ndef handle_booking_notification():\n    try:\n        if not verify_signature(request, WEBHOOK_SECRET):\n            return jsonify({'success': False, 'error': 'unauthorized'}), 401\n\n        data = request.get_json()\n        event_type = data.get('eventType')\n        timestamp = data.get('timestamp')\n        booking = data.get('booking')\n\n        if not event_type or not timestamp:\n            return jsonify({'success': False, 'error': 'validation_error'}), 400\n\n        if event_type in ('booking.created', 'booking.updated', 'booking.cancelled'):\n            print(f\"Event: {event_type}, booking ID: {booking[0]['id'] if booking else 'unknown'}\")\n            # Handle event...\n        else:\n            print(f\"Unknown event type: {event_type}\")\n\n        return '', 204\n\n    except Exception as e:\n        print(f\"Webhook error: {e}\")\n        return jsonify({'success': False, 'error': 'internal_error'}), 500\n\n\ndef verify_signature(req, secret):\n    signature = req.headers.get('X-API-Key')\n    if not signature:\n        return False\n    payload = json.dumps(req.get_json(), separators=(',', ':'))\n    expected = hmac.new(\n        secret.encode('utf-8'),\n        payload.encode('utf-8'),\n        hashlib.sha256\n    ).hexdigest()\n    return hmac.compare_digest(signature, expected)\n","lang":"python"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Java","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"// Spring Boot\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.web.bind.annotation.*;\nimport javax.crypto.Mac;\nimport javax.crypto.spec.SecretKeySpec;\nimport java.util.HexFormat;\nimport java.util.Map;\n\n@RestController\npublic class WebhookController {\n\n    private final String webhookSecret = System.getenv(\"BOOKABLE_WEBHOOK_SECRET\");\n\n    @PostMapping(\"/webhooks/booking-notification\")\n    public ResponseEntity<Void> handleWebhook(\n            @RequestHeader(\"X-API-Key\") String signature,\n            @RequestBody String rawBody,\n            @RequestBody Map<String, Object> body) {\n\n        if (!verifySignature(signature, rawBody, webhookSecret)) {\n            return ResponseEntity.status(401).build();\n        }\n\n        String eventType = (String) body.get(\"eventType\");\n        if (eventType == null) {\n            return ResponseEntity.badRequest().build();\n        }\n\n        switch (eventType) {\n            case \"booking.created\":\n            case \"booking.updated\":\n            case \"booking.cancelled\":\n                System.out.println(\"Event: \" + eventType);\n                // Handle event...\n                break;\n            default:\n                System.out.println(\"Unknown event type: \" + eventType);\n        }\n\n        return ResponseEntity.noContent().build();\n    }\n\n    private boolean verifySignature(String signature, String payload, String secret) {\n        try {\n            Mac mac = Mac.getInstance(\"HmacSHA256\");\n            mac.init(new SecretKeySpec(secret.getBytes(), \"HmacSHA256\"));\n            String expected = HexFormat.of().formatHex(mac.doFinal(payload.getBytes()));\n            return expected.equals(signature);\n        } catch (Exception e) {\n            return false;\n        }\n    }\n}\n","lang":"java"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"C#","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"csharp","header":{"controls":{"copy":{}}},"source":"// ASP.NET Core — minimal API\nusing System.Security.Cryptography;\nusing System.Text;\nusing System.Text.Json;\n\nvar builder = WebApplication.CreateBuilder(args);\nvar app = builder.Build();\n\nvar webhookSecret = Environment.GetEnvironmentVariable(\"BOOKABLE_WEBHOOK_SECRET\")!;\n\napp.MapPost(\"/webhooks/booking-notification\", async (HttpContext ctx) =>\n{\n    ctx.Request.EnableBuffering();\n    using var reader = new StreamReader(ctx.Request.Body, leaveOpen: true);\n    var rawBody = await reader.ReadToEndAsync();\n    ctx.Request.Body.Position = 0;\n\n    var signature = ctx.Request.Headers[\"X-API-Key\"].ToString();\n    if (!VerifySignature(signature, rawBody, webhookSecret))\n        return Results.Unauthorized();\n\n    using var doc = JsonDocument.Parse(rawBody);\n    var eventType = doc.RootElement.GetProperty(\"eventType\").GetString();\n\n    switch (eventType)\n    {\n        case \"booking.created\":\n        case \"booking.updated\":\n        case \"booking.cancelled\":\n            Console.WriteLine($\"Event: {eventType}\");\n            // Handle event...\n            break;\n        default:\n            Console.WriteLine($\"Unknown event type: {eventType}\");\n            break;\n    }\n\n    return Results.NoContent();\n});\n\nstatic bool VerifySignature(string signature, string payload, string secret)\n{\n    var keyBytes = Encoding.UTF8.GetBytes(secret);\n    var payloadBytes = Encoding.UTF8.GetBytes(payload);\n    var expected = Convert.ToHexString(\n        HMACSHA256.HashData(keyBytes, payloadBytes)\n    ).ToLower();\n    return CryptographicOperations.FixedTimeEquals(\n        Encoding.UTF8.GetBytes(expected),\n        Encoding.UTF8.GetBytes(signature)\n    );\n}\n\napp.Run();\n","lang":"csharp"},"children":[]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"webhook-payload","__idx":10},"children":["Webhook payload"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"eventType\": \"booking.created\",\n  \"timestamp\": \"2025-06-17T10:30:00Z\",\n  \"booking\": [\n    {\n      \"id\": \"12345678-1234-1234-1234-123456789012\",\n      \"venueId\": \"87654321-4321-4321-4321-210987654321\",\n      \"date\": \"2025-06-25\",\n      \"time\": \"19:30:00\",\n      \"partySize\": 4,\n      \"status\": \"confirmed\",\n      \"reference\": \"REF-20250617-001\",\n      \"firstName\": \"John\",\n      \"lastName\": \"Doe\",\n      \"email\": \"john.doe@example.com\",\n      \"phone\": \"+1234567890\",\n      \"duration\": 120,\n      \"notes\": \"Window table preferred\",\n      \"createdDate\": \"2025-06-17T09:15:00Z\",\n      \"lastUpdate\": \"2025-06-17T10:30:00Z\"\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"booking-status-values","__idx":11},"children":["Booking status values"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Status"},"children":["Status"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pending"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Awaiting operator confirmation"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["confirmed"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Booking confirmed"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cancelled"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Booking cancelled"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["completed"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Booking completed"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["no_show"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Guest did not show up"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"signature-verification","__idx":12},"children":["Signature verification"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Every webhook request includes an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["X-API-Key"]}," header containing an HMAC-SHA256 hex digest of the raw request body, signed with your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["secretKey"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Verification steps:"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Read the raw request body as a string (before any JSON parsing)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Compute ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HMAC-SHA256(secretKey, rawBody)"]}," and hex-encode it"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Compare the result to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["X-API-Key"]}," header using a timing-safe comparison"]}]},{"$$mdtype":"Tag","name":"Cards","attributes":{},"children":[{"$$mdtype":"Tag","name":"Card","attributes":{"title":"⚠️ Use the raw body"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Always compute the signature on the raw request body string, not a re-serialised version of the parsed JSON — key ordering and whitespace must be identical."]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"error-handling--retries","__idx":13},"children":["Error handling & retries"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your endpoint should return appropriate HTTP status codes:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Code"},"children":["Code"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Meaning"},"children":["Meaning"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["204"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Success — event processed"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bad request — invalid payload"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unauthorized — signature invalid"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["500"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Server error — processing failed"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Failed deliveries are retried with exponential backoff: 1, 2, 4, 8, 16, and 32 minutes. After 6 attempts the event is dropped and logged for review."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"best-practices","__idx":14},"children":["Best practices"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["HTTPS only"]}," — never register an HTTP callback URL"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Verify every request"]}," — always validate the signature before processing"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Respond quickly"]}," — return ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["204"]}," immediately and process the event asynchronously if needed"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Handle duplicates"]}," — retries can deliver the same event more than once; make your handler idempotent"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Log everything"]}," — store raw payloads for debugging and auditing"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"troubleshooting","__idx":15},"children":["Troubleshooting"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Symptom"},"children":["Symptom"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Check"},"children":["Check"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Not receiving events"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Is your callback URL publicly reachable over HTTPS? Does it return ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["204"]},"?"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Signature mismatch"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Are you hashing the raw body before JSON parsing? Is the stored secret correct?"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Auth failures"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Are your OAuth2 credentials valid? Is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audience"]}," set to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["api.bookabletech.com"]},"?"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Support:"]}," hello@bookabletech.com"]}]},"headings":[{"value":"Webhook Guide","id":"webhook-guide","depth":1},{"value":"Integration flow","id":"integration-flow","depth":2},{"value":"Step 1: Register your webhook","id":"step-1-register-your-webhook","depth":2},{"value":"Obtain an access token","id":"obtain-an-access-token","depth":3},{"value":"Register your callback URL","id":"register-your-callback-url","depth":3},{"value":"Update your callback URL","id":"update-your-callback-url","depth":3},{"value":"Delete your webhook","id":"delete-your-webhook","depth":3},{"value":"Step 2: Implement your webhook endpoint","id":"step-2-implement-your-webhook-endpoint","depth":2},{"value":"Supported event types","id":"supported-event-types","depth":3},{"value":"Full endpoint implementation","id":"full-endpoint-implementation","depth":3},{"value":"Webhook payload","id":"webhook-payload","depth":2},{"value":"Booking status values","id":"booking-status-values","depth":3},{"value":"Signature verification","id":"signature-verification","depth":2},{"value":"Error handling & retries","id":"error-handling--retries","depth":2},{"value":"Best practices","id":"best-practices","depth":2},{"value":"Troubleshooting","id":"troubleshooting","depth":2}],"frontmatter":{"seo":{"title":"Webhook Guide"}},"lastModified":"2026-03-13T09:43:55.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/getting-started/webhook","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}