Cartesiandocs

Your Cartesian backend

Your Cartesian backend

Cartesian runs in your infrastructure. Here is what the SDKs need from it.

Each partner runs its own Cartesian backend instance, in its own cloud account, next to its catalog. CogitX doesn't host a shared, multi-tenant backend. Shopper data, carts and conversations stay inside your infrastructure.

┌────────── your infrastructure ──────────┐
│  your app backend ── issues tokens ──┐  │
│                                      ▼  │
│  Cartesian backend  (REST /api, WS /ws) │◄──── Cartesian SDK in your app
│        │                                │
│  your catalog · prices · inventory      │
└─────────────────────────────────────────┘
text

What the SDK expects

Base URLHTTPS, for example https://cartesian.yourcompany.com. REST is served under /api, the WebSocket at /ws.
AuthA session token per shopper, issued by your backend. See Sessions and tokens.
WebSocketMust support upgrade on /ws and keep connections open. The SDK sends a ping heartbeat, so set proxy idle timeouts above its interval.
TLSA valid public certificate. The SDK uses the system trust store unless you supply an OkHttpClient with pinning.
Verticalsgrocery or apparel. These decide the product schema and copy.

Deployment checklist

Deploy the Cartesian backend

CogitX provides the backend image and its configuration for your vertical. Deploy it behind your load balancer, with WebSocket support turned on.

Connect your catalog

Load your products, prices and availability. Product IDs are what the SDK returns in Product.id, so keep them the same as your own catalog IDs if you can.

Issue session tokens

Add an endpoint to your app backend that returns a Cartesian session token for the signed-in shopper.

Point the SDK at it

CartesianConfig.builder(Vertical.Grocery, "https://cartesian.yourcompany.com")

Talk to your CogitX contact for the backend image, sizing and environment configuration. This section will grow into a full self-hosting guide.