Skip to main content
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.

Build the session object

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: 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
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.

Create a DoorDash connection

Request · create a DoorDash connection
Response · 200 linked
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.

Protect and refresh cookies

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.