Skip to main content
The startSession mutation creates or retrieves a stable guest session identifier used by SmartMenu for analytics and personalization. The returned sessionId should be stored on the client and sent back on subsequent requests via the X-Session-ID header.

Mutation

This mutation requires an API key scoped to your chain in the Authorization header. On subsequent SmartMenu calls, include the returned sessionId in the X-Session-ID header to enable analytics and personalization.

Input

Exactly one of guestId, passportId, or email must be provided. If email is used, it is normalized (trimmed and lowercased) before computing the session.

Response

Example