Receive messages, leads, handoffs, and bookings at your own endpoint, signed so you can verify them.
A webhook sends an HTTP POST to your URL when something happens in a conversation. Use it to feed your CRM or helpdesk, or a Make, n8n or Zapier flow.Webhooks are available on the Scale plan and above.
Set up a webhook
Select your chatbot and open Sales Automation.
Under External integration (Webhook), enter the Destination webhook URL.
Enter a Signing secret: a long random string that only you and the receiver know.
Click Save integration.
The same two fields are also in Customizer, under Outgoing Webhooks, where Generate Secret creates a secret for you. Both places change the same settings. The webhook works whether Sales Automation is on or off.
Always set a signing secret. Without one, webhooks arrive without the x-customergpt-signature header, so nothing proves that a request came from CustomerGPT.
The URL must be publicly reachable on the standard port, 443 for HTTPS or 80 for HTTP. Use HTTPS so the payload is encrypted in transit. CustomerGPT doesn’t send webhooks to localhost or private network addresses, and doesn’t follow redirects.
Events
Event
Sent when
message.created
The visitor sends a message and the chatbot replies: one event for each. Messages in a conversation a person has taken over don’t send this event.
lead.captured
A visitor leaves an email or phone number for the first time in a conversation, with Sales Automation on. Sent once per conversation.
conversation.escalated
A conversation is handed to your team, either by the visitor or by Sales Automation. See Take over a conversation.
booking.created
A visitor books a meeting in the chat. See Book meetings.
The request
POST /your/endpoint HTTP/1.1Content-Type: application/jsonx-customergpt-signature: 5d41402abc4b2a76b9719d911017c592...x-customergpt-timestamp: 1791712800000x-customergpt-event-id: 0b5a7c1e-3f0e-4c4b-9b8f-2f6a1d9e7c11
chatbotId, conversationId, visitorName, visitorEmail, visitorPhone, plus salesProfile when Sales Automation handed it over or startedOn when the visitor asked
x-customergpt-signature is the hex-encoded HMAC-SHA256 of the raw request body, keyed with your signing secret. A chatbot without a signing secret sends its webhooks without this header, and the example below refuses them with 401.Compute the signature over the body exactly as received, before parsing the JSON:
import crypto from "node:crypto";import express from "express";const app = express();app.post("/webhooks/customergpt", express.raw({ type: "application/json" }), (req, res) => { const expected = crypto .createHmac("sha256", process.env.CUSTOMERGPT_WEBHOOK_SECRET) .update(req.body) .digest("hex"); const received = req.get("x-customergpt-signature") ?? ""; const valid = received.length === expected.length && crypto.timingSafeEqual(Buffer.from(received), Buffer.from(expected)); if (!valid) return res.sendStatus(401); // Reject old requests so a captured one can't be replayed later const age = Date.now() - Number(req.get("x-customergpt-timestamp")); if (!(age >= 0 && age < 5 * 60 * 1000)) return res.sendStatus(401); const { eventId, event, payload } = JSON.parse(req.body); // Process the event, skipping any eventId you've already handled res.sendStatus(200);});
Delivery and retries
CustomerGPT waits up to 10 seconds for your response. Any 2xx status counts as delivered.
Any other status, or a timeout, is retried. The delay starts at 30 seconds and doubles after each failure, up to an hour. After 8 attempts, the delivery is marked failed.
Because of retries, the same event can arrive more than once. Use eventId to skip duplicates.
Sales Automation → Recent deliveries shows the status and number of attempts for each delivery. Click Retry on a failed delivery, or Retry all failed, to send it again with a fresh set of attempts once your endpoint is fixed.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CustomerGPT","description":"Guides and API reference for CustomerGPT, the AI customer support chatbot trained on your own content.","colors":{"primary":"#224CFF","light":"#6B8BFF","dark":"#1A3BD9"},"logo":{"light":"https://mintcdn.com/customer-gpt/MdlNnlQN-1_ZHdpW/logo/light.svg?fit=max\u0026auto=format\u0026n=MdlNnlQN-1_ZHdpW\u0026q=85\u0026s=7bf5f55dd58e3ad29604ba10e9f6f9cc","dark":"https://mintcdn.com/customer-gpt/MdlNnlQN-1_ZHdpW/logo/dark.svg?fit=max\u0026auto=format\u0026n=MdlNnlQN-1_ZHdpW\u0026q=85\u0026s=0903b3d55b1c7a3eaa331f0106ab6e70","href":"https://customergpt.ai"},"favicon":"https://mintcdn.com/customer-gpt/MdlNnlQN-1_ZHdpW/favicon.svg?fit=max\u0026auto=format\u0026n=MdlNnlQN-1_ZHdpW\u0026q=85\u0026s=4abff922c1a96dd99d1cf9eefdfd97b2","api":{"playground":{"display":"interactive"},"mdx":{"auth":{"method":"key","name":"X-Api-Key"},"server":"https://api.customergpt.ai/api"}},"navbar":{"links":[{"href":"mailto:support@customergpt.ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.customergpt.ai"}},"footer":{"socials":{"x":"https://x.com/Customergptai","linkedin":"https://www.linkedin.com/company/customergpt-ai"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://customergpt.ai"},{"anchor":"Blog","icon":"newspaper","href":"https://customergpt.ai/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"customer-gpt","hasAudioNarration":false,"actualSubdomain":"customer-gpt","customDomains":["customergpt.ai"],"gitSource":{"type":"github","owner":"xursand7777","repo":"customergptdocumentation","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b01acde7f4e51979dfde6a0","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Developers","count":49},{"language":"default","tag":"Guides","count":27},{"language":"default","tag":"Integrations","count":11},{"language":"default","tag":"Train your chatbot","count":7},{"language":"default","tag":"Actions: Conversations","count":7},{"language":"default","tag":"Actions: Chatbots","count":6},{"language":"default","tag":"Actions: Knowledge","count":6},{"language":"default","tag":"Help desks and live chat","count":5},{"language":"default","tag":"Actions: API keys and team","count":5},{"language":"default","tag":"Chatbots REST API","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"site-roles","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":"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":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"developers/webhooks","slug":"/developers/webhooks","pageMetadata":{"title":"Webhooks","description":"Receive messages, leads, handoffs, and bookings at your own endpoint, signed so you can verify them.","href":"/developers/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: \"Receive messages, leads, handoffs, and bookings at your own endpoint, signed so you can verify them.\"\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`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._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:[_jsx(_components.p,{children:`A webhook sends an HTTP POST to your URL when something happens in a conversation. Use it to feed your CRM or helpdesk, or a Make, n8n or Zapier flow.`}),`\n`,_jsx(_components.p,{children:`Webhooks are available on the Scale plan and above.`}),`\n`,_jsx(Heading,{level:`2`,id:`set-up-a-webhook`,children:`Set up a webhook`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Select your chatbot and open `,_jsx(_components.strong,{children:`Sales Automation`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Under `,_jsx(_components.strong,{children:`External integration (Webhook)`}),`, enter the `,_jsx(_components.strong,{children:`Destination webhook URL`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Enter a `,_jsx(_components.strong,{children:`Signing secret`}),`: a long random string that only you and the receiver know.`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Save integration`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The same two fields are also in `,_jsx(_components.strong,{children:`Customizer`}),`, under `,_jsx(_components.strong,{children:`Outgoing Webhooks`}),`, where `,_jsx(_components.strong,{children:`Generate Secret`}),` creates a secret for you. Both places change the same settings. The webhook works whether Sales Automation is on or off.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Always set a signing secret. Without one, webhooks arrive without the `,_jsx(_components.code,{children:`x-customergpt-signature`}),` header, so nothing proves that a request came from CustomerGPT.`]})}),`\n`,_jsxs(_components.p,{children:[`The URL must be publicly reachable on the standard port, 443 for HTTPS or 80 for HTTP. Use HTTPS so the payload is encrypted in transit. CustomerGPT doesn’t send webhooks to `,_jsx(_components.code,{children:`localhost`}),` or private network addresses, and doesn’t follow redirects.`]}),`\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:`Sent when`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message.created`})}),_jsx(_components.td,{children:`The visitor sends a message and the chatbot replies: one event for each. Messages in a conversation a person has taken over don’t send this event.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lead.captured`})}),_jsx(_components.td,{children:`A visitor leaves an email or phone number for the first time in a conversation, with Sales Automation on. Sent once per conversation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`conversation.escalated`})}),_jsxs(_components.td,{children:[`A conversation is handed to your team, either by the visitor or by Sales Automation. See `,_jsx(_components.a,{href:`/conversations/take-over-a-conversation`,children:`Take over a conversation`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`booking.created`})}),_jsxs(_components.td,{children:[`A visitor books a meeting in the chat. See `,_jsx(_components.a,{href:`/leads/book-meetings`,children:`Book meetings`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`the-request`,children:`The request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /your/endpoint `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`HTTP`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Content-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-customergpt-signature`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 5d41402abc4b2a76b9719d911017c592...`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-customergpt-timestamp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 1791712800000`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-customergpt-event-id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 0b5a7c1e-3f0e-4c4b-9b8f-2f6a1d9e7c11`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"eventId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0b5a7c1e-3f0e-4c4b-9b8f-2f6a1d9e7c11\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1791712800000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"event\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"lead.captured\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chatbotId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"e8503caf-9761-4a69-a3bf-b677718d19cf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"conversationId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"c2f1d6a4-8b1e-4f7a-9c3d-5e6f7a8b9c0d\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"visitorName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Visitor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"visitorEmail\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"jane@example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"visitorPhone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"N/A\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"salesProfile\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"use_case\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Support for our online store\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"team_size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"collecting\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Use case fits; timeline not answered yet\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"capturedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-11T09:20:00.000Z\"`})]}),`\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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`timestamp`}),` is in milliseconds. Fields the visitor hasn’t given are sent as `,_jsx(_components.code,{children:`\"N/A\"`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`payload-by-event`,children:`Payload by event`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Event`}),_jsxs(_components.th,{children:[`Fields in `,_jsx(_components.code,{children:`payload`})]})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message.created`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`chatbotId`}),`, `,_jsx(_components.code,{children:`conversationId`}),`, `,_jsx(_components.code,{children:`sender`}),` (`,_jsx(_components.code,{children:`visitor`}),` or `,_jsx(_components.code,{children:`bot`}),`), `,_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`time`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lead.captured`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`chatbotId`}),`, `,_jsx(_components.code,{children:`conversationId`}),`, `,_jsx(_components.code,{children:`visitorName`}),`, `,_jsx(_components.code,{children:`visitorEmail`}),`, `,_jsx(_components.code,{children:`visitorPhone`}),`, `,_jsx(_components.code,{children:`salesProfile`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`conversation.escalated`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`chatbotId`}),`, `,_jsx(_components.code,{children:`conversationId`}),`, `,_jsx(_components.code,{children:`visitorName`}),`, `,_jsx(_components.code,{children:`visitorEmail`}),`, `,_jsx(_components.code,{children:`visitorPhone`}),`, plus `,_jsx(_components.code,{children:`salesProfile`}),` when Sales Automation handed it over or `,_jsx(_components.code,{children:`startedOn`}),` when the visitor asked`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`booking.created`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`chatbotId`}),`, `,_jsx(_components.code,{children:`conversationId`}),`, `,_jsx(_components.code,{children:`eventTitle`}),`, `,_jsx(_components.code,{children:`attendeeName`}),`, `,_jsx(_components.code,{children:`attendeeEmail`}),`, `,_jsx(_components.code,{children:`startTime`}),`, `,_jsx(_components.code,{children:`bookingUid`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`verify-the-signature`,children:`Verify the signature`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`x-customergpt-signature`}),` is the hex-encoded HMAC-SHA256 of the raw request body, keyed with your signing secret. A chatbot without a signing secret sends its webhooks without this header, and the example below refuses them with `,_jsx(_components.code,{children:`401`}),`.`]}),`\n`,_jsx(_components.p,{children:`Compute the signature over the body exactly as received, before parsing the JSON:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`24`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`24`,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`,_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:` express`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"express\"`}),_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:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` app`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` express`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`app`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/webhooks/customergpt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`express`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`raw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }), (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` crypto`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_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:`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:`CUSTOMERGPT_WEBHOOK_SECRET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_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:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_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\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` received`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-customergpt-signature\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`??`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\"`}),_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:` valid`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` received`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--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:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`})]}),`\n`,_jsxs(_components.span,{className:`line`,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:`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:`received`}),_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:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`valid`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`sendStatus`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`401`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Reject old requests so a captured one can't be replayed later`})}),`\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:` age`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`now`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-customergpt-timestamp\"`}),_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:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`age`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` age`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 60`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`sendStatus`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`401`}),_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:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`eventId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`parse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_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:` // Process the event, skipping any eventId you've already handled`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`sendStatus`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_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(Heading,{level:`2`,id:`delivery-and-retries`,children:`Delivery and retries`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`CustomerGPT waits up to 10 seconds for your response. Any `,_jsx(_components.code,{children:`2xx`}),` status counts as delivered.`]}),`\n`,_jsx(_components.li,{children:`Any other status, or a timeout, is retried. The delay starts at 30 seconds and doubles after each failure, up to an hour. After 8 attempts, the delivery is marked failed.`}),`\n`,_jsxs(_components.li,{children:[`Because of retries, the same event can arrive more than once. Use `,_jsx(_components.code,{children:`eventId`}),` to skip duplicates.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sales Automation → Recent deliveries`}),` shows the status and number of attempts for each delivery. Click `,_jsx(_components.strong,{children:`Retry`}),` on a failed delivery, or `,_jsx(_components.strong,{children:`Retry all failed`}),`, to send it again with a fresh set of attempts once your endpoint is fixed.`]}),`\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":"Webhooks","description":"Receive messages, leads, handoffs, and bookings at your own endpoint, signed so you can verify them.","href":"/developers/webhooks"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Set up a webhook","slug":"set-up-a-webhook","depth":2,"children":[]},{"title":"Events","slug":"events","depth":2,"children":[]},{"title":"The request","slug":"the-request","depth":2,"children":[{"title":"Payload by event","slug":"payload-by-event","depth":3,"children":[]}]},{"title":"Verify the signature","slug":"verify-the-signature","depth":2,"children":[]},{"title":"Delivery and retries","slug":"delivery-and-retries","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"customer-gpt","siteName":"CustomerGPT","title":"Webhooks - CustomerGPT","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-25T07:36:43.436Z","originalFileLocation":"developers/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=\"Receive messages, leads, handoffs, and bookings at your own endpoint, signed so you can verify them.\">\u003cmeta data-mint-head name=\"application-name\" content=\"CustomerGPT\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/customer-gpt/Zl_7Hl-b-0ES9xNx/_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=\"/docs/mintlify-assets/_mintlify/favicons/customer-gpt/Zl_7Hl-b-0ES9xNx/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/customer-gpt/Zl_7Hl-b-0ES9xNx/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/customer-gpt/Zl_7Hl-b-0ES9xNx/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/customer-gpt/Zl_7Hl-b-0ES9xNx/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/customer-gpt/Zl_7Hl-b-0ES9xNx/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/customer-gpt/Zl_7Hl-b-0ES9xNx/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/customer-gpt/Zl_7Hl-b-0ES9xNx/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/customer-gpt/Zl_7Hl-b-0ES9xNx/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Webhooks - CustomerGPT\">\u003cmeta data-mint-head property=\"og:description\" content=\"Receive messages, leads, handoffs, and bookings at your own endpoint, signed so you can verify them.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CustomerGPT\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://customergpt.ai/docs/developers/webhooks\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://customer-gpt.mintlify.site/docs/_mintlify/api/og/v2?division=Overview\u0026amp;title=Webhooks\u0026amp;description=Receive+messages%2C+leads%2C+handoffs%2C+and+bookings+at+your+own+endpoint%2C+signed+so+you+can+verify+them.\u0026amp;theme=703f88b492e9fe501dfc6cbe\u0026amp;signature=bd05896e9f1a6873ddc74c82f905d043ff7930a49fe11c225daa6f6c850e795b\">\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 - CustomerGPT\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Receive messages, leads, handoffs, and bookings at your own endpoint, signed so you can verify them.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://customer-gpt.mintlify.site/docs/_mintlify/api/og/v2?division=Overview\u0026amp;title=Webhooks\u0026amp;description=Receive+messages%2C+leads%2C+handoffs%2C+and+bookings+at+your+own+endpoint%2C+signed+so+you+can+verify+them.\u0026amp;theme=703f88b492e9fe501dfc6cbe\u0026amp;signature=bd05896e9f1a6873ddc74c82f905d043ff7930a49fe11c225daa6f6c850e795b\">\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=\"/docs/mintlify-assets/_mintlify/favicons/customer-gpt/Zl_7Hl-b-0ES9xNx/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CustomerGPT\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#224CFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://customergpt.ai/docs/developers/webhooks\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/developers/webhooks.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://customergpt.ai/#organization\",\"name\":\"CustomerGPT\",\"url\":\"https://customergpt.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/customer-gpt/MdlNnlQN-1_ZHdpW/logo/light.svg?fit=max\u0026auto=format\u0026n=MdlNnlQN-1_ZHdpW\u0026q=85\u0026s=7bf5f55dd58e3ad29604ba10e9f6f9cc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://customergpt.ai/docs#website\",\"name\":\"CustomerGPT\",\"url\":\"https://customergpt.ai/docs\",\"publisher\":{\"@id\":\"https://customergpt.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://customergpt.ai/docs/developers/webhooks#webpage\",\"url\":\"https://customergpt.ai/docs/developers/webhooks\",\"name\":\"Webhooks\",\"description\":\"Receive messages, leads, handoffs, and bookings at your own endpoint, signed so you can verify them.\",\"dateModified\":\"2026-10-25T07:36:43.436Z\",\"isPartOf\":{\"@id\":\"https://customergpt.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://customergpt.ai/docs/developers/webhooks#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://customergpt.ai/docs/developers/webhooks#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Overview\",\"item\":\"https://customergpt.ai/docs/developers/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Webhooks\",\"item\":\"https://customergpt.ai/docs/developers/webhooks\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://customergpt.ai/docs/developers/webhooks#article\",\"headline\":\"Webhooks\",\"name\":\"Webhooks\",\"description\":\"Receive messages, leads, handoffs, and bookings at your own endpoint, signed so you can verify them.\",\"url\":\"https://customergpt.ai/docs/developers/webhooks\",\"mainEntityOfPage\":{\"@id\":\"https://customergpt.ai/docs/developers/webhooks#webpage\"},\"dateModified\":\"2026-10-25T07:36:43.436Z\",\"publisher\":{\"@id\":\"https://customergpt.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://customergpt.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CustomerGPT\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"CustomerGPT\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/developers/webhooks.md","siteName":"CustomerGPT","nav":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://customergpt.ai"},{"anchor":"Blog","icon":"newspaper","href":"https://customergpt.ai/blog"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction/what-is-customergpt"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"Developers","groups":[{"group":"Overview","pages":[{"title":"Developer overview","description":"Ways to build on CustomerGPT: the HTTP API, the JavaScript SDK, the CLI, the MCP server, and webhooks.","href":"/developers/overview"},{"title":"Webhooks","href":"/developers/webhooks"}]},{"group":"Tools","pages":[{"title":"JavaScript SDK","description":"Call CustomerGPT from TypeScript and JavaScript with @customergpt/sdk: a typed client with no dependencies.","href":"/developers/sdk"},{"title":"CLI","href":"/cli/overview"},{"title":"CLI commands","href":"/cli/commands"},{"title":"MCP server","href":"/developers/mcp"}]},{"group":"API reference","pages":[{"title":"API introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Errors","href":"/api-reference/errors"}]},{"group":"Chatbots REST API","pages":[{"title":"List chatbots","api":"GET /v1/chatbots","href":"/api-reference/rest/list-chatbots"},{"title":"Get a chatbot","api":"GET /v1/chatbots/{id}","href":"/api-reference/rest/get-chatbot"},{"title":"Create a chatbot","api":"POST /v1/chatbots","href":"/api-reference/rest/create-chatbot"},{"title":"Update a chatbot","api":"PATCH /v1/chatbots/{id}","href":"/api-reference/rest/update-chatbot"}]},{"group":"Actions API","pages":[{"title":"How actions work","href":"/api-reference/actions/overview"},{"title":"List actions","api":"GET /v1/agents/actions","href":"/api-reference/actions/list"}]},{"group":"Actions: Chatbots","pages":[{"title":"List chatbots","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/chatbots_list","href":"/api-reference/chatbots/list-chatbots"},{"title":"Get chatbot","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/chatbots_get","href":"/api-reference/chatbots/get-chatbot"},{"title":"Create chatbot","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/chatbots_create","href":"/api-reference/chatbots/create-chatbot"},{"title":"Update chatbot","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/chatbots_update","href":"/api-reference/chatbots/update-chatbot"},{"title":"Delete chatbot","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/chatbots_delete","href":"/api-reference/chatbots/delete-chatbot"},{"title":"Get install snippet","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/installation_snippet","href":"/api-reference/chatbots/get-install-snippet"}]},{"group":"Actions: Knowledge","pages":[{"title":"List knowledge sources","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/sources_list","href":"/api-reference/knowledge/list-knowledge-sources"},{"title":"Add knowledge source","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/sources_add","href":"/api-reference/knowledge/add-knowledge-source"},{"title":"Resync knowledge source","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/sources_sync","href":"/api-reference/knowledge/resync-knowledge-source"},{"title":"Delete knowledge source","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/sources_delete","href":"/api-reference/knowledge/delete-knowledge-source"},{"title":"Get chatbot training status","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/training_status","href":"/api-reference/knowledge/get-chatbot-training-status"},{"title":"Get training job status","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/jobs_get","href":"/api-reference/knowledge/get-training-job-status"}]},{"group":"Actions: Custom responses","pages":[{"title":"List custom responses","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/responses_list","href":"/api-reference/custom-responses/list-custom-responses"},{"title":"Add custom response","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/responses_create","href":"/api-reference/custom-responses/add-custom-response"},{"title":"Update custom response","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/responses_update","href":"/api-reference/custom-responses/update-custom-response"},{"title":"Delete custom response","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/responses_delete","href":"/api-reference/custom-responses/delete-custom-response"}]},{"group":"Actions: Conversations","pages":[{"title":"List conversations","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/conversations_list","href":"/api-reference/conversations/list-conversations"},{"title":"Get conversation","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/conversations_get","href":"/api-reference/conversations/get-conversation"},{"title":"Update conversation","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/conversations_update","href":"/api-reference/conversations/update-conversation"},{"title":"Tag conversation","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/conversations_tag","href":"/api-reference/conversations/tag-conversation"},{"title":"Bulk update conversations","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/conversations_bulk_update","href":"/api-reference/conversations/bulk-update-conversations"},{"title":"Reply as human agent","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/messages_reply","href":"/api-reference/conversations/reply-as-human-agent"},{"title":"Send test message","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/messages_send","href":"/api-reference/conversations/send-test-message"}]},{"group":"Actions: Analytics and account","pages":[{"title":"Get chatbot analytics","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/analytics_get","href":"/api-reference/analytics-and-account/get-chatbot-analytics"},{"title":"Get account usage","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/account_usage","href":"/api-reference/analytics-and-account/get-account-usage"},{"title":"Get plan limits","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/account_limits","href":"/api-reference/analytics-and-account/get-plan-limits"}]},{"group":"Actions: API keys and team","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/tokens_list","href":"/api-reference/api-keys-and-team/list-api-keys"},{"title":"Create API key","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/tokens_create","href":"/api-reference/api-keys-and-team/create-api-key"},{"title":"Revoke API key","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/tokens_revoke","href":"/api-reference/api-keys-and-team/revoke-api-key"},{"title":"List team members","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/members_list","href":"/api-reference/api-keys-and-team/list-team-members"},{"title":"Remove team member","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/members_remove","href":"/api-reference/api-keys-and-team/remove-team-member"}]},{"group":"Actions: Onboarding","pages":[{"title":"Start demo chatbot","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/onboarding_start","href":"/api-reference/onboarding/start-demo-chatbot"},{"title":"Ask demo chatbot","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/onboarding_preview","href":"/api-reference/onboarding/ask-demo-chatbot"},{"title":"Claim demo chatbot","deprecated":null,"version":null,"openapi":"/api-reference/actions/openapi.json post /api/v1/agents/actions/onboarding_claim","href":"/api-reference/onboarding/claim-demo-chatbot"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Webhooks - CustomerGPT","deploymentId":"dpl_B1qJC7o4Nbc1BrDLB8Y5TDHq3c2t","buildId":"dpl_B1qJC7o4Nbc1BrDLB8Y5TDHq3c2t","dynamics":[],"chunks":[]}