PahunaStay Developer API Online
REST API · v1

PahunaStay API

The backend service for PahunaStay: properties, rooms, bookings, payments and accounts. It returns JSON only and has no browsable pages.

BASE URL https://api.pahunastay.com/api/v1

Conventions

JSON everywhere

Send Accept: application/json. Every response, errors included, uses the same envelope.

Authenticated sessions

Sign in with POST /auth/login. Protected endpoints return 401 without a valid session.

Versioned & rate limited

Routes live under /v1. Sensitive endpoints are throttled and answer 429 when exceeded.

Quick start

Request
# Fetch featured properties (public)
curl https://api.pahunastay.com/api/v1/properties/featured \
  -H "Accept: application/json"
Response
{
  "status": "success",
  "code": 200,
  "message": "Featured properties retrieved successfully.",
  "data": { "properties": [ … ] }
}
Errors use "status": "error" with the HTTP code and a message. Validation failures (422) also include an errors object keyed by field.