Skip to main content
The Cartally widget communicates with the Cartally proxy API. These endpoints are called automatically by the widget — you do not need to call them yourself unless building a custom frontend.

Search endpoint

Performs a hybrid search (keyword + semantic) across the store’s product catalog.

Request body

Response

Authentication

The widget authenticates automatically via the Origin header. The proxy verifies that the requesting domain matches a registered shop. A session token (JWT) is returned in the response headers on the first request and must be sent back in subsequent requests.

AI Chat endpoint

Sends a natural-language query to the AI assistant. Returns a streaming response (Server-Sent Events).

Request body

Headers

Response

The response is streamed as Server-Sent Events (SSE). Each event contains a chunk of the AI response with product references.

Usage limits

AI chat requests count toward your plan’s AI request limit. When the limit is reached, the endpoint returns HTTP 403.

Rate limits

Both endpoints are rate-limited per session token and per IP address. The widget handles rate limiting automatically with appropriate error messages.