POST https://hotel.team/api/register.php with a JSON body. No key needed for this request.
curl -X POST https://hotel.team/api/register.php \ -H "Content-Type: application/json" \ -d '{ "first_name": "Anna", "last_name": "Jansen", "email": "anna@example.com", "phone": "+31 6 12345678" }'
| Field | What to send | |
|---|---|---|
first_name | required | Your first name (1-100 characters). |
last_name | required | Your last name (1-100 characters). |
email | required | Where the hotel.team key is sent: your own address, or your agent's inbox. |
phone | recommended | Your phone number with country code, e.g. +31 6 12345678. Hotels need a phone number for every booking; with it stored, the checkout opens straight on the card payment. |
Answer: {"ok":true,"data":{"email":"anna@example.com","sent":true,...}}. The key itself is never in the answer, only in the email.
Within a minute you receive an email from noreply@hotel.team, subject "Your hotel.team key". The key looks like ht- followed by 24 letters and digits.
HOTEL_TEAM_API_KEY), not by pasting it into a chat.Authorization: Bearer <key>.curl -H "Authorization: Bearer $HOTEL_TEAM_API_KEY" https://hotel.team/api/me.php
Shows the name, email and phone the key belongs to. Everything else is described in the API manifest: search hotels, view one hotel, prebook, pay on a secure checkout page, and look up your bookings.
By registering you agree to the terms.