Deliveries are retried with backoff on non-2xx responses, so your endpoint can be
briefly unavailable without losing events. Respond 2xx quickly (do heavy work
async). Attachment metadata — including short-lived signed download URLs — is
included in the payload; see Attachments.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SentFromAI","colors":{"primary":"#E53E12","light":"#E53E12","dark":"#E53E12"},"logo":{"light":"https://mintcdn.com/sentvia/KLcPpOXHY2Fd2LN-/logo/light.png?fit=max\u0026auto=format\u0026n=KLcPpOXHY2Fd2LN-\u0026q=85\u0026s=230bd79b5df9646a1ed6c90727d15381","dark":"https://mintcdn.com/sentvia/KLcPpOXHY2Fd2LN-/logo/dark.png?fit=max\u0026auto=format\u0026n=KLcPpOXHY2Fd2LN-\u0026q=85\u0026s=fdecaa74459efe61442a95ef3d459cc3"},"favicon":"https://mintcdn.com/sentvia/KLcPpOXHY2Fd2LN-/favicon.png?fit=max\u0026auto=format\u0026n=KLcPpOXHY2Fd2LN-\u0026q=85\u0026s=0f4201f56bff128fac2c2b6e5bd2deb4","api":{"openapi":"https://api.sentfrom.ai/openapi.json"},"appearance":{"default":"dark"},"background":{"color":{"dark":"#000000"}},"navbar":{"links":[{"href":"mailto:support@sentfrom.ai","label":"Support"}],"primary":{"type":"button","label":"Open dashboard","href":"https://console.sentfrom.ai"}},"footer":{"socials":{"website":"https://sentfrom.ai"}},"integrations":{"posthog":{"apiKey":"phc_uoRPJSaCiojvu6L5Abxp96mYqdcxm8EExVCgL9qbqTqC","apiHost":"https://eu.i.posthog.com"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://console.sentfrom.ai"},{"anchor":"Website","icon":"globe","href":"https://sentfrom.ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sentvia","hasAudioNarration":false,"actualSubdomain":"sentvia","customDomains":["docs.sentfrom.ai"],"gitSource":{"type":"github","owner":"samuelar2","repo":"sentfromai-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aeb5d26a60f76c94453a7f2","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API Reference","count":39},{"language":"default","tag":"Documentation","count":37},{"language":"default","tag":"Agent frameworks","count":8},{"language":"default","tag":"Guides","count":8},{"language":"default","tag":"Domains","count":7},{"language":"default","tag":"Drafts","count":6},{"language":"default","tag":"Get started","count":5},{"language":"default","tag":"Labels","count":5},{"language":"default","tag":"Messages","count":5},{"language":"default","tag":"Agent Login beta","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"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":"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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"*,*::before,*::after{border-radius:0!important}"}],"page":{"pagePath":"concepts/receiving","slug":"/concepts/receiving","pageMetadata":{"title":"Receiving email","description":"Inbound mail and delivery events, delivered to your endpoint and verified.","href":"/concepts/receiving"},"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: \"Inbound mail and delivery events, delivered to your endpoint and verified.\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Inbound email to any of your inboxes is parsed, threaded, and delivered to you two\nways: `,_jsx(_components.strong,{children:`webhooks`}),` (push, recommended) or `,_jsx(_components.strong,{children:`polling`}),` with `,_jsx(_components.code,{children:`GET /messages`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`register-a-webhook`,children:`Register a webhook`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.sentfrom.ai/v1/webhooks`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sf_live_…\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"url\": \"https://your-app.com/sentfromai\", \"events\": [\"message.received\",\"message.bounced\"] }'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The response returns a signing `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`secret`})}),` — shown `,_jsx(_components.strong,{children:`once`}),`. Store it; you’ll use\nit to verify every delivery.`]}),`\n`,_jsx(Heading,{level:`2`,id:`events`,children:`Events`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Event`}),_jsx(_components.th,{children:`Fires when`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message.received`})}),_jsx(_components.td,{children:`An inbound email arrives at one of your inboxes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message.delivered`})}),_jsx(_components.td,{children:`An outbound message was accepted by the recipient’s server.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message.bounced`})}),_jsx(_components.td,{children:`A hard or soft bounce (the address is auto-suppressed).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message.complained`})}),_jsx(_components.td,{children:`A spam complaint (the address is auto-suppressed).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message.rejected`})}),_jsx(_components.td,{children:`The provider rejected the send.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`payload-\u0026-signature`,children:`Payload \u0026 signature`}),`\n`,_jsxs(_components.p,{children:[`Each delivery is a JSON `,_jsx(_components.code,{children:`POST`}),` with two headers:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-sentfromai-event`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` message.received`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-sentfromai-signature`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sha256=\u003chmac>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The body is `,_jsx(_components.code,{children:`{ \"event\": \"...\", ...payload }`}),`. Verify it by computing an\nHMAC-SHA256 of the `,_jsx(_components.strong,{children:`raw request body`}),` with your webhook secret:`]}),`\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:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` crypto`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"node:crypto\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` verify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`rawBody`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`signature`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`secret`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` expected`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sha256=\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` crypto`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createHmac`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sha256\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`secret`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`rawBody`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`digest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hex\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` crypto`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`timingSafeEqual`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Buffer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`expected`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Buffer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`signature`}),_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(Warning,{children:_jsxs(_components.p,{children:[`Verify the signature on every request and reject mismatches. Always hash the\n`,_jsx(_components.strong,{children:`raw`}),` body bytes — re-serializing the JSON will change the signature.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`delivery-\u0026-retries`,children:`Delivery \u0026 retries`}),`\n`,_jsxs(_components.p,{children:[`Deliveries are retried with backoff on non-2xx responses, so your endpoint can be\nbriefly unavailable without losing events. Respond `,_jsx(_components.code,{children:`2xx`}),` quickly (do heavy work\nasync). Attachment metadata — including short-lived signed download URLs — is\nincluded in the payload; see `,_jsx(_components.a,{href:`/guides/attachments`,children:`Attachments`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`polling-alternative`,children:`Polling alternative`}),`\n`,_jsx(_components.p,{children:`No public endpoint? Poll recent mail instead:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://…/v1/messages?inbox_id=INBOX_ID\u0026limit=25\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sf_live_…\"`})]}),`\n`]})})})]})}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":"Receiving email","description":"Inbound mail and delivery events, delivered to your endpoint and verified.","href":"/concepts/receiving"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Register a webhook","slug":"register-a-webhook","depth":2,"children":[]},{"title":"Events","slug":"events","depth":2,"children":[]},{"title":"Payload \u0026 signature","slug":"payload-\u0026-signature","depth":2,"children":[]},{"title":"Delivery \u0026 retries","slug":"delivery-\u0026-retries","depth":2,"children":[]},{"title":"Polling alternative","slug":"polling-alternative","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"sentvia","siteName":"SentFromAI","title":"Receiving email - SentFromAI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-10T14:42:37.388Z","originalFileLocation":"concepts/receiving.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=\"dark\"}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=\"Inbound mail and delivery events, delivered to your endpoint and verified.\">\u003cmeta data-mint-head name=\"application-name\" content=\"SentFromAI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sentvia/B8Bh-gTnEe4T_e3d/_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/sentvia/B8Bh-gTnEe4T_e3d/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sentvia/B8Bh-gTnEe4T_e3d/_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/sentvia/B8Bh-gTnEe4T_e3d/_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/sentvia/B8Bh-gTnEe4T_e3d/_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/sentvia/B8Bh-gTnEe4T_e3d/_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/sentvia/B8Bh-gTnEe4T_e3d/_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/sentvia/B8Bh-gTnEe4T_e3d/_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/sentvia/B8Bh-gTnEe4T_e3d/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Receiving email - SentFromAI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Inbound mail and delivery events, delivered to your endpoint and verified.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SentFromAI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sentfrom.ai/concepts/receiving\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sentvia.mintlify.site/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Receiving+email\u0026amp;description=Inbound+mail+and+delivery+events%2C+delivered+to+your+endpoint+and+verified.\u0026amp;theme=adefd5b0ebbaaee67d075d80\u0026amp;signature=26cbf1c35893ed6b5800413fdaf2f90902d80f5ac41ade21eaafa6b81f586f91\">\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=\"Receiving email - SentFromAI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Inbound mail and delivery events, delivered to your endpoint and verified.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sentvia.mintlify.site/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Receiving+email\u0026amp;description=Inbound+mail+and+delivery+events%2C+delivered+to+your+endpoint+and+verified.\u0026amp;theme=adefd5b0ebbaaee67d075d80\u0026amp;signature=26cbf1c35893ed6b5800413fdaf2f90902d80f5ac41ade21eaafa6b81f586f91\">\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/sentvia/B8Bh-gTnEe4T_e3d/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SentFromAI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#E53E12\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sentfrom.ai/concepts/receiving\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/concepts/receiving.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sentfrom.ai/#organization\",\"name\":\"SentFromAI\",\"url\":\"https://docs.sentfrom.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sentvia/KLcPpOXHY2Fd2LN-/logo/light.png?fit=max\u0026auto=format\u0026n=KLcPpOXHY2Fd2LN-\u0026q=85\u0026s=230bd79b5df9646a1ed6c90727d15381\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sentfrom.ai#website\",\"name\":\"SentFromAI\",\"url\":\"https://docs.sentfrom.ai\",\"publisher\":{\"@id\":\"https://docs.sentfrom.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sentfrom.ai/concepts/receiving#webpage\",\"url\":\"https://docs.sentfrom.ai/concepts/receiving\",\"name\":\"Receiving email\",\"description\":\"Inbound mail and delivery events, delivered to your endpoint and verified.\",\"dateModified\":\"2026-08-10T14:42:37.388Z\",\"isPartOf\":{\"@id\":\"https://docs.sentfrom.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sentfrom.ai/concepts/receiving#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sentfrom.ai/concepts/receiving#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core concepts\",\"item\":\"https://docs.sentfrom.ai/concepts/inboxes\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Receiving email\",\"item\":\"https://docs.sentfrom.ai/concepts/receiving\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.sentfrom.ai/concepts/receiving#article\",\"headline\":\"Receiving email\",\"name\":\"Receiving email\",\"description\":\"Inbound mail and delivery events, delivered to your endpoint and verified.\",\"url\":\"https://docs.sentfrom.ai/concepts/receiving\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sentfrom.ai/concepts/receiving#webpage\"},\"dateModified\":\"2026-08-10T14:42:37.388Z\",\"publisher\":{\"@id\":\"https://docs.sentfrom.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sentfrom.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SentFromAI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"SentFromAI","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://console.sentfrom.ai"},{"anchor":"Website","icon":"globe","href":"https://sentfrom.ai"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Get started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Authentication","href":"/authentication"},{"title":"For AI agents","href":"/for-agents"},{"title":"Set up your agent","href":"/agent-install"}]},{"group":"Agent Login beta","pages":[{"title":"Agent Login beta","href":"/agent-login/overview"},{"title":"Connect your agent","href":"/agent-login/onboarding"},{"title":"Add Sign in with Agent","href":"/agent-login/website"},{"title":"Beta scope and support","href":"/agent-login/beta-support"}]},{"group":"Core concepts","pages":[{"title":"Inboxes","href":"/concepts/inboxes"},{"title":"Sending email","description":"Send, reply, and forward — with clean threading and idempotency.","href":"/concepts/sending"},{"title":"Receiving email","href":"/concepts/receiving"},{"title":"Threads \u0026 messages","description":"How SentFromAI groups a back-and-forth into a single conversation.","href":"/concepts/threads"}]},{"group":"Guides","pages":[{"title":"Search","href":"/guides/search"},{"title":"Attachments \u0026 storage","href":"/guides/attachments"},{"title":"Custom domains","href":"/guides/custom-domains"},{"title":"Deliverability","href":"/guides/deliverability"},{"title":"Realtime (WebSocket)","href":"/guides/realtime"},{"title":"Allow \u0026 block lists","href":"/guides/allow-block-lists"},{"title":"MCP for agents","href":"/guides/mcp"},{"title":"Error handling","href":"/guides/errors"}]},{"group":"Examples","pages":[{"title":"Bootstrap an agent inbox","href":"/examples/agent-signup"},{"title":"Auto-reply agent","href":"/examples/auto-reply-agent"},{"title":"Email labeling agent","href":"/examples/labeling-agent"}]},{"group":"Agent frameworks","pages":[{"title":"Agent frameworks","href":"/frameworks/overview"},{"title":"OpenClaw","href":"/frameworks/openclaw"},{"title":"LangChain","href":"/frameworks/langchain"},{"title":"OpenAI Agents SDK","href":"/frameworks/openai-agents"},{"title":"Vercel AI SDK","href":"/frameworks/vercel-ai-sdk"},{"title":"CrewAI","href":"/frameworks/crewai"},{"title":"LlamaIndex","href":"/frameworks/llamaindex"},{"title":"Anthropic (Claude)","href":"/frameworks/anthropic"}]},{"group":"DNS guides","pages":[{"title":"DNS: Cloudflare","href":"/guides/dns/cloudflare"},{"title":"DNS: GoDaddy","href":"/guides/dns/godaddy"},{"title":"DNS: Route 53 (AWS)","href":"/guides/dns/route53"},{"title":"DNS: Namecheap","href":"/guides/dns/namecheap"}]},{"group":"Troubleshooting","pages":[{"title":"FAQ \u0026 troubleshooting","href":"/faq"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Receiving email - SentFromAI","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":[],"chunks":[]}