Webhooks are used for deploying functions that run asyncronously on Beam.You can add webhook triggers to the file with your Beam app definition.Input fields are serialized and validated by the Beam.Types module.
Calling a webhook will return a Task ID.You can view the status of each invocation in the dashboard, by clicking on your deployment and navigating to the latest task.If any files were generated during the execution of your task, you can download them by clicking on the task, and clicking Download.
The beam library includes several basic data types that can be used to
validate your inputs against.
Type
Description
beam.types.Json()
A JSON object
beam.types.String(max_length=None)
A string field, with an optional max_length parameter
beam.types.Float()
Standard floating point value
beam.types.Boolean()
Standard boolean value
beam.types.Tensor(shape=None, dtype=None)
A torch tensor object, with optional shape and dtype parameters
beam.types.Dataframe()
A pandas dataframe object
beam.types.NumpyArray(shape=None, dtype=None)
A numpy array, with optional shape and dtype parameters
beam.types.Binary()
A binary object, for example a video file or anything that doesn’t fit into the other types listed
beam.types.Image(raw=False)
A generic image, automatically serialized into a PIL object for use in the handler
Types can be labeled optional by passing in required=falsebeam.types.Boolean(required=false)beam.types.Dataframe(required=false)
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Slai","colors":{"primary":"#477ff7","light":"#93c5fd","dark":"#2563eb"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/slai-docs/x8Ejwqb1sXwT0acS/logo/light.svg?fit=max\u0026auto=format\u0026n=x8Ejwqb1sXwT0acS\u0026q=85\u0026s=db8f5b5f184192d8225e18682bdcdd17","dark":"https://mintcdn.com/slai-docs/x8Ejwqb1sXwT0acS/logo/dark.svg?fit=max\u0026auto=format\u0026n=x8Ejwqb1sXwT0acS\u0026q=85\u0026s=e9a2faa70ba540818bf6e625ae5b9f56"},"navbar":{"links":[{"label":"Dashboard","href":"https://www.slai.io/models"}],"primary":{"type":"button","label":"Start a new project","href":"https://www.slai.io/launchpad"}},"footer":{"socials":{"website":"https://slai.io"}},"integrations":{"ga4":{"measurementId":"G-XN1SS41L9X"},"logrocket":{"appId":"tmarkn/slai-production"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"slai-docs","hasAudioNarration":false,"actualSubdomain":"slai-docs","customDomains":["docs.slai.io"],"gitSource":{"type":"github","owner":"slai-labs","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a20c3410e965794a0a7345a","collectionId":"172b6423-e47e-4524-97c5-6c5df1717ad6","schemaVersion":"v2"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6a20c3410e965794a0a7345a:success","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"Documentation","count":26},{"language":"default","tag":"Sandbox","count":7},{"language":"default","tag":"Integrations","count":5},{"language":"default","tag":"User Guides","count":5},{"language":"default","tag":"Security","count":3},{"language":"default","tag":"Dashboard","count":2},{"language":"default","tag":"Terms and Conditions","count":2},{"language":"default","tag":"API Reference","count":1},{"language":"default","tag":"Home","count":1},{"language":"default","tag":"Pricing","count":1}]},"assistantConfig":{},"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":"editor-v7-file-tree","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":"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"beam/triggers/webhook","slug":"/beam/triggers/webhook","pageMetadata":{"title":"Webhook","description":"Deploy async functions on Beam","href":"/beam/triggers/webhook"},"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: \"Deploy async functions on Beam\"\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={a:`a`,code:`code`,em:`em`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,OptimizedImage,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`3`,id:`deploying-a-webhook`,children:`Deploying a Webhook`}),`\n`,_jsx(_components.p,{children:`Webhooks are used for deploying functions that run asyncronously on Beam.`}),`\n`,_jsx(_components.p,{children:`You can add webhook triggers to the file with your Beam app definition.`}),`\n`,_jsxs(_components.p,{children:[`Input fields are serialized and validated by the `,_jsx(_components.a,{href:`/beam/triggers/webhook#beam-types`,children:_jsx(_components.code,{children:`Beam.Types`})}),` module.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`app.Trigger.Webhook(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` inputs`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: beam.Types.String()},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` handler`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"run.py:my_async_function\"`}),_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`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`inputs`})}),_jsx(_components.td,{children:_jsx(_components.em,{children:`dict`})}),_jsx(_components.td,{children:`A dictionary specifying the interface for the API`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`handler`})}),_jsx(_components.td,{children:_jsx(_components.em,{children:`string`})}),_jsx(_components.td,{children:`The function that will be run when the API is invoked`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`invoking-webhooks`,children:`Invoking Webhooks`}),`\n`,_jsx(_components.p,{children:`Calling a webhook will return a Task ID.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/stable-diffusion-api.png?fit=max\u0026auto=format\u0026n=0GTBstnyDK-8Z9OV\u0026q=85\u0026s=f79563440ee6bb4e6e4524f387456a5d`,alt:`Invocation`,\"data-og-width\":`1932`,width:`1932`,\"data-og-height\":`282`,height:`282`,\"data-path\":`img/beam/getting-started/stable-diffusion-api.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/stable-diffusion-api.png?w=280\u0026fit=max\u0026auto=format\u0026n=0GTBstnyDK-8Z9OV\u0026q=85\u0026s=552528beaec234ac328e606e2f2fbf21 280w, https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/stable-diffusion-api.png?w=560\u0026fit=max\u0026auto=format\u0026n=0GTBstnyDK-8Z9OV\u0026q=85\u0026s=b68ea9f8ce89df45e6907ac1d859f94e 560w, https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/stable-diffusion-api.png?w=840\u0026fit=max\u0026auto=format\u0026n=0GTBstnyDK-8Z9OV\u0026q=85\u0026s=83f350b922a9b5ef22bedeb9f6f3189b 840w, https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/stable-diffusion-api.png?w=1100\u0026fit=max\u0026auto=format\u0026n=0GTBstnyDK-8Z9OV\u0026q=85\u0026s=c1b30c506961d948faac72818ddac9b4 1100w, https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/stable-diffusion-api.png?w=1650\u0026fit=max\u0026auto=format\u0026n=0GTBstnyDK-8Z9OV\u0026q=85\u0026s=7671404a118807bd84e07d9978ae9fae 1650w, https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/stable-diffusion-api.png?w=2500\u0026fit=max\u0026auto=format\u0026n=0GTBstnyDK-8Z9OV\u0026q=85\u0026s=bfcc791e267c380df42a5e9ebc552505 2500w`}),`\n`,_jsx(_components.p,{children:`You can view the status of each invocation in the dashboard, by clicking on your deployment and navigating to the latest task.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/download-artifact.png?fit=max\u0026auto=format\u0026n=0GTBstnyDK-8Z9OV\u0026q=85\u0026s=e4e488349910d46b3414b22d2ce6a55b`,alt:`Download-Artifacts`,\"data-og-width\":`1326`,width:`1326`,\"data-og-height\":`658`,height:`658`,\"data-path\":`img/beam/getting-started/download-artifact.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/download-artifact.png?w=280\u0026fit=max\u0026auto=format\u0026n=0GTBstnyDK-8Z9OV\u0026q=85\u0026s=e569e61e64979a1ce11dfcd21134b23a 280w, https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/download-artifact.png?w=560\u0026fit=max\u0026auto=format\u0026n=0GTBstnyDK-8Z9OV\u0026q=85\u0026s=832a9283874835a1c0c7d72d7b9c8a9a 560w, https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/download-artifact.png?w=840\u0026fit=max\u0026auto=format\u0026n=0GTBstnyDK-8Z9OV\u0026q=85\u0026s=0d488adc9f0944c2346e1bbc30cb8b63 840w, https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/download-artifact.png?w=1100\u0026fit=max\u0026auto=format\u0026n=0GTBstnyDK-8Z9OV\u0026q=85\u0026s=0ab25b16f9651317c089af2ba73cf5c1 1100w, https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/download-artifact.png?w=1650\u0026fit=max\u0026auto=format\u0026n=0GTBstnyDK-8Z9OV\u0026q=85\u0026s=88f12d228bb4060180c1cd61765776be 1650w, https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/download-artifact.png?w=2500\u0026fit=max\u0026auto=format\u0026n=0GTBstnyDK-8Z9OV\u0026q=85\u0026s=bf62c7a6e0c76ea5057255ea9f611539 2500w`}),`\n`,_jsxs(_components.p,{children:[`If any files were generated during the execution of your task, you can download them by clicking on the task, and clicking `,_jsx(_components.strong,{children:`Download`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`beam-types`,children:`Beam Types`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`beam`}),` library includes several basic data types that can be used to\nvalidate your inputs against.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`beam.types.Json()`})}),_jsx(_components.td,{children:`A JSON object`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`beam.types.String(max_length=None)`})}),_jsx(_components.td,{children:`A string field, with an optional max_length parameter`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`beam.types.Float()`})}),_jsx(_components.td,{children:`Standard floating point value`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`beam.types.Boolean()`})}),_jsx(_components.td,{children:`Standard boolean value`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`beam.types.Tensor(shape=None, dtype=None)`})}),_jsx(_components.td,{children:`A torch tensor object, with optional shape and dtype parameters`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`beam.types.Dataframe()`})}),_jsx(_components.td,{children:`A pandas dataframe object`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`beam.types.NumpyArray(shape=None, dtype=None)`})}),_jsx(_components.td,{children:`A numpy array, with optional shape and dtype parameters`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`beam.types.Binary()`})}),_jsx(_components.td,{children:`A binary object, for example a video file or anything that doesn’t fit into the other types listed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`beam.types.Image(raw=False)`})}),_jsx(_components.td,{children:`A generic image, automatically serialized into a PIL object for use in the handler`})]})]})]}),`\n`,_jsxs(Tip,{children:[_jsxs(_components.p,{children:[`Types can be labeled optional by passing in `,_jsx(_components.code,{children:`required=false`})]}),_jsx(_components.p,{children:_jsx(_components.code,{children:`beam.types.Boolean(required=false)`})}),_jsx(_components.p,{children:_jsx(_components.code,{children:`beam.types.Dataframe(required=false)`})})]})]})}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":"Webhook","description":"Deploy async functions on Beam","href":"/beam/triggers/webhook"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Deploying a Webhook","slug":"deploying-a-webhook","depth":3,"children":[]},{"title":"Invoking Webhooks","slug":"invoking-webhooks","depth":3,"children":[]},{"title":"Beam Types","slug":"beam-types","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"slai-docs","siteName":"Slai","title":"Webhook - Slai","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T22:37:44.626Z","originalFileLocation":"beam/triggers/webhook.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=\"Deploy async functions on Beam\">\u003cmeta data-mint-head name=\"application-name\" content=\"Slai\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/slai-docs/SXx20scKi4GaiL1r/_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/slai-docs/SXx20scKi4GaiL1r/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/slai-docs/SXx20scKi4GaiL1r/_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/slai-docs/SXx20scKi4GaiL1r/_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/slai-docs/SXx20scKi4GaiL1r/_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/slai-docs/SXx20scKi4GaiL1r/_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/slai-docs/SXx20scKi4GaiL1r/_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/slai-docs/SXx20scKi4GaiL1r/_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/slai-docs/SXx20scKi4GaiL1r/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Webhook - Slai\">\u003cmeta data-mint-head property=\"og:description\" content=\"Deploy async functions on Beam\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Slai\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.slai.io/beam/triggers/webhook\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://slai-docs.mintlify.app/_mintlify/api/og/v2?division=Triggers\u0026amp;title=Webhook\u0026amp;description=Deploy+async+functions+on+Beam\u0026amp;theme=5299518e58cafe9512f20192\u0026amp;signature=b61e9ecf5ad240ed8915ac4d8d24fefe755f4e034d6c20dea0784def97b53051\">\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=\"Webhook - Slai\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Deploy async functions on Beam\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://slai-docs.mintlify.app/_mintlify/api/og/v2?division=Triggers\u0026amp;title=Webhook\u0026amp;description=Deploy+async+functions+on+Beam\u0026amp;theme=5299518e58cafe9512f20192\u0026amp;signature=b61e9ecf5ad240ed8915ac4d8d24fefe755f4e034d6c20dea0784def97b53051\">\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/slai-docs/SXx20scKi4GaiL1r/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Slai\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#477ff7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.slai.io/beam/triggers/webhook\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/beam/triggers/webhook.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.slai.io/#organization\",\"name\":\"Slai\",\"url\":\"https://docs.slai.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/slai-docs/x8Ejwqb1sXwT0acS/logo/light.svg?fit=max\u0026auto=format\u0026n=x8Ejwqb1sXwT0acS\u0026q=85\u0026s=db8f5b5f184192d8225e18682bdcdd17\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.slai.io#website\",\"name\":\"Slai\",\"url\":\"https://docs.slai.io\",\"publisher\":{\"@id\":\"https://docs.slai.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.slai.io/beam/triggers/webhook#webpage\",\"url\":\"https://docs.slai.io/beam/triggers/webhook\",\"name\":\"Webhook\",\"description\":\"Deploy async functions on Beam\",\"dateModified\":\"2026-01-06T22:37:44.626Z\",\"isPartOf\":{\"@id\":\"https://docs.slai.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.slai.io/beam/triggers/webhook#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.slai.io/beam/triggers/webhook#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Triggers\",\"item\":\"https://docs.slai.io/beam/triggers/rest-api\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Webhook\",\"item\":\"https://docs.slai.io/beam/triggers/webhook\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.slai.io/beam/triggers/webhook#article\",\"headline\":\"Webhook\",\"name\":\"Webhook\",\"description\":\"Deploy async functions on Beam\",\"url\":\"https://docs.slai.io/beam/triggers/webhook\",\"mainEntityOfPage\":{\"@id\":\"https://docs.slai.io/beam/triggers/webhook#webpage\"},\"dateModified\":\"2026-01-06T22:37:44.626Z\",\"publisher\":{\"@id\":\"https://docs.slai.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.slai.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Slai\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Slai","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/introduction"}]},{"anchor":"Launchpad","href":"https://www.slai.io/launchpad","icon":"rocket-launch","color":{"light":"#6365f1","dark":"#6365f1"}},{"anchor":"Chat with us","href":"https://calendly.com/elimernit/slai-discovery-call","icon":"comment-dots","color":{"light":"#06b5d4","dark":"#06b5d4"}},{"anchor":"Migrate Your Model","href":"https://docs.slai.io/user-guides/migrating-an-existing-model","icon":"comments","color":{"light":"#6365f1","dark":"#6365f1"}},{"anchor":"Beam","hidden":true,"icon":"satellite-dish","groups":[{"group":"Guides","pages":[{"title":"Introduction","description":"Beam is a cloud platform where you can provision infrastructure, develop on remote runtimes from your local machine, and deploy apps as serverless functions — without leaving your IDE","href":"/beam"},{"title":"Quickstart","description":"Get started with Beam in just a few minutes","href":"/beam/getting-started/quickstart"},{"title":"Install Beam","description":null,"href":"/beam/getting-started/install-beam"},{"title":"Deploying an ML Model","description":"A short tutorial on building a sentiment analysis model and deploying it as a REST API with Beam","href":"/beam/getting-started/deploying-an-ml-model"},{"title":"Running a Web Scraper","description":"Let's build a simple web scraper which extracts headlines from The New York Times and uses a BERT model from Huggingface to detect the sentiment of each.","href":"/beam/getting-started/running-a-web-scraper"},{"title":"Stable Diffusion API","description":"Building an API to generate images with stable diffusion","href":"/beam/getting-started/stable-diffusion-gpu"},{"title":"Integration into CI/CD","description":"You can integrate Beam into an existing CI/CD process to deploy your code automatically.","href":"/beam/getting-started/ci-integration"}]},{"group":"Triggers","pages":[{"title":"REST API","description":"Deploying a Beam app as a REST API","href":"/beam/triggers/rest-api"},{"title":"Webhook","href":"/beam/triggers/webhook"},{"title":"Scheduled Cron Jobs","description":"Scheduling tasks on Beam","href":"/beam/triggers/cron"}]},{"group":"Data","pages":[{"title":"Outputs","description":"Read and write files from inside a Beam environment","href":"/beam/data/outputs"},{"title":"Persistent Volumes","description":"A readable and writable data store that will persist across tasks","href":"/beam/data/persistent-volumes"}]},{"group":"Deployment","pages":[{"title":"Logging and Monitoring","description":"After deploying, you can view the traffic and container logs on your task in the dashboard.","href":"/beam/deployment/logging-and-monitoring"}]},{"group":"Tools","pages":[{"title":"CLI","description":"Build and deploy Beam apps directly from the command line","href":"/beam/tools/cli"},{"title":"SDK","description":"The library for creating and managing Beam apps","href":"/beam/tools/sdk"}]},{"group":"Account","pages":[{"title":"API Keys","description":"API keys are used to access the CLI and SDK","href":"/beam/account/api-keys"},{"title":"Secrets Management","description":"Beam includes a secrets manager that allows you to use secrets across your projects.","href":"/beam/account/secrets-management"},{"title":"Pricing and Billing","description":null,"href":"/beam/account/pricing-and-billing"}]},{"group":"Security","pages":[{"title":"Terms and Conditions","description":"These are the terms the Slai Machine Learning Platform is provided under.","href":"/beam/security/terms-and-conditions"},{"title":"Privacy Policy","description":null,"href":"/beam/security/privacy-policy"}]}]}]},"title":"Webhook - Slai","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-CaUwvYH3.js","lightbox-handle-r17bVUz3.js"]}