Comfort Oak
Crafted furniture interior for Comfort Oak

Comfort Oak

The Laravel API behind the storefront and staff CMS — catalog, content, checkout, leads, and ops in one place.

Base URL

All public and staff routes live under versioned JSON at /api/v1.

Request root
https://api.comfortoak.com/api/v1

Responses use a data envelope. Staff routes require a Sanctum bearer token from POST /api/v1/admin/auth/login.

Key endpoints

Start with health and bootstrap, then catalog and commerce for the storefront.

Platform

GET /api/v1/health Liveness check
GET /api/v1/bootstrap Menus, announcement, settings snapshot
GET /api/v1/home Homepage CMS payload

Catalog

GET /api/v1/sofas Sofa styles & configurator data
GET /api/v1/products Product catalog listing
GET /api/v1/categories Category tree

Commerce

POST /api/v1/auth/login Customer login
GET /api/v1/cart Current cart
POST /api/v1/checkout Create order (Razorpay / COD)
ADMIN /api/v1/admin/* Staff CMS, orders, inbox, settings

Browse full OpenAPI Guides

Authentication

Customers and staff use separate guards. Tokens are Laravel Sanctum personal access tokens.

Customer

Register or login on the public auth routes, then send the token on account, wishlist, and order calls.

Authorization: Bearer {customer_token}

Staff

Admin login returns a Sanctum token. Routes under /api/v1/admin also enforce Spatie permissions.

Authorization: Bearer {staff_token}

Auth guide

Connected apps

This API is shared by the public website and the internal CMS.