Hostemi developer resources: API, MCP, OpenAPI, CLI

Hostemi is a property management system and channel manager for short-term rentals. It keeps one calendar of availability, rates and bookings across Airbnb, Booking.com, Expedia, Vrbo and your own booking website, and you can reach it through four programmable surfaces: a public REST API, an MCP server, a command line tool and webhooks. All of them manage the same workspace, with the same permissions you see in the web app. This page is the reference point; per-client setup lives on the AI agents page.

Full documentation, with one page per endpoint and per platform: hostemi.com/docs. It also holds the product guide, from connecting your platforms to billing.

At a glance

REST API
https://api.hostemi.com, public routes under /public/v1
OpenAPI description
https://hostemi.com/openapi.json, OpenAPI 3, served directly with HTTP 200 and no redirect
Scopes and permissions
Every scope name is declared in that document under components.securitySchemes, for both the API key and the OAuth 2.1 authorization code flow
MCP server
https://mcp.hostemi.com/mcp, streamable HTTP: 45 job-shaped tools. Every fine-grained tool: https://mcp.hostemi.com/mcp/full
Authentication
An API key sent as the whole Authorization header, or an OAuth 2.1 authorization code token with mandatory PKCE (S256), scoped consent and expiry
Command line tool
the command is hostemi (npm package hostemi). Manual: /docs/cli
Webhooks
HMAC-SHA256, signed in the X-Szh-Signature header, in Stripe's t=…,v1=… shape
Creating keys
Self-serve, inside Hostemi under Settings
Machine-readable site
https://hostemi.com/llms.txt, /sitemap.xml, and a .md twin of every public page

Getting started is self-serve

  • Sign-up: self-serve at https://hostemi.com/signup. Registration is free and involves no sales call, no demo request and no manual approval.
  • API keys: self-serve. You create them yourself after signing up, inside the app under Settings: an API key for the REST API and the CLI, an MCP key for chat clients. Nobody has to issue one for you, and no sales contact is involved. A key is shown once, at creation.
  • Free tier: there is no permanently free plan. Every plan starts with a 7 day free trial. A card is collected when the trial starts, because checkout is a Stripe subscription session, and nothing is charged during the trial.
  • Support: [email protected].

Public REST API

The REST API answers at https://api.hostemi.com, and the public routes live under the /public/v1 prefix. It manages the same workspace as the web app, straight from your own code.

Authentication

Every request carries an API key in the Authorization header. You create the key in Hostemi under Settings; you do not need to write to us for it. The key is shown once, at the moment it is created, and cannot be retrieved later, so save it right away. Keys can be narrowed: their permissions follow the owner's current role, and the key of a user who leaves the workspace stops working.

If a key belongs to more than one workspace, the showorg header picks the one the call applies to.

What v1 covers

The public REST is the PMS v1 surface. Reading needs pms:read, writing needs pms:write. A missing scope is a 403 { code: SCOPE_REQUIRED, scope }. Writes accept the Idempotency-Key header (24 hours).

  • Properties and units: GET https://api.hostemi.com/public/v1/properties, GET https://api.hostemi.com/public/v1/units
  • Calendar, rates, blocks: GET https://api.hostemi.com/public/v1/calendar, GET/PUT https://api.hostemi.com/public/v1/rates, POST/DELETE https://api.hostemi.com/public/v1/blocks
  • Bookings: list, detail, manual creation, cancellation, date changes: https://api.hostemi.com/public/v1/reservations
  • Channel health, revenue, guest messages: GET https://api.hostemi.com/public/v1/connections, GET https://api.hostemi.com/public/v1/reports/summary, GET https://api.hostemi.com/public/v1/messages
  • Listing import: POST https://api.hostemi.com/public/v1/onboarding/import-link
  • Webhooks when a booking is created, changed or cancelled

Status and discovery without authentication

GET https://api.hostemi.com/public/v1/status is the only route that answers without a key. It returns the API version, the server's exact time in UTC, and the absolute URL of every machine-readable document: the OpenAPI description, the OAuth metadata, the MCP endpoint. It returns no workspace data and takes no parameters. It is the fastest way for an agent to decide whether it can reach us, and where to look for the rest.

Errors

Every error returns JSON. In errors raised by Hostemi, the msg field carries the human sentence; calls that fail request validation get the framework's shape (statusCode, message, error). The permission 403 { code: SCOPE_REQUIRED, scope } names the missing scope (pms:read or pms:write) and the key owner's current role, because the most common cause is not a badly created key but a demoted user. The ApiError schema in the OpenAPI document describes all of this in machine-readable form, per status code, including whether a retry is worth it.

Rate limits

Every response carries the RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset (in seconds) and RateLimit-Policy headers, with a separate budget per route. A 429 also comes with Retry-After. Do not wait for the 429: the remaining value lets you slow down ahead of time.

Versioning and deprecation

The version is in the path: every public call lives under /public/v1. A breaking change would ship as a new version (/public/v2), and v1 keeps its contract. Additions (a new optional field, a new route, a new enum value) happen inside v1, so your client code should ignore fields it does not know.

If we were to retire a route, its responses would get a Deprecation: true header, a Sunset header with the date after which it stops working, and a Link header with the details. The Sunset date is never less than 180 days after the first Deprecation header. Nothing is being deprecated right now.

MCP server

The MCP server lives at https://mcp.hostemi.com/mcp, over streamable HTTP (spec 2025-03-26: one endpoint, POST / GET / DELETE, Mcp-Session-Id and MCP-Protocol-Version headers). The key travels in the Authorization: Bearer header. Through it your agent sees the same calendar, rates, bookings and channels you do.

  • Keys for clients: an MCP key starting with hst_mcp_…, from Settings. The MCP server deliberately rejects REST keys starting with hst_…, and says why.
  • Keys for apps: an OAuth access token starting with pos_…. It expires, can be refreshed, and is only valid for the resource it was issued for.
  • Two surfaces, one sign-in and the same approval rules: https://mcp.hostemi.com/mcp carries 45 tools shaped like a host's jobs, and https://mcp.hostemi.com/mcp/full every fine-grained tool, for coding agents with tool search.
  • Every change is first a stored preview (chg_…); nothing changes until apply_change succeeds, and the host's approval setting decides what it asks.
  • Ready-made setup blocks for Claude, ChatGPT, Grok, Muse, Hermes and OpenClaw are in Settings, and the walkthroughs are on the AI agents page.

Tools on https://mcp.hostemi.com/mcp

18 that read: get_context, get_calendar, explain_night, get_pricing_rules, list_bookings, get_booking, list_conversations, get_conversation, list_reviews, get_report, get_listing, get_platforms, get_website, list_website_blocks, get_scheduled_messages, get_activity, get_pricing_signals, open_hostemi.

27 that change something: change_prices, change_stay_rules, block_dates, unblock_dates, save_pricing_rules, apply_change, create_booking, update_booking, cancel_booking, answer_booking_request, record_payment, draft_reply, send_message, update_conversation, reply_to_review, update_listing, get_add_listing_link, get_platform_connection_steps, change_platform_settings, edit_website_draft, check_website_before_publishing, save_scheduled_message, link_waiting_booking, set_booking_status, answer_change_request, create_website, set_message_schedule. What each one does is in the MCP documentation.

Command line tool

The command is hostemi (npm package hostemi), and you sign in with browser approval: hostemi login. It calls the public PMS v1 API. The manual is in the documentation.

The CLI writes the JSON response to standard output, status and errors to standard error, and exits non-zero when a run fails, so the calling program knows what happened.

Webhooks

You set up webhooks in Hostemi, and every delivery is signed. The signature arrives in the X-Szh-Signature header, in the form t=<unix seconds>,v1=<hex hmac-sha256>. That is deliberately the same shape as Stripe's signature, so existing verification libraries work with it.

  • The signature is computed over the raw request body. If your framework parses it into JSON and serializes it again, you get a different string and verification fails.
  • The timestamp is part of the signature, which protects against replay. The tolerance is 300 seconds.
  • You get the signing secret when you create the webhook, and you can regenerate it in Hostemi at any time.

OAuth apps

If you are not managing your own account but other people's, from an app, you use OAuth. Authorization runs through the authorization code flow, and the following are mandatory.

  • A PKCE S256 challenge on every request. Clients without a secret can register, but not without PKCE.
  • The redirect_uri must exactly match the registered list.
  • Tokens expire, and refresh tokens are rotated. We only store them hashed.
  • A token is good for the scopes the user consented to, intersected on every call with the user's current role. A downgrade takes effect on the next call.
  • An app can be authorized by a workspace member with the SUPERADMIN role.

Access and first steps

The whole process is self-serve: you do not need to talk to sales or request a demo.

  • Sign up at /signup. Registration is free.
  • Add your property and connect your booking channels.
  • Create a key under Settings: an API key for the REST API and the CLI, an MCP key for your chat client.
  • Every plan starts with a 7 day free trial. We ask for a card to start the trial, but nothing is charged during it, you pay nothing today, and you can cancel any time before it ends. Prices are in the pricing section.

For machines

If you are writing an agent, do not parse HTML. Every public page on this site has a Markdown version: add .md to the end of the path, and the home page is /index.md.

If you get stuck

Write to [email protected], or use the form on the Help page. On working days we usually reply within one day.

Connect your agent to your calendar

Sign up, connect your accounts, and create the key yourself under Settings. No sales call needed.

7 days free · 0% booking commission · cancel anytime