Documentation Index
Fetch the complete documentation index at: https://docs.recepai.ai/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer pms_live_xxx or Bearer pms_test_xxx |
Content-Type | Yes | application/json |
Idempotency-Key | Yes | Unique key for this request (1–255 chars). See Idempotency. |
Request Body
Field Reference
| Field | Type | Required | Description |
|---|---|---|---|
pmsGuestId | string | Yes | Your PMS’s own reservation or guest identifier. Must be unique among active guests. Max 255 chars. |
lastName | string | Yes | Guest last name. Max 100 chars. |
roomNumber | string | Yes | Room number. Must match a room in the hotel’s configured room list. |
checkOutDate | string | Yes | Expected checkout date in YYYY-MM-DD format. Must be on or after checkInDate. |
firstName | string | No | Guest first name. Max 100 chars. |
phone | string | No | Phone in E.164 format: + followed by country code and number, no spaces or dashes. Example: +905551234567. |
checkInDate | string | No | Check-in date in YYYY-MM-DD format. Defaults to today if omitted. |
language | string | No | ISO 639-1 language code (en, tr, de, fr, es, ru, etc.). Defaults to en. |
adults | integer | No | Number of adults (1–20). Defaults to 1. |
children | integer | No | Number of children (0–20). Defaults to 0. |
nationality | string | No | ISO 3166-1 alpha-2 country code (US, TR, DE, etc.). |
email | string | No | Guest email address. |
notes | string | No | Free-text notes about the guest (max 2000 chars). Saved as a staff note visible on the guest’s profile. |
Response: Success (200)
| Field | Description |
|---|---|
status | Always "created" on success |
guestId | RecepAI’s internal ID for this guest record |
pmsGuestId | Echo of your PMS guest identifier |
roomNumber | Echo of the assigned room |
requestId | Unique ID for this request (use for support inquiries) |
Response: Room Occupied (409)
Returned when the specified room already has an active guest:The
currentGuest object helps you identify who is currently in the room, so you can resolve the conflict — either check out the previous guest first, or correct the room number.Response: Duplicate Guest (409)
Returned when an active guest with the samepmsGuestId already exists:
Response: Validation Error (400)
Returned when required fields are missing or field values are invalid:Idempotency
If you send the sameIdempotency-Key within 24 hours, the original response is returned without creating a duplicate guest:
_idempotent: true flag tells you this is a cached response from a previous identical request.