Session
Get Active Domains
Retrieves all domains with active cart sessions
GET
Get Active Domains
Overview
This endpoint retrieves a list of all domain IDs (store identifiers) that have active cart sessions for the current authenticated device. This is useful for understanding which stores the user has active shopping sessions with.This endpoint returns only domain names, not full cart data. Use Get Active Carts to retrieve full cart information.
Authentication
Requires Device Authentication.Request
No request body or query parameters required.Response
Array of domain IDs (store identifiers) that have active sessionsExample:
["staging.luma.gift", "demo.luma.gift", "shop.luma.gift"]Session Behavior
Active Domain Criteria
- Domain must have an active cart session
- Cart must contain at least one item
- Session must not be expired
Use Cases
- Quick check for active shopping sessions
- Pre-flight check before fetching full cart data
- Building domain-specific UI elements
- Analytics and session tracking
Errors
Unauthorized
Status Code: 401Description: Invalid or missing device authentication
Internal Server Error
Status Code: 500Description: Server error occurred while fetching domains
Examples
Response Examples
Multiple Active Domains
Single Active Domain
No Active Domains
Related Endpoints
- Get Active Carts - Get full cart data for active sessions
- Get Cart - Get cart for a specific domain
Get Active Domains