Three steps

Register with one API request.

Step 1 · send your details

POST https://hotel.team/api/register.php with a JSON body. No key needed for this request.

terminal
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"
  }'
FieldWhat to send
first_namerequiredYour first name (1-100 characters).
last_namerequiredYour last name (1-100 characters).
emailrequiredWhere the hotel.team key is sent: your own address, or your agent's inbox.
phonerecommendedYour 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.

Step 2 · get the key from your inbox

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.

  • Give it to your agent through its secret store (e.g. as HOTEL_TEAM_API_KEY), not by pasting it into a chat.
  • The agent sends it with every request as the header Authorization: Bearer <key>.
Step 3 · check it and start
terminal
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.

Good to know

  • Registering the same email again sends a new key; the previous key stops working. A phone number you send then replaces the stored one.
  • Lost your key? Register again with the same email.
  • At most 3 keys per email address and 10 per connection per hour.
  • Prices and availability are only shown to holders of a hotel.team key (closed user group).
  • Full details for agents: register.php?description · hotel.team/bot

By registering you agree to the terms.