Build a DoorDash cookie map, connect the account, and refresh its session.
DoorDash connects from a session your integration already holds. Creation, status checks, refresh, and disconnect follow the Quickstart. Build the DoorDash session you send with the cookie map below.
Agentcard enables DoorDash connections for your app only where you have DoorDash’s authorization to use its accounts this way. Agentcard never receives or stores the user’s DoorDash password.
For DoorDash, session is a JSON map of the cookies that make up the user’s signed-in DoorDash session, as cookie name to value. Send every cookie the signed-in session holds. Agentcard requires all three cookies below before checking the session with DoorDash:
Cookie
What it is
dd_cx_logged_in
"true" on a signed-in session.
ajs_user_id
The user’s DoorDash consumer id. Agentcard reads it as the account reference.
csrf_token
Required for cart and checkout calls. Agentcard refuses a session without it.
Agentcard refuses a session missing any of the three cookies. A POST /buy/v2/connections request with an incomplete session returns HTTP 400:
Response · invalid session
{"error":"session_invalid","retryable":false}
Retry the create request below with all cookies from the same signed-in session. Live verification checks authenticated access; it does not independently confirm the account identifier in ajs_user_id.
Agentcard stores the session for your user and app immediately after DoorDash accepts it. The user does not open a consent page or enter a verification code for this company-supplied session. Your app can now use the stored connection to shop. See the Quickstart for status checks, refresh, and disconnect.
You supply the session from the authorized integration your company runs against DoorDash. Agentcard validates the session against DoorDash before storing it and encrypts it at rest under a key separate from card data. Agentcard never writes the session to logs or returns it through the API. Agentcard records an expiry of two weeks for an imported session, but DoorDash can revoke it earlier. Post a fresher session to the same endpoint to refresh it in place.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Agentcard","colors":{"primary":"#000","light":"#fff","dark":"#000"},"logo":{"light":"https://mintcdn.com/agentcard/ZxfluG2aJB7NnJ1J/logo/light.svg?fit=max\u0026auto=format\u0026n=ZxfluG2aJB7NnJ1J\u0026q=85\u0026s=1d8a10192584ca97f3cdb1fa2bb122dc","dark":"https://mintcdn.com/agentcard/ZxfluG2aJB7NnJ1J/logo/dark.svg?fit=max\u0026auto=format\u0026n=ZxfluG2aJB7NnJ1J\u0026q=85\u0026s=3ef50977098e76e7906a971d92e88839","href":"https://agentcard.sh"},"favicon":"https://mintcdn.com/agentcard/ZxfluG2aJB7NnJ1J/favicon.ico?fit=max\u0026auto=format\u0026n=ZxfluG2aJB7NnJ1J\u0026q=85\u0026s=9b691a67a81b4be3d091590a89888330","navbar":{"links":[{"href":"mailto:support@agentcard.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.agentcard.sh"}},"footer":{"socials":{"x":"https://x.com/agentcardhq"}},"integrations":{"posthog":{"apiKey":"phc_1C1Kf78UFYiOTqYbgDn6DjJkma7J2ZNhMEQObS394Ay","apiHost":"https://us.i.posthog.com","sessionRecording":false}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"agentcard","hasAudioNarration":false,"actualSubdomain":"agentcard","customDomains":["docs.agentcard.com"],"gitSource":{"type":"github","owner":"tiny-agent-company","repo":"tiny-agent-company","deployBranch":"main","contentDirectory":"apps/agent-cards/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aec23ee473931aecd51ff9a","collectionId":"09d27d78-725f-4ca2-acbd-47d6bdd60e62","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aec23ee473931aecd51ff9a"},"feedback":{"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aec23ee473931aecd51ff9a","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"default","tag":"MCP","count":120},{"language":"default","tag":"User tools","count":92},{"language":"default","tag":"API reference","count":84},{"language":"default","tag":"Guides","count":55},{"language":"default","tag":"Vault","count":51},{"language":"default","tag":"Webhooks","count":51},{"language":"default","tag":"Events","count":49},{"language":"default","tag":"Cards","count":29},{"language":"default","tag":"Getting started","count":27},{"language":"default","tag":"Organization tools","count":26}],"searchSettings":{"isFiltersEnabled":true}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@agentcard.com"}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","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":"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}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"nav a[href^=\"https://agentcard.sh\"]{background-color:#1520b8;color:#fff!important;border-radius:9999px;padding-left:14px;padding-right:12px;transition:background-color 200ms ease}nav a[href^=\"https://agentcard.sh\"]:hover{background-color:#2e3ae8}nav a[href^=\"https://agentcard.sh\"] *{color:#fff!important;background:transparent!important}#agentcard-cta{margin-top:24px}.ac-cta-box{border:1px solid rgba(21, 32, 184, 0.15);border-radius:16px;padding:20px;background:linear-gradient(180deg, rgba(21, 32, 184, 0.04) 0%, rgba(21, 32, 184, 0.02) 100%)}html.dark .ac-cta-box{border-color:rgba(70, 83, 240, 0.25);background:linear-gradient(180deg, rgba(46, 58, 232, 0.09) 0%, rgba(46, 58, 232, 0.04) 100%)}.ac-cta-logo{height:20px;width:auto;display:block}.ac-cta-logo-dark{display:none}html.dark .ac-cta-logo-light{display:none}html.dark .ac-cta-logo-dark{display:block}.ac-cta-title{margin:14px 0 0;font-size:18px;font-weight:600;line-height:1.3;color:#111}html.dark .ac-cta-title{color:#fff}.ac-cta-description{margin:8px 0 0;font-size:13px;line-height:1.5;color:#666}.ac-cta-description strong{color:#333}html.dark .ac-cta-description{color:#aaa}html.dark .ac-cta-description strong{color:#ddd}.ac-cta-buttons{display:flex;flex-direction:column;gap:8px;margin-top:16px}.ac-cta-btn-primary,.ac-cta-btn-secondary{display:flex;align-items:center;justify-content:center;height:40px;border-radius:9999px;font-size:14px;font-weight:500;text-decoration:none;transition:background-color 200ms ease, border-color 200ms ease}.ac-cta-btn-primary{background:#1520b8;color:#ffffff!important}.ac-cta-btn-primary:hover{background:#2e3ae8}html.dark .ac-cta-btn-primary{background:#2e3ae8}html.dark .ac-cta-btn-primary:hover{background:#4653f0}.ac-cta-btn-secondary{background:#fff;border:1px solid #e5e7eb;color:#333!important}.ac-cta-btn-secondary:hover{background:#f9fafb;border-color:#d1d5db}html.dark .ac-cta-btn-secondary{background:rgba(255, 255, 255, 0.05);border-color:rgba(255, 255, 255, 0.1);color:#ddd!important}html.dark .ac-cta-btn-secondary:hover{background:rgba(255, 255, 255, 0.1);border-color:rgba(255, 255, 255, 0.2)}@media (max-width: 1024px){#agentcard-cta{display:none}}#footer a.max-w-36{max-width:none;overflow:visible;text-overflow:clip;white-space:nowrap}#footer div:has(>a.max-w-36){flex-wrap:wrap}nav[aria-label=\"Pages\"]:has(a[href=\"/webhooks/overview\"]) div.flex-1.items-center.gap-2>span{font-weight:600;font-size:12px}html.dark nav[aria-label=\"Pages\"]:has(a[href=\"/webhooks/overview\"]) div.flex-1.items-center.gap-2>span{color:rgb(222, 222, 222)}html:not(.dark) nav[aria-label=\"Pages\"]:has(a[href=\"/webhooks/overview\"]) div.flex-1.items-center.gap-2>span{color:rgb(31, 41, 55)}#sidebar-content{width:22rem}#table-of-contents-layout{width:17rem}"}],"page":{"pagePath":"commerce-sdk/connections/doordash","slug":"/commerce-sdk/connections/doordash","pageMetadata":{"title":"DoorDash","icon":"/images/logos/doordash.svg","description":"Build a DoorDash cookie map, connect the account, and refresh its session.","href":"/commerce-sdk/connections/doordash"},"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: \"Build a DoorDash cookie map, connect the account, and refresh its session.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`DoorDash connects from a session your integration already holds. Creation, status checks, refresh, and disconnect follow the `,_jsx(_components.a,{href:`/commerce-sdk/connections/quickstart`,children:`Quickstart`}),`. Build the DoorDash session you send with the cookie map below.`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Agentcard enables DoorDash connections for your app only where you have DoorDash’s authorization to use its accounts this way. Agentcard never receives or stores the user’s DoorDash password.`})}),`\n`,_jsx(Heading,{level:`2`,id:`build-the-session-object`,children:`Build the session object`}),`\n`,_jsxs(_components.p,{children:[`For DoorDash, `,_jsx(_components.code,{children:`session`}),` is a JSON map of the cookies that make up the user’s signed-in DoorDash session, as cookie name to value. Send every cookie the signed-in session holds. Agentcard requires all three cookies below before checking the session with DoorDash:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Cookie`}),_jsx(_components.th,{children:`What it is`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`dd_cx_logged_in`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"true\"`}),` on a signed-in session.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ajs_user_id`})}),_jsx(_components.td,{children:`The user’s DoorDash consumer id. Agentcard reads it as the account reference.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`csrf_token`})}),_jsx(_components.td,{children:`Required for cart and checkout calls. Agentcard refuses a session without it.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Agentcard refuses a session missing any of the three cookies. A `,_jsx(_components.code,{children:`POST /buy/v2/connections`}),` request with an incomplete session returns HTTP `,_jsx(_components.code,{children:`400`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:`Response · invalid session`,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{\"error\":\"session_invalid\",\"retryable\":false}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Retry the create request below with all cookies from the same signed-in session. Live verification checks authenticated access; it does not independently confirm the account identifier in `,_jsx(_components.code,{children:`ajs_user_id`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`create-a-doordash-connection`,children:`Create a DoorDash connection`}),`\n`,_jsx(CodeBlock,{filename:`Request · create a DoorDash connection`,numberOfLines:`13`,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:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.agentcard.sh/buy/v2/connections`}),_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:`$ORG_TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_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:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_id\": \"usr_7g8h9i\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"merchant\": \"doordash\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"session\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dd_cx_logged_in\": \"true\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ajs_user_id\": \"\\\\\"3e9c…\\\\\"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"csrf_token\": \"…\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"cf_clearance\": \"…\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:`Response · 200 linked`,numberOfLines:`7`,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:`7`,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:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"connection\"`}),_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:` \"connection_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cxn_2b4d6f\"`}),_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:` \"merchant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"doordash\"`}),_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:`\"linked\"`}),_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:` \"last_verified_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-05T00:12:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Agentcard stores the session for your user and app immediately after DoorDash accepts it. The user does not open a consent page or enter a verification code for this company-supplied session. Your app can now use the stored connection to shop. See the `,_jsx(_components.a,{href:`/commerce-sdk/connections/quickstart`,children:`Quickstart`}),` for status checks, refresh, and disconnect.`]}),`\n`,_jsx(Heading,{level:`2`,id:`protect-and-refresh-cookies`,children:`Protect and refresh cookies`}),`\n`,_jsx(_components.p,{children:`You supply the session from the authorized integration your company runs against DoorDash. Agentcard validates the session against DoorDash before storing it and encrypts it at rest under a key separate from card data. Agentcard never writes the session to logs or returns it through the API. Agentcard records an expiry of two weeks for an imported session, but DoorDash can revoke it earlier. Post a fresher session to the same endpoint to refresh it in place.`})]})}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":"DoorDash","icon":"/images/logos/doordash.svg","description":"Build a DoorDash cookie map, connect the account, and refresh its session.","href":"/commerce-sdk/connections/doordash"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Build the session object","slug":"build-the-session-object","depth":2,"children":[]},{"title":"Create a DoorDash connection","slug":"create-a-doordash-connection","depth":2,"children":[]},{"title":"Protect and refresh cookies","slug":"protect-and-refresh-cookies","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/agentcard/b756546712a1ddf3/vector.js","/_mintlify/custom/agentcard/58f05fe16da3f154/agentcard-cta.js","/_mintlify/custom/agentcard/4e624125805329e1/same-tab-links.js"],"subdomain":"agentcard","siteName":"Agentcard","title":"DoorDash - Agentcard","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T06:36:39.303Z","originalFileLocation":"commerce-sdk/connections/doordash.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=\"Build a DoorDash cookie map, connect the account, and refresh its session.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Agentcard\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agentcard/A6lDmirySbdlXtFn/_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/agentcard/A6lDmirySbdlXtFn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agentcard/A6lDmirySbdlXtFn/_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/agentcard/A6lDmirySbdlXtFn/_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/agentcard/A6lDmirySbdlXtFn/_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/agentcard/A6lDmirySbdlXtFn/_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/agentcard/A6lDmirySbdlXtFn/_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/agentcard/A6lDmirySbdlXtFn/_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/agentcard/A6lDmirySbdlXtFn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"DoorDash - Agentcard\">\u003cmeta data-mint-head property=\"og:description\" content=\"Build a DoorDash cookie map, connect the account, and refresh its session.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Agentcard\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.agentcard.com/commerce-sdk/connections/doordash\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://agentcard.mintlify.app/_mintlify/api/og/v2?division=Connections\u0026amp;title=DoorDash\u0026amp;description=Build+a+DoorDash+cookie+map%2C+connect+the+account%2C+and+refresh+its+session.\u0026amp;theme=9f3d392ad9d0c13242582b68\u0026amp;signature=78538d9a16bbe9c73800587d87a57414e505d2a1c590c4323eea8ca77aaf92cc\">\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=\"DoorDash - Agentcard\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Build a DoorDash cookie map, connect the account, and refresh its session.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://agentcard.mintlify.app/_mintlify/api/og/v2?division=Connections\u0026amp;title=DoorDash\u0026amp;description=Build+a+DoorDash+cookie+map%2C+connect+the+account%2C+and+refresh+its+session.\u0026amp;theme=9f3d392ad9d0c13242582b68\u0026amp;signature=78538d9a16bbe9c73800587d87a57414e505d2a1c590c4323eea8ca77aaf92cc\">\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/agentcard/A6lDmirySbdlXtFn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Agentcard\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.agentcard.com/commerce-sdk/connections/doordash\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/commerce-sdk/connections/doordash.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.agentcard.com/#organization\",\"name\":\"Agentcard\",\"url\":\"https://docs.agentcard.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/agentcard/ZxfluG2aJB7NnJ1J/logo/light.svg?fit=max\u0026auto=format\u0026n=ZxfluG2aJB7NnJ1J\u0026q=85\u0026s=1d8a10192584ca97f3cdb1fa2bb122dc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.agentcard.com#website\",\"name\":\"Agentcard\",\"url\":\"https://docs.agentcard.com\",\"publisher\":{\"@id\":\"https://docs.agentcard.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.agentcard.com/commerce-sdk/connections/doordash#webpage\",\"url\":\"https://docs.agentcard.com/commerce-sdk/connections/doordash\",\"name\":\"DoorDash\",\"description\":\"Build a DoorDash cookie map, connect the account, and refresh its session.\",\"dateModified\":\"2026-11-05T06:36:39.303Z\",\"isPartOf\":{\"@id\":\"https://docs.agentcard.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.agentcard.com/commerce-sdk/connections/doordash#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.agentcard.com/commerce-sdk/connections/doordash#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Commerce SDK\",\"item\":\"https://docs.agentcard.com/commerce-sdk/quickstart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connections\",\"item\":\"https://docs.agentcard.com/commerce-sdk/connections/quickstart\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"DoorDash\",\"item\":\"https://docs.agentcard.com/commerce-sdk/connections/doordash\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.agentcard.com/commerce-sdk/connections/doordash#article\",\"headline\":\"DoorDash\",\"name\":\"DoorDash\",\"description\":\"Build a DoorDash cookie map, connect the account, and refresh its session.\",\"url\":\"https://docs.agentcard.com/commerce-sdk/connections/doordash\",\"mainEntityOfPage\":{\"@id\":\"https://docs.agentcard.com/commerce-sdk/connections/doordash#webpage\"},\"dateModified\":\"2026-11-05T06:36:39.303Z\",\"publisher\":{\"@id\":\"https://docs.agentcard.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.agentcard.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Agentcard\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Agentcard","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Getting started","pages":[{"title":"Getting started","href":"/getting-started"},{"title":"Agentic purchases explained","href":"/getting-started/agentic-purchases-explained"}]},{"group":"Guides","icon":"book-open","pages":[{"title":"Create an iMessage agent and connect the Vault","href":"/guides/create-an-imessage-agent-and-connect-the-vault"},{"title":"Integrate the Commerce SDK into an iMessage agent","href":"/guides/integrate-the-commerce-sdk-into-an-imessage-agent"},{"title":"Complete a purchase on a Shopify store from an agent browser","href":"/guides/complete-a-purchase-on-a-shopify-store-from-an-agent-browser"}]},{"group":"Vault","icon":"vault","pages":[{"group":"Getting started","expanded":true,"pages":[{"title":"Quickstart","href":"/vault/quickstart"},{"title":"Adding a card to the Vault","href":"/vault/adding-a-card"},{"title":"Check for stored cards","href":"/vault/checking-for-stored-cards"},{"title":"Creating a cart","href":"/vault/creating-a-cart"},{"title":"Completing a purchase","href":"/vault/completing-a-purchase"},{"title":"Enable auto-approval","href":"/vault/app-auto-approval"}]},{"group":"Platforms","expanded":true,"pages":[{"title":"Choose a platform","sidebarTitle":"Overview","href":"/vault/platforms/overview"},{"title":"Add the Vault to a web app","sidebarTitle":"Web","href":"/vault/platforms/web"},{"title":"Add the Vault to a Lovable app","sidebarTitle":"Lovable","href":"/vault/platforms/lovable"},{"title":"Add the Vault to an iOS app","sidebarTitle":"iOS","href":"/vault/platforms/ios"},{"title":"Add the Vault to a React Native app","sidebarTitle":"React Native","href":"/vault/platforms/react-native"},{"title":"Add the Vault to an iMessage agent","sidebarTitle":"iMessage","href":"/vault/platforms/imessage"},{"title":"Send a Vault link from anywhere","sidebarTitle":"Hosted link","href":"/vault/platforms/hosted-link"}]},{"group":"Integrations","expanded":true,"pages":[{"group":"Ecommerce APIs","expanded":true,"pages":[{"title":"Agentcard's Commerce SDK","url":"/commerce-sdk/quickstart","href":"/vault/integrations/ecommerce-apis/purchase-api"},{"title":"Channel3","icon":"https://mintlify.s3.us-west-1.amazonaws.com/agentcard/images/logos/channel3.png","href":"/vault/integrations/ecommerce-apis/channel3"},{"title":"Zinc","icon":"https://mintlify.s3.us-west-1.amazonaws.com/agentcard/images/logos/zinc.png","href":"/vault/integrations/ecommerce-apis/zinc"},{"title":"Ophelia","icon":"https://mintlify.s3.us-west-1.amazonaws.com/agentcard/images/logos/ophelia.png","href":"/vault/integrations/ecommerce-apis/ophelia"}]},{"group":"Agent-browsers","expanded":true,"pages":[{"title":"Your own browser","href":"/vault/integrations/agent-browsers/your-own"},{"title":"Kernel","icon":"https://mintlify.s3.us-west-1.amazonaws.com/agentcard/images/logos/kernel.png","href":"/vault/integrations/agent-browsers/kernel"},{"title":"Browserbase","icon":"https://mintlify.s3.us-west-1.amazonaws.com/agentcard/images/logos/browserbase.png","href":"/vault/integrations/agent-browsers/browserbase"},{"title":"Browser Use","icon":"https://mintlify.s3.us-west-1.amazonaws.com/agentcard/images/logos/browser-use.png","href":"/vault/integrations/agent-browsers/browser-use"},{"title":"Anchor","icon":"https://mintlify.s3.us-west-1.amazonaws.com/agentcard/images/logos/anchor.png","href":"/vault/integrations/agent-browsers/anchor"}]},{"group":"iMessage providers","expanded":true,"pages":[{"title":"Linq","icon":"https://mintlify.s3.us-west-1.amazonaws.com/agentcard/images/logos/linq.png","href":"/vault/integrations/imessage-providers/linq"},{"title":"Photon","icon":"https://mintlify.s3.us-west-1.amazonaws.com/agentcard/images/logos/photon.png","href":"/vault/integrations/imessage-providers/photon"},{"title":"Blooio","icon":"https://mintlify.s3.us-west-1.amazonaws.com/agentcard/images/logos/blooio.png","href":"/vault/integrations/imessage-providers/blooio"}]}]}]},{"group":"Issuing","icon":"credit-card","pages":[{"group":"Getting started","expanded":true,"pages":[{"title":"Quickstart","href":"/issuing/quickstart"},{"title":"Authenticating a user","href":"/issuing/authenticating-a-user"},{"title":"Completing a KYC","href":"/issuing/completing-a-kyc"},{"title":"Issuing a card","href":"/issuing/issuing-a-card"},{"title":"Using the cards","href":"/issuing/using-the-cards"}]}]},{"group":"Commerce SDK","icon":"cart-shopping","pages":[{"group":"Getting started","expanded":true,"pages":[{"title":"Quickstart","href":"/commerce-sdk/quickstart"},{"title":"Give your model Agentcard's instructions","sidebarTitle":"Give your model instructions","href":"/commerce-sdk/guides/give-your-model-agentcards-instructions"},{"title":"Showing products and carting the one the shopper picks","sidebarTitle":"Showing products","href":"/commerce-sdk/guides/showing-products"},{"title":"Showing stores and their menus","sidebarTitle":"Showing stores","href":"/commerce-sdk/guides/showing-stores-and-menus"},{"title":"Showing each store as it is searched","sidebarTitle":"Showing each store searched","href":"/commerce-sdk/guides/showing-each-store-searched"},{"title":"Sending each link: approval, Vault and store sign-in","sidebarTitle":"Sending each link","href":"/commerce-sdk/guides/sending-each-link"},{"title":"Adding a card for a new shopper","sidebarTitle":"Adding a card","href":"/commerce-sdk/guides/adding-a-card"},{"title":"Approving a purchase","sidebarTitle":"Approving a purchase","href":"/commerce-sdk/guides/approving-a-purchase"},{"title":"Signing in to a store's account","sidebarTitle":"Signing in to a store","href":"/commerce-sdk/guides/signing-in-to-a-store"},{"title":"Taking the next step once the shopper finishes outside the chat","sidebarTitle":"Taking the next step","href":"/commerce-sdk/guides/taking-the-next-step"},{"title":"Showing the cart","sidebarTitle":"Showing the cart","href":"/commerce-sdk/guides/showing-the-cart"},{"title":"Answering each shopper message in its own turn","sidebarTitle":"Answering each message","href":"/commerce-sdk/guides/answering-each-message"},{"title":"Acknowledging the shopper: a reaction or a short text","sidebarTitle":"Acknowledging the shopper","href":"/commerce-sdk/guides/acknowledging-the-shopper"},{"title":"Choose how long a reply waits for stores","sidebarTitle":"Choose a store wait","href":"/commerce-sdk/guides/choosing-how-long-a-reply-waits"}]},{"group":"Connections","expanded":true,"pages":[{"title":"Quickstart","icon":"link","description":"Send a user's store session from your server and connect it to Agentcard.","href":"/commerce-sdk/connections/quickstart"},{"title":"DoorDash","icon":"https://mintlify.s3.us-west-1.amazonaws.com/agentcard/images/logos/doordash.svg","href":"/commerce-sdk/connections/doordash"}]}]},{"group":"Partners","pages":[{"title":"Integrating a merchant to the Commerce SDK","description":"Expose a catalog and an orders endpoint, and agents on Agentcard can buy from you.","href":"/partners/integrating-a-merchant"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/overview"}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks/overview"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/tools/cli"}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/tools/mcp"}]}]},"basePath":"","title":"DoorDash - Agentcard","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":[],"chunks":[]}