{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cerium","colors":{"primary":"#4F46E5","light":"#818CF8","dark":"#4338CA"},"logo":{"light":"/images/logo-light.svg","dark":"/images/logo-dark.svg"},"favicon":"/images/favicon.svg","appearance":{"default":"system"},"navbar":{"links":[{"href":"mailto:support@usecerium.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.usecerium.com"}},"footer":{"socials":{}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"hasAudioNarration":false,"customDomains":[],"gitSource":{"type":"github","owner":"local","repo":"local","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"local","isBase":true},"buildId":"local","clientVersion":"0.0.4271"},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false,"isLoggedInCli":false},"customCss":[{"filePath":"style.css","content":"#content-area,.prose{font-size:0.9375rem;line-height:1.6}#content-area p,#content-area li{line-height:1.6}#page-title,h1#page-title{font-size:1.75rem;line-height:2.1rem;letter-spacing:-0.02em}#content-area h2{font-size:1.25rem;line-height:1.75rem;letter-spacing:-0.01em}#content-area h3{font-size:1.0625rem;line-height:1.5rem}#content-area h4{font-size:0.9375rem}#content-area .mt-2.text-lg,#page-description{font-size:1rem;line-height:1.5rem}#content-area code{font-size:0.85em}#content-area pre,#content-area pre code{font-size:0.8125rem;line-height:1.55}#content-area .callout,#content-area [data-component-part=\"callout\"]{font-size:0.875rem}#content-area a.card,#content-area .card{font-size:0.875rem}#sidebar,#table-of-contents{font-size:0.8125rem}#content-area table{font-size:0.875rem}"}]}
{"page":{"pagePath":"guides/data-privacy","slug":"/guides/data-privacy","pageMetadata":{"title":"Data privacy","description":"Erase a customer's personal data when they ask, and handle personal data responsibly.","href":"/guides/data-privacy"},"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: \"Erase a customer’s personal data when they ask, and handle personal data responsibly.\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`erasing-a-customer`,children:`Erasing a customer`}),`\n`,_jsxs(_components.p,{children:[`When a customer asks you to delete their data, call `,_jsx(_components.a,{href:`/api-reference/customers/erase-a-customer`,children:_jsx(_components.code,{children:`DELETE /customers/{customerId}`})}),`:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` DELETE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.usecerium.com/v1/customers/prt_8271`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$CERIUM_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This erases the customer’s:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`name, email and phone`}),`\n`,_jsx(_components.li,{children:`devices`}),`\n`,_jsx(_components.li,{children:`tags and notes`}),`\n`,_jsxs(_components.li,{children:[`the `,_jsx(_components.strong,{children:`content`}),` of their messages`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`The conversations themselves stay, without their content, so your history and reports keep their counts.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Erasing `,_jsx(_components.strong,{children:`cannot be undone`}),`. Check the id twice. If you may need the data later, export it first.`]})}),`\n`,_jsxs(_components.p,{children:[`Requires the `,_jsx(_components.code,{children:`customers:write`}),` scope. Consider using a dedicated key for the job that handles deletion requests.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-to-send-and-what-not-to`,children:`What to send, and what not to`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Send only the personal data you need support to have. A name and email are required; a phone number is optional.`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Do not put secrets in message bodies`}),`: no passwords, full card numbers, or access tokens.`]}),`\n`,_jsxs(_components.li,{children:[`Do not put sensitive data in `,_jsx(_components.code,{children:`externalId`}),`, tags or attributes. They are visible to your support team.`]}),`\n`,_jsx(_components.li,{children:`Attachment links should point to one file and should not grant access to anything else.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`your-keys`,children:`Your keys`}),`\n`,_jsxs(_components.p,{children:[`API keys are credentials. See `,_jsx(_components.a,{href:`/authentication#keeping-keys-safe`,children:`Keeping keys safe`}),`.`]})]})}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":"Data privacy","description":"Erase a customer's personal data when they ask, and handle personal data responsibly.","href":"/guides/data-privacy"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Erasing a customer","slug":"erasing-a-customer","depth":2,"children":[]},{"title":"What to send, and what not to","slug":"what-to-send-and-what-not-to","depth":2,"children":[]},{"title":"Your keys","slug":"your-keys","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"docs.usecerium.com","siteName":"Cerium","title":"Data privacy - Cerium","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"guides/data-privacy.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=\"Erase a customer\u0026#x27;s personal data when they ask, and handle personal data responsibly.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cerium\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/favicons/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicons/favicon-32x32.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicons/favicon-16x16.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicons/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"Data privacy - Cerium\">\u003cmeta data-mint-head property=\"og:description\" content=\"Erase a customer\u0026#x27;s personal data when they ask, and handle personal data responsibly.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cerium\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./guides/data-privacy\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"http://docs.usecerium.com/_mintlify/og/guides/data-privacy.png\">\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=\"Data privacy - Cerium\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Erase a customer\u0026#x27;s personal data when they ask, and handle personal data responsibly.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"http://docs.usecerium.com/_mintlify/og/guides/data-privacy.png\">\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=\"/favicons/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cerium\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4F46E5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://local./guides/data-privacy\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/data-privacy.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cerium\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cerium\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/data-privacy.md","siteName":"Cerium","nav":{"tabs":[{"tab":"Guides","groups":[{"group":"Get started","pages":[{"title":"Introduction","href":""},{"title":"Quickstart","href":"/quickstart"},{"title":"Authentication","href":"/authentication"},{"title":"Core concepts","href":"/concepts"}]},{"group":"Guides","pages":[{"title":"Customers","href":"/guides/customers"},{"title":"Conversations","href":"/guides/conversations"},{"title":"Messages and attachments","href":"/guides/messages-and-attachments"},{"title":"Idempotency","href":"/guides/idempotency"},{"title":"Pagination","href":"/guides/pagination"},{"title":"Errors","href":"/guides/errors"},{"title":"Rate limits","description":"How many requests you can make, and how to stay within the limit.","href":"/guides/rate-limits"},{"title":"Data privacy","href":"/guides/data-privacy"},{"title":"Going live","description":"A checklist to run through before you ship.","href":"/guides/going-live"}]},{"group":"More","pages":[{"title":"Changelog","href":"/changelog"},{"title":"Support","href":"/support"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Data privacy - Cerium","buildId":"997e403e4737","dynamics":[],"chunks":[]}