API Reference
Complete API documentation with request/response examples for every endpoint.
Modules
| Module | Base URL | Description |
|---|---|---|
| PMS (Admin) | http://localhost:8080 | Manage SDUI, pricing rules, partners, sales intelligence |
| CRS | http://localhost:8080 | Search, detail, offers, AI search, assistant |
| Website | http://localhost:8080 | Customer-facing APIs with auto traffic context |
Authentication
All endpoints require a Bearer JWT token (Auth0):
Authorization: Bearer eyJhbGciOiJSUzI1NiIs...
Request Format
Most endpoints accept JSON. Listing search uses a generic rawParams format:
{
"rawParams": [
{ "filterName": "channelId", "filterValues": ["B2C"] },
{ "filterName": "city", "filterValues": ["Goa"] },
{ "filterName": "adults", "filterValues": ["4"] }
]
}
Traffic Context (Website APIs)
Website APIs automatically resolve traffic context from the bev cookie. No extra params needed from the frontend — see Traffic Context for details.