Skip to main content
Every request to the PMS API must include a valid API key as a Bearer token in the Authorization header.

API Key Format

Keys follow a prefixed format inspired by Stripe — the prefix tells you the key type at a glance:

How to Authenticate

Include your API key as a Bearer token in the Authorization header of every request:
All POST endpoints also require an Idempotency-Key header. See Testing & Rate Limits for details.

How to Get an API Key

API keys are generated by the hotel administrator (not by RecepAI or the PMS provider):
1

Hotel admin opens Settings → PMS Integration

In the RecepAI admin panel, the hotel staff navigates to their PMS Integration settings page.
2

Hotel admin clicks 'Generate API Key'

The system generates a live key (pms_live_) and a test key (pms_test_) together as a pair. Both full keys are displayed once — after that, only masked previews are visible.
3

Hotel admin shares the key with you

The hotel sends the API key and their hotel slug to your technical team through a secure channel. Recommended options:
  • One-time secret link: onetimesecret.com — the link self-destructs after one view
  • Password manager sharing (1Password, Bitwarden, etc.)
  • Encrypted email (PGP, S/MIME)
Security: Handle keys carefully.The API key grants full read/write access to the hotel’s guest data.Never share via: Plain email, WhatsApp, SMS, Slack DM, or any unencrypted messaging app. These leave the key in chat history permanently.Never expose in: Client-side code, public repositories, or log files.If a key is compromised, the hotel admin can revoke it immediately and generate a new one.

Key Lifecycle

Authentication Errors

If authentication fails, you’ll receive one of these responses: Missing or malformed header (401):
Invalid or wrong API key (401):
Revoked API key (401):
The KEY_REVOKED error is the only authentication error with a specific code. All other failures return a generic UNAUTHORIZED to prevent key enumeration attacks.