Enable direct messaging between users and your integration
Bot DMs allow users to have private, one-on-one conversations with your integration. When enabled, users can start direct message threads with your integration, which appear in their sidebar with your integration’s name and avatar.
To send a direct message to a user, use the Create DM endpoint. This endpoint uses member IDs instead of thread IDs so you can message users without keeping track of a thread ID for each user.
Respond to user messages promptly (within a few seconds when possible)
Provide feedback when processing longer operations
Handle errors gracefully with clear error messages
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Campsite","colors":{"primary":"#FF531B","light":"#FF531B","dark":"#FF531B"},"favicon":"/campsite-icon.png","logo":{"light":"https://mintcdn.com/campsite-4b143a7b/Mbp4axNiifi6JxJh/campsite-icon.png?fit=max\u0026auto=format\u0026n=Mbp4axNiifi6JxJh\u0026q=85\u0026s=4b6310b0e042e1d07baccb122e43fbc7","dark":"https://mintcdn.com/campsite-4b143a7b/Mbp4axNiifi6JxJh/campsite-icon.png?fit=max\u0026auto=format\u0026n=Mbp4axNiifi6JxJh\u0026q=85\u0026s=4b6310b0e042e1d07baccb122e43fbc7","href":"https://campsite.com"},"api":{"openapi":"api-reference/openapi_schema.json","playground":{"display":"none"}},"navbar":{"links":[{"label":"Support","href":"mailto:support@campsite.com"}],"primary":{"type":"button","label":"Open Campsite","href":"https://app.campsite.com"}},"footer":{"socials":{"x":"https://x.com/trycampsite","linkedin":"https://www.campsite.com/follow/linkedin","github":"https://www.campsite.com/follow/github"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"campsite-4b143a7b","hasAudioNarration":false,"actualSubdomain":"campsite-4b143a7b","customDomains":["developers.campsite.com"],"gitSource":{"type":"github","owner":"campsite","repo":"campsite-internal","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a20c58100c8336c6f4e7e69","collectionId":"6aa1c9d2-69d1-45f2-87dd-f54e60c7a273","schemaVersion":"v2"},"entitlements":{},"buildId":"6a20c58100c8336c6f4e7e69:success","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"API reference","count":17},{"language":"default","tag":"Posts","count":7},{"language":"default","tag":"Messages","count":4},{"language":"default","tag":"Guides","count":4},{"language":"default","tag":"Channels","count":1},{"language":"default","tag":"Members","count":1}]},"assistantConfig":{},"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":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/guides/bot-dms","slug":"/api-reference/guides/bot-dms","pageMetadata":{"title":"Bot DMs","description":"Enable direct messaging between users and your integration","href":"/api-reference/guides/bot-dms"},"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: \"Enable direct messaging between users and your integration\"\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`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Bot DMs allow users to have private, one-on-one conversations with your integration. When enabled, users can start direct message threads with your integration, which appear in their sidebar with your integration’s name and avatar.`}),`\n`,_jsx(Heading,{level:`2`,id:`enabling-bot-dms`,children:`Enabling Bot DMs`}),`\n`,_jsx(_components.p,{children:`To enable direct messaging for your integration:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Set up a webhook that listens for the `,_jsx(_components.code,{children:`message.dm`}),` event (see `,_jsx(_components.a,{href:`/api-reference/guides/webhooks`,children:`Webhooks`}),`)`]}),`\n`,_jsx(_components.li,{children:`Ensure your webhook is active and responding to events`}),`\n`,_jsx(_components.li,{children:`Your integration will automatically appear in the “New Thread” UI with an “app” badge next to its name`}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Users will only see your integration in the “New Thread” UI if your webhook is actively listening for the `,_jsx(_components.code,{children:`message.dm`}),`\nevent.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`receiving-messages-from-users`,children:`Receiving messages from users`}),`\n`,_jsxs(_components.p,{children:[`When a user sends a message to your integration, Campsite will send a webhook event with the `,_jsx(_components.code,{children:`message.dm`}),` event type. Here’s an example payload:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`25`,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:`25`,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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dm8h4tnud123\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message.dm\"`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-10-01T18:30:03Z\"`}),_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:` \"organization_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"jkh4ytt0s18o\"`}),_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:` \"application_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"uc1d5rg02s2y\"`}),_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:` \"data\"`}),_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:` \"message\"`}),_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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"msg9ecyqn2lf1\"`}),_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:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello bot!\"`}),_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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-10-01T18:30:02.060Z\"`}),_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:` \"thread_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"thd5vvauzu3\"`}),_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:` \"sender\"`}),_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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4qteru9o6s08\"`}),_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:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ranger Rick\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_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:` \"avatar_urls\"`}),_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:` \"xs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://campsite.imgix.net/...\"`}),_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:` \"sm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://campsite.imgix.net/...\"`}),_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:` \"base\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://campsite.imgix.net/...\"`})]}),`\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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`sending-messages-to-users`,children:`Sending messages to users`}),`\n`,_jsxs(_components.p,{children:[`To send a direct message to a user, use the `,_jsx(_components.a,{href:`/api-reference/create-dm`,children:`Create DM endpoint`}),`. This endpoint uses member IDs instead of thread IDs so you can message users without keeping track of a thread ID for each user.`]}),`\n`,_jsx(Heading,{level:`2`,id:`bot-dm-guidelines`,children:`Bot DM guidelines`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Respond to user messages promptly (within a few seconds when possible)`}),`\n`,_jsx(_components.li,{children:`Provide feedback when processing longer operations`}),`\n`,_jsx(_components.li,{children:`Handle errors gracefully with clear error messages`}),`\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":"Bot DMs","description":"Enable direct messaging between users and your integration","href":"/api-reference/guides/bot-dms"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Enabling Bot DMs","slug":"enabling-bot-dms","depth":2,"children":[]},{"title":"Receiving messages from users","slug":"receiving-messages-from-users","depth":2,"children":[]},{"title":"Sending messages to users","slug":"sending-messages-to-users","depth":2,"children":[]},{"title":"Bot DM guidelines","slug":"bot-dm-guidelines","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"campsite-4b143a7b","siteName":"Campsite","title":"Bot DMs - Campsite","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T03:42:36.448Z","originalFileLocation":"api-reference/guides/bot-dms.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=\"Enable direct messaging between users and your integration\">\u003cmeta data-mint-head name=\"application-name\" content=\"Campsite\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/campsite-4b143a7b/BaEMERVx_Xn_bYuR/_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/campsite-4b143a7b/BaEMERVx_Xn_bYuR/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/campsite-4b143a7b/BaEMERVx_Xn_bYuR/_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/campsite-4b143a7b/BaEMERVx_Xn_bYuR/_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/campsite-4b143a7b/BaEMERVx_Xn_bYuR/_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/campsite-4b143a7b/BaEMERVx_Xn_bYuR/_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/campsite-4b143a7b/BaEMERVx_Xn_bYuR/_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/campsite-4b143a7b/BaEMERVx_Xn_bYuR/_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/campsite-4b143a7b/BaEMERVx_Xn_bYuR/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Bot DMs - Campsite\">\u003cmeta data-mint-head property=\"og:description\" content=\"Enable direct messaging between users and your integration\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Campsite\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.campsite.com/api-reference/guides/bot-dms\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://campsite-4b143a7b.mintlify.app/_mintlify/api/og/v2?division=Guides\u0026amp;title=Bot+DMs\u0026amp;description=Enable+direct+messaging+between+users+and+your+integration\u0026amp;theme=374dfe063c13b6b346c19e7c\u0026amp;signature=3f0dea5fa2f3a19b80d0b0cb77d18407d8c534d41ad547e3a2e77d04a052256d\">\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=\"Bot DMs - Campsite\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Enable direct messaging between users and your integration\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://campsite-4b143a7b.mintlify.app/_mintlify/api/og/v2?division=Guides\u0026amp;title=Bot+DMs\u0026amp;description=Enable+direct+messaging+between+users+and+your+integration\u0026amp;theme=374dfe063c13b6b346c19e7c\u0026amp;signature=3f0dea5fa2f3a19b80d0b0cb77d18407d8c534d41ad547e3a2e77d04a052256d\">\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/campsite-4b143a7b/BaEMERVx_Xn_bYuR/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Campsite\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF531B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.campsite.com/api-reference/guides/bot-dms\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/guides/bot-dms.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.campsite.com/#organization\",\"name\":\"Campsite\",\"url\":\"https://developers.campsite.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/campsite-4b143a7b/Mbp4axNiifi6JxJh/campsite-icon.png?fit=max\u0026auto=format\u0026n=Mbp4axNiifi6JxJh\u0026q=85\u0026s=4b6310b0e042e1d07baccb122e43fbc7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.campsite.com#website\",\"name\":\"Campsite\",\"url\":\"https://developers.campsite.com\",\"publisher\":{\"@id\":\"https://developers.campsite.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.campsite.com/api-reference/guides/bot-dms#webpage\",\"url\":\"https://developers.campsite.com/api-reference/guides/bot-dms\",\"name\":\"Bot DMs\",\"description\":\"Enable direct messaging between users and your integration\",\"dateModified\":\"2026-01-07T03:42:36.448Z\",\"isPartOf\":{\"@id\":\"https://developers.campsite.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.campsite.com/api-reference/guides/bot-dms#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.campsite.com/api-reference/guides/bot-dms#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://developers.campsite.com/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bot DMs\",\"item\":\"https://developers.campsite.com/api-reference/guides/bot-dms\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://developers.campsite.com/api-reference/guides/bot-dms#article\",\"headline\":\"Bot DMs\",\"name\":\"Bot DMs\",\"description\":\"Enable direct messaging between users and your integration\",\"url\":\"https://developers.campsite.com/api-reference/guides/bot-dms\",\"mainEntityOfPage\":{\"@id\":\"https://developers.campsite.com/api-reference/guides/bot-dms#webpage\"},\"dateModified\":\"2026-01-07T03:42:36.448Z\",\"publisher\":{\"@id\":\"https://developers.campsite.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.campsite.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Campsite\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Campsite","nav":{"global":null,"anchors":[{"anchor":"API reference","icon":"square-terminal","groups":[{"group":"Guides","pages":[{"title":"Introduction","description":"Use Campsite's REST API to create custom integrations and scripts that interact with Campsite.","href":"/api-reference/introduction"},{"title":"Bot DMs","href":"/api-reference/guides/bot-dms"},{"title":"Mentioning users","description":null,"href":"/api-reference/guides/mentioning-users"},{"title":"Webhooks","href":"/api-reference/guides/webhooks"}]},{"group":"Posts","pages":[{"openapi":"get /v2/posts","title":"List posts","href":"/api-reference/list-posts"},{"openapi":"get /v2/posts/{id}","title":"Get post","href":"/api-reference/get-post"},{"openapi":"post /v2/posts","title":"Create post","href":"/api-reference/create-post"},{"openapi":"post /v2/posts/{post_id}/resolution","title":"Resolve post","href":"/api-reference/resolve-post"},{"openapi":"delete /v2/posts/{post_id}/resolution","title":"Unresolve post","href":"/api-reference/unresolve-post"},{"openapi":"get /v2/posts/{post_id}/comments","title":"List comments","href":"/api-reference/list-comments"},{"openapi":"post /v2/posts/{post_id}/comments","title":"Create comment","href":"/api-reference/create-comment"}]},{"group":"Channels","pages":[{"openapi":"get /v2/channels","title":"List channels","href":"/api-reference/list-channels"}]},{"group":"Messages","pages":[{"openapi":"post /v2/threads","title":"Create thread","href":"/api-reference/create-thread"},{"openapi":"get /v2/threads/{thread_id}/messages","title":"List messages","href":"/api-reference/list-messages"},{"openapi":"post /v2/threads/{thread_id}/messages","title":"Create message","href":"/api-reference/create-message"},{"openapi":"post /v2/members/{member_id}/messages","title":"Create DM","href":"/api-reference/create-dm"}]},{"group":"Members","pages":[{"openapi":"get /v2/members","title":"List members","href":"/api-reference/list-members"}]}]},{"anchor":"Examples","href":"https://github.com/campsite/examples","icon":"github"}]},"title":"Bot DMs - Campsite","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":[],"chunks":[]}