Royal Glow internal docs · now fully interactive — Steps, API tables, file trees & live status
Royal Glow Docs

API Reference

Agent-friendly REST endpoints for the Royal Glow platform.

API Reference

The public API uses clean, human-readable RESTful URLs with a consistent JSON envelope, so both browsers and AI agents can discover and call them.

Base URLs: customer endpoints are on https://theroyalglow.in (local: http://localhost:3000); the admin endpoint groups are a separate app on https://admin.theroyalglow.in (local: http://localhost:3001) with no /api/admin/ segment. Most endpoints require a Better Auth session cookie; public endpoints (services, availability, lead capture, health) need none. Every response — except GET /api/health — uses the shared { success, data } envelope.

Response shape

{ "success": true, "data": {}, "meta": {} }
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid request data",
    "statusCode": 400,
    "requestId": "req_xxx"
  }
}

Endpoint groups

Key endpoints (quick index)

ActionMethodPath
List servicesGET/api/services
Check availabilityGET/api/availability?date={YYYY-MM-DD}&branchId={id}
Submit booking requestPOST/api/bookings
Get booking statusGET/api/bookings/{id}
Submit campaign leadPOST/api/leads
Health checkGET/api/health

AI-discovery files

A complete, auto-generated reference (via fumadocs-openapi from a published OpenAPI spec) is a planned follow-up. This page documents the stable, agent-facing surface in the meantime.

OpenReport an issue

Was this page helpful?

On this page