Verify Bunny Stream encoding-status webhooks with your library’s Read-Only API key and update MP4 fallback resolutions.
Bunny Stream can notify your app when a video’s encoding status changes. Bunny signs each webhook with your library’s Read-Only API key, and the plugin verifies that signature — so set webhook.secret to that key:
stream: { // ... webhook: { secret: process.env.BUNNY_STREAM_READONLY_API_KEY!, // your Stream library's Read-Only API key },}
Set the webhook URL in your Bunny Stream library settings to the plain endpoint (no query secret):
Each request carries an X-BunnyStream-Signature header — a lowercase-hex HMAC-SHA256 of the exact raw request body, keyed by the library’s Read-Only API key — alongside X-BunnyStream-Signature-Version (v1) and X-BunnyStream-Signature-Algorithm (hmac-sha256). The plugin requires the version and algorithm to match before it verifies anything, finds the library by the payload’s VideoLibraryId, recomputes the HMAC with that library’s webhook.secret, and rejects the request (401) on a mismatch; a payload naming an unconfigured library is rejected (403).
webhook.secret can also be set on a per-collection stream library. Because the signature is verified with each library’s own Read-Only API key, a webhook can only be authenticated by the key of the library it names — libraries in different collections can point their Bunny webhook at the same endpoint and stay isolated per library.
When a video finishes encoding and mp4Fallback is enabled, the webhook looks up the matching document by bunnyData.stream.videoId and updates bunnyData.stream.resolutions with the available MP4 renditions. Until this webhook fires, resolutions stays empty even if mp4Fallback is on — encoding happens asynchronously on Bunny’s side.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Bunny.net Storage for Payload CMS","description":"Bunny.net storage adapter for Payload","colors":{"primary":"#ef6126","light":"#f49067","dark":"#be420e"},"logo":{"light":"https://mintcdn.com/payload-storage-bunny/fAicIcOW-53Dy2QI/logo.svg?fit=max\u0026auto=format\u0026n=fAicIcOW-53Dy2QI\u0026q=85\u0026s=fd70722cbd3ccf2782012c33367cf1a2","dark":"https://mintcdn.com/payload-storage-bunny/fAicIcOW-53Dy2QI/logo.svg?fit=max\u0026auto=format\u0026n=fAicIcOW-53Dy2QI\u0026q=85\u0026s=fd70722cbd3ccf2782012c33367cf1a2"},"favicon":"https://mintcdn.com/payload-storage-bunny/QZzvvP4NI4oNDeN_/favicon.svg?fit=max\u0026auto=format\u0026n=QZzvvP4NI4oNDeN_\u0026q=85\u0026s=1b19c50bfb85920869e2c1f04ced1d09","navbar":{"links":[{"href":"https://github.com/maximseshuk/payload-storage-bunny/releases","label":"Releases"},{"href":"https://ko-fi.com/seshuk","label":"Donate"},{"href":"https://bunny.net?ref=fndfoymy0j","label":"bunny.net"}],"primary":{"type":"github","href":"https://github.com/maximseshuk/payload-storage-bunny"}},"footer":{"socials":{"github":"https://github.com/maximseshuk/payload-storage-bunny"}},"fonts":{"family":"Geist"},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity","grok","aistudio","devin","windsurf","mcp","add-mcp","cursor","vscode","devin-mcp","download-pdf","download-spec"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"payload-storage-bunny","hasAudioNarration":false,"actualSubdomain":"payload-storage-bunny","customDomains":["payload-storage-bunny.seshuk.im"],"gitSource":{"type":"github","owner":"maximseshuk","repo":"payload-storage-bunny","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10f6dc9ffae5051c419ce5"},"feedback":{"agentFeedback":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae055dc7b2b510f51833179","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Documentation","count":54},{"language":"default","tag":"Configuration","count":25},{"language":"default","tag":"API reference","count":14},{"language":"default","tag":"Guides","count":10},{"language":"default","tag":"Stream","count":6},{"language":"default","tag":"CLI","count":5},{"language":"default","tag":"Storage","count":4}],"searchSettings":{"maxResults":10}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":"body:has(.sb-home) #navbar,body:has(.sb-home) #navbar-transition,body:has(.sb-home) #topbar{display:none!important}body:has(.sb-home) #content-area,body:has(.sb-home) :has(>#content-area),body:has(.sb-home) main{padding-top:0!important;margin-top:0!important}.sb-home{--sb-bg: rgb(var(--background-light));--sb-text: rgb(var(--gray-900));--sb-muted: rgb(var(--gray-700));--sb-line: rgb(var(--gray-950) / 0.1);--sb-cross: rgb(var(--gray-950) / 0.35);--sb-l: linear-gradient(transparent, var(--sb-line) 96px, var(--sb-line) calc(100% - 64px), transparent);display:grid;max-width:92rem;margin:0 auto;padding:0 48px;background:var(--sb-l) 0 100% / 1px calc(100% - 80px),\n var(--sb-l) calc(25% + 0.25px) 100% / 1px calc(100% - 160px),\n var(--sb-l) calc(50% + 0.5px) 100% / 1px calc(100% - 200px),\n var(--sb-l) calc(75% + 0.75px) 100% / 1px calc(100% - 160px),\n var(--sb-l) 100% 100% / 1px calc(100% - 80px);background-repeat:no-repeat;background-origin:content-box;background-clip:content-box}.dark .sb-home{--sb-bg: rgb(var(--background-dark));--sb-text: rgb(var(--gray-200));--sb-muted: rgb(var(--gray-400));--sb-line: rgb(255 255 255 / 0.1);--sb-cross: rgb(255 255 255 / 0.35)}.sb-hero{position:relative;display:grid;grid-template-columns:repeat(4, 1fr);grid-template-rows:1fr auto;padding:232px 0 0;margin-bottom:96px}.sb-hero::before,.sb-hero::after{content:'';position:absolute;bottom:-5px;left:calc(25% - 4px);width:9px;height:9px;background:linear-gradient(var(--sb-cross) 0 0) center / 9px 1px no-repeat,\n linear-gradient(var(--sb-cross) 0 0) center / 1px 9px no-repeat}.sb-hero::after{left:calc(75% - 4px)}.sb-copy{grid-column:1 / 3;align-self:end;padding:24px 24px 40px;box-shadow:inset 1px 0 var(--sb-line);background:var(--sb-bg)}.sb-title{margin:0;font-size:clamp(2.5rem, 1.5rem + 2.8vw, 4rem);font-weight:600;line-height:1.05;letter-spacing:-0.035em;color:var(--sb-text);text-wrap:balance}.sb-title span{color:rgb(var(--primary))}.sb-sub{max-width:34rem;margin:20px 0 0;font-size:1.125rem;line-height:1.75rem;color:var(--sb-muted);text-wrap:pretty}.sb-actions{grid-column:1 / 3;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--sb-line);box-shadow:inset 1px 0 var(--sb-line);background:var(--sb-bg)}.sb-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;height:64px;padding:0 24px;border:0;border-bottom:1px solid var(--sb-line);font:inherit;font-weight:500;color:var(--sb-text);text-align:left;text-decoration:none;background:none;cursor:pointer;transition:background-color 0.15s ease}.sb-row:hover{background:color-mix(in srgb, var(--sb-text) 4%, transparent)}.sb-row:focus-visible{outline:2px solid rgb(var(--primary));outline-offset:-2px}.sb-actions a+a{border-left:1px solid var(--sb-line)}.sb-row-install{grid-column:1 / -1}.sb-row code{overflow:hidden;padding:0;border:0;font-family:var(--font-paper-mono), ui-monospace, monospace;font-size:0.875rem;font-weight:400;color:inherit;white-space:nowrap;text-overflow:ellipsis;background:none}.sb-row code span{color:var(--sb-muted)}.sb-row-icon{flex:none;width:16px;height:16px;color:var(--sb-muted);transition:color 0.15s ease,\n transform 0.15s ease}.sb-row-icon svg{display:block;width:100%;height:100%}.sb-row:hover .sb-row-icon{color:rgb(var(--primary))}a.sb-row:hover .sb-row-icon{transform:translate(2px, -2px)}.sb-mark{grid-column:3 / 5;grid-row:1 / 3;display:grid;place-items:center;border:1px solid var(--sb-line);background:var(--sb-bg)}.sb-mark img{display:block;width:min(64%, 320px);height:auto;margin:0}.sb-mark [data-rmiz],.sb-mark [data-rmiz] *,.sb-mark img{pointer-events:none}@media (max-width: 1199px){.sb-home{background:var(--sb-l) 0 100% / 1px calc(100% - 48px),\n var(--sb-l) calc(50% + 0.5px) 100% / 1px calc(100% - 96px),\n var(--sb-l) 100% 100% / 1px calc(100% - 48px);background-repeat:no-repeat;background-origin:content-box;background-clip:content-box}.sb-hero{grid-template-columns:repeat(2, 1fr);padding-top:128px}.sb-hero::before{left:calc(50% - 4px)}.sb-hero::after{display:none}.sb-copy,.sb-actions{grid-column:1 / 2}.sb-actions{grid-template-columns:1fr}.sb-actions a+a{border-left:0}.sb-mark{grid-column:2 / 3}}@media (max-width: 1023px){.sb-home{padding:0 16px}.sb-hero{grid-template-rows:auto;padding:96px 0 0;margin-bottom:64px}.sb-copy,.sb-actions,.sb-mark{grid-column:1 / -1;grid-row:auto}.sb-copy,.sb-actions{box-shadow:inset 1px 0 var(--sb-line),\n inset -1px 0 var(--sb-line)}.sb-copy{padding:32px 20px}.sb-row{padding:0 20px}.sb-mark{order:-1;height:240px;border-bottom:0}.sb-mark img{width:auto;height:168px}}@media (max-width: 767px){.sb-row code{font-size:0.7rem}.sb-row code span{display:none}.sb-home{background:var(--sb-l) 0 100% / 1px calc(100% - 32px),\n var(--sb-l) 100% 100% / 1px calc(100% - 32px);background-repeat:no-repeat;background-origin:content-box;background-clip:content-box}.sb-hero{padding-top:64px}.sb-hero::before{left:-4px}.sb-hero::after{display:block;left:calc(100% - 5px)}}.sb-bunny-card{display:block;margin-bottom:24px;border-radius:12px;overflow:hidden}.sb-bunny-card img{display:block;width:100%;height:auto}.sb-bunny-card-dark,.dark .sb-bunny-card-light{display:none!important}.dark .sb-bunny-card-dark{display:block!important}"}]}
{"page":{"pagePath":"configuration/stream/webhooks","slug":"/configuration/stream/webhooks","pageMetadata":{"title":"Webhooks","description":"Verify Bunny Stream encoding-status webhooks with your library's Read-Only API key and update MP4 fallback resolutions.","href":"/configuration/stream/webhooks"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Verify Bunny Stream encoding-status webhooks with your library’s Read-Only API key and update MP4 fallback resolutions.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Info,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Bunny Stream can notify your app when a video’s encoding status changes. Bunny `,_jsx(_components.strong,{children:`signs`}),` each webhook with your library’s `,_jsx(_components.strong,{children:`Read-Only API key`}),`, and the plugin verifies that signature — so set `,_jsx(_components.code,{children:`webhook.secret`}),` to that key:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`stream`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` webhook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` secret`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`BUNNY_STREAM_READONLY_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// your Stream library's Read-Only API key`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Set the webhook URL in your Bunny Stream library settings to the plain endpoint (no query secret):`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://your-site.com/api/storage-bunny/stream/webhook`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Each request carries an `,_jsx(_components.code,{children:`X-BunnyStream-Signature`}),` header — a lowercase-hex HMAC-SHA256 of the exact raw request body, keyed by the library’s Read-Only API key — alongside `,_jsx(_components.code,{children:`X-BunnyStream-Signature-Version`}),` (`,_jsx(_components.code,{children:`v1`}),`) and `,_jsx(_components.code,{children:`X-BunnyStream-Signature-Algorithm`}),` (`,_jsx(_components.code,{children:`hmac-sha256`}),`). The plugin requires the version and algorithm to match before it verifies anything, finds the library by the payload’s `,_jsx(_components.code,{children:`VideoLibraryId`}),`, recomputes the HMAC with that library’s `,_jsx(_components.code,{children:`webhook.secret`}),`, and rejects the request (`,_jsx(_components.code,{children:`401`}),`) on a mismatch; a payload naming an unconfigured library is rejected (`,_jsx(_components.code,{children:`403`}),`).`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`webhook.secret`}),` can also be set on a per-collection stream library. Because the signature is verified with each library’s own Read-Only API key, a webhook can only be authenticated by the key of the library it names — libraries in different collections can point their Bunny webhook at the same endpoint and stay isolated per library.`]})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`When a video finishes encoding and `,_jsx(_components.code,{children:`mp4Fallback`}),` is enabled, the webhook looks up the matching document by `,_jsx(_components.code,{children:`bunnyData.stream.videoId`}),` and updates `,_jsx(_components.code,{children:`bunnyData.stream.resolutions`}),` with the available MP4 renditions. Until this webhook fires, `,_jsx(_components.code,{children:`resolutions`}),` stays empty even if `,_jsx(_components.code,{children:`mp4Fallback`}),` is on — encoding happens asynchronously on Bunny’s side.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Webhooks","description":"Verify Bunny Stream encoding-status webhooks with your library's Read-Only API key and update MP4 fallback resolutions.","href":"/configuration/stream/webhooks"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/payload-storage-bunny/bd1bb114550c4e7f/bunny-toc.js"],"subdomain":"payload-storage-bunny","siteName":"Bunny.net Storage for Payload CMS","title":"Webhooks - Bunny.net Storage for Payload CMS","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v3":{"href":"/configuration/stream/webhooks","matchLevel":0},"v4":{"href":"/v4/configuration/stream/webhooks","matchLevel":1}},"firstHrefInLanguage":{}},"lastModified":"2026-10-15T07:25:11.094Z","originalFileLocation":"configuration/stream/webhooks.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Verify Bunny Stream encoding-status webhooks with your library\u0026#x27;s Read-Only API key and update MP4 fallback resolutions.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Bunny.net Storage for Payload CMS\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/payload-storage-bunny/kOlEVKJ6LOdQAYNc/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/payload-storage-bunny/kOlEVKJ6LOdQAYNc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/payload-storage-bunny/kOlEVKJ6LOdQAYNc/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/payload-storage-bunny/kOlEVKJ6LOdQAYNc/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/payload-storage-bunny/kOlEVKJ6LOdQAYNc/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/payload-storage-bunny/kOlEVKJ6LOdQAYNc/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/payload-storage-bunny/kOlEVKJ6LOdQAYNc/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/payload-storage-bunny/kOlEVKJ6LOdQAYNc/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/payload-storage-bunny/kOlEVKJ6LOdQAYNc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Webhooks - Bunny.net Storage for Payload CMS\">\u003cmeta data-mint-head property=\"og:description\" content=\"Verify Bunny Stream encoding-status webhooks with your library\u0026#x27;s Read-Only API key and update MP4 fallback resolutions.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Bunny.net Storage for Payload CMS\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://payload-storage-bunny.seshuk.im/configuration/stream/webhooks\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://payload-storage-bunny.mintlify.site/_mintlify/api/og/v2?division=Stream\u0026amp;title=Webhooks\u0026amp;description=Verify+Bunny+Stream+encoding-status+webhooks+with+your+library%27s+Read-Only+API+key+and+update+MP4+fallback+resolutions.\u0026amp;theme=160341f1c557e303dc544b11\u0026amp;signature=f3a5a6788742447281d7ba1cabf4ace3ea6094e44a01fe729b37e07b6849d3a0\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Webhooks - Bunny.net Storage for Payload CMS\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Verify Bunny Stream encoding-status webhooks with your library\u0026#x27;s Read-Only API key and update MP4 fallback resolutions.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://payload-storage-bunny.mintlify.site/_mintlify/api/og/v2?division=Stream\u0026amp;title=Webhooks\u0026amp;description=Verify+Bunny+Stream+encoding-status+webhooks+with+your+library%27s+Read-Only+API+key+and+update+MP4+fallback+resolutions.\u0026amp;theme=160341f1c557e303dc544b11\u0026amp;signature=f3a5a6788742447281d7ba1cabf4ace3ea6094e44a01fe729b37e07b6849d3a0\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/payload-storage-bunny/kOlEVKJ6LOdQAYNc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Bunny.net Storage for Payload CMS\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ef6126\">\u003clink data-mint-head rel=\"canonical\" href=\"https://payload-storage-bunny.seshuk.im/configuration/stream/webhooks\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/configuration/stream/webhooks.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://payload-storage-bunny.seshuk.im/#organization\",\"name\":\"Bunny.net Storage for Payload CMS\",\"url\":\"https://payload-storage-bunny.seshuk.im\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/payload-storage-bunny/fAicIcOW-53Dy2QI/logo.svg?fit=max\u0026auto=format\u0026n=fAicIcOW-53Dy2QI\u0026q=85\u0026s=fd70722cbd3ccf2782012c33367cf1a2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://payload-storage-bunny.seshuk.im#website\",\"name\":\"Bunny.net Storage for Payload CMS\",\"url\":\"https://payload-storage-bunny.seshuk.im\",\"publisher\":{\"@id\":\"https://payload-storage-bunny.seshuk.im/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://payload-storage-bunny.seshuk.im/configuration/stream/webhooks#webpage\",\"url\":\"https://payload-storage-bunny.seshuk.im/configuration/stream/webhooks\",\"name\":\"Webhooks\",\"description\":\"Verify Bunny Stream encoding-status webhooks with your library's Read-Only API key and update MP4 fallback resolutions.\",\"dateModified\":\"2026-10-15T07:25:11.094Z\",\"isPartOf\":{\"@id\":\"https://payload-storage-bunny.seshuk.im#website\"},\"breadcrumb\":{\"@id\":\"https://payload-storage-bunny.seshuk.im/configuration/stream/webhooks#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://payload-storage-bunny.seshuk.im/configuration/stream/webhooks#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Configuration\",\"item\":\"https://payload-storage-bunny.seshuk.im/configuration/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Stream\",\"item\":\"https://payload-storage-bunny.seshuk.im/configuration/stream/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Webhooks\",\"item\":\"https://payload-storage-bunny.seshuk.im/configuration/stream/webhooks\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://payload-storage-bunny.seshuk.im/configuration/stream/webhooks#article\",\"headline\":\"Webhooks\",\"name\":\"Webhooks\",\"description\":\"Verify Bunny Stream encoding-status webhooks with your library's Read-Only API key and update MP4 fallback resolutions.\",\"url\":\"https://payload-storage-bunny.seshuk.im/configuration/stream/webhooks\",\"mainEntityOfPage\":{\"@id\":\"https://payload-storage-bunny.seshuk.im/configuration/stream/webhooks#webpage\"},\"dateModified\":\"2026-10-15T07:25:11.094Z\",\"publisher\":{\"@id\":\"https://payload-storage-bunny.seshuk.im/#organization\"},\"isPartOf\":{\"@id\":\"https://payload-storage-bunny.seshuk.im#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Bunny.net Storage for Payload CMS\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Bunny.net Storage for Payload CMS\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/configuration/stream/webhooks.md","siteName":"Bunny.net Storage for Payload CMS","nav":{"global":null,"versions":[{"version":"v3","default":true,"tabs":[{"tab":"Documentation","groups":[{"group":"Documentation","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quick start","href":"/quick-start"},{"title":"Upgrade guide","href":"/upgrade-guide"},{"title":"Changelog","href":"/changelog"}]},{"group":"Configuration","pages":[{"title":"Overview","href":"/configuration/overview"},{"group":"Storage","icon":"database","pages":[{"title":"Storage","sidebarTitle":"Overview","href":"/configuration/storage/overview"},{"title":"Client uploads","href":"/configuration/storage/client-uploads"}]},{"group":"Stream","icon":"video","pages":[{"title":"Stream","sidebarTitle":"Overview","href":"/configuration/stream/overview"},{"title":"TUS uploads","description":"Enable resumable, chunked TUS uploads that go browser-direct to Bunny Stream with short-lived server authorization.","href":"/configuration/stream/tus"},{"title":"Webhooks","href":"/configuration/stream/webhooks"}]},{"title":"Collection overrides","description":"Override individual plugin options per collection, including partial vs full-replacement configs and per-collection zones or libraries.","href":"/configuration/collection-overrides"},{"title":"Signed URLs","href":"/configuration/signed-urls"},{"title":"Thumbnails","href":"/configuration/thumbnails"},{"title":"Cache purge","href":"/configuration/cache-purge"},{"title":"URL transforms","href":"/configuration/url-transforms"},{"title":"Telemetry","href":"/configuration/telemetry"}]},{"group":"CLI","pages":[{"title":"Setup wizard","href":"/cli/init"},{"title":"Deploy the Edge Script","href":"/cli/deploy-edge-script"}]},{"group":"Guides","pages":[{"title":"Stored data","href":"/guides/stored-data"},{"title":"Multi-tenant","href":"/guides/multi-tenant"},{"title":"Stream collections","href":"/guides/stream-collections"},{"title":"Media preview","href":"/guides/media-preview"},{"title":"Examples","href":"/guides/examples"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/overview"}]}]},{"version":"v4","tag":"Beta","pages":[{"title":"v4","href":"/v4/configuration/stream/webhooks"}]}]},"basePath":"","title":"Webhooks - Bunny.net Storage for Payload CMS","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":[],"chunks":[]}