# Coral Horizon public API

Base URL: `https://coraladmin.theokello.com/api/v1`. All responses are JSON.

## GET /health
Returns `{"ok": true}`. Use for uptime checks.

## GET /content
Published content for the public site: `properties`, `rooms`, `packages`, `safaris`, `destinations`, `experiences`, `posts`, `gallery`, `testimonials`, `team`, and `settings` (company details, social links, home and about text). Image values are `site:name` (an illustration/photo bundled with the site), or an absolute URL for uploads. Sends an `ETag` and `Cache-Control: public, max-age=60`. Unpublished items are never included.

## POST /enquiries
Header `X-Site-Key: <CORAL_SITE_KEY>` is required (401 otherwise). Optional `X-Client-Ip` carries the visitor's IP. Throttled to 20 requests a minute.

| Field | Rules |
|---|---|
| type | required: stay, safari, both, transfer, custom |
| name | required, max 120 |
| email | required, valid, max 190 |
| phone, dest | optional text |
| arrival, departure | optional dates; departure not before arrival |
| adults (1-50), children (0-50) | optional integers |
| message | optional, max 3000 |
| property, package | optional slugs |

201: `{"ok": true, "reference": "CH-261115-AB12", "message": "..."}`. 422: validation errors in `errors`.
The booking appears in the admin as status "new" and emails go to staff and guest (a mail failure never loses the booking).
