> ## Documentation Index
> Fetch the complete documentation index at: https://developer.maatstays.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Manage your Maat Stays listings, calendars, rates, bookings and reviews from your own system.

Maat Stays is a property-rental and short-stay platform. This API is how your own software
manages what you sell on it:

```text theme={null}
Your system  ──  properties, photos, calendar blocks, rates, replies  ──▶  Maat Stays
Your system  ◀──  booking, calendar, listing and review notifications  ──  Maat Stays
```

## Who this is for

A host, or a property company, with its own system — a website, a booking engine, an app, an
internal tool — that wants to manage its Maat listings from that system rather than one screen
at a time. From one place you keep your properties, photos, calendars and rates in step, answer
booking requests, reply to reviews, read what you have earned, and hear about every booking the
moment it happens.

Everything is scoped to **your own workspace**. You issue your keys yourself, from your own
Maat account, and a key reaches that workspace's inventory and nothing else. There is one
contract and everybody uses the same one — [Get access](https://developer.maatstays.com/guides/developer-access.md).

## Environments

One vocabulary, settled here and used everywhere else.

* **One host.** `https://maatstays.wtf/v1`. There is no second URL, no environment
  subdomain and no header that switches anything.
* **A key is bound to one workspace**, chosen when the key is issued and never changeable.
* **A workspace is either a sandbox or a production workspace** — the host console calls
  production **Live**. A sandbox is a real Maat tenancy with real endpoints and real writes,
  kept off every public surface — [Sandbox](https://developer.maatstays.com/guides/sandbox.md).
* **The token exchange tells you which one you hold.** `POST /v1/token` returns a `sandbox`
  field. It is the only place that answer is published, and it is decided by your key rather
  than by anything you send.

**Every operation does the same real work on both.** The sandbox is where you build an
integration and prove it; production is the workspace your guests book, and a call there
changes what they see. One operation is sandbox-only:
[`POST /v1/sandbox/bookings`](https://developer.maatstays.com/api-reference/sandbox/create-sandbox-booking), the booking
fixture — a production key calling it gets `409 sandbox_only` and nothing is created. Every
webhook event is delivered for every workspace with a verified endpoint, sandbox and
production alike. Each operation's reference page carries this machine-readably as
`x-maat-availability`; the [changelog](https://developer.maatstays.com/guides/changelog.md) records every change.

## Your first four calls

Start with a key for a sandbox workspace — [Get access](https://developer.maatstays.com/guides/developer-access.md). The same
four calls work unchanged with a Live key, against your live inventory.

**1. Exchange your key for a token**

`POST /v1/token` with your API key returns a short-lived, workspace-scoped bearer token. One
paragraph covers the whole model — [Authentication](https://developer.maatstays.com/guides/authentication.md).

**2. Push a property**

`PUT /v1/properties/{provider_id}` — keyed by your own system's identifier, so retrying is
always safe. [Properties](https://developer.maatstays.com/guides/properties.md).

**3. Block some nights**

`PUT /v1/blocks/{external_uid}` holds a range on that property's calendar, and `GET
            /v1/blocks` reads it back. [Calendar blocks](https://developer.maatstays.com/guides/calendar-blocks.md).

**4. Register a webhook endpoint**

`PUT /v1/webhooks/endpoint`, echo the signed challenge, and booking notifications arrive at
your server. [Webhooks](https://developer.maatstays.com/guides/webhooks.md).

Every endpoint in the reference carries runnable samples in cURL, Node, Python and Go, and
the playground makes real calls with your own token, so give it a sandbox one — nothing here
embeds a credential. If you build with an AI assistant, point it at our MCP server first so
it reads the real field names instead of guessing at them:
[Connect your AI assistant](https://developer.maatstays.com/guides/connect-your-ai-assistant.md).

## What crosses the wire about a guest

Worth knowing before you design around it, though nothing above depends on it.

**Nothing about a guest travels inbound — ever.** When a stay is sold through your own
system, a calendar block says "these nights are gone" and nothing else: there is no field for
a name, a reservation amount, or a free-text note, and sending one is a validation error rather
than a silent drop.

**Nothing identifies a guest outbound either.** When a guest books one of your listings *on
Maat*, your endpoint receives the stay dates and door times, the party size and the booking's
status — no name, no contact details, no guest identifier. A booking read can carry the guest's
display name for a key holding `guests:read`, and their email, phone and note for the host only
for a workspace Maat has enabled for guest contact. Each booking event carries a
`console_url` that opens the booking in your Maat host console, where the people on your team
who may see the guest can. The whole boundary, in one page:
[The data boundary](https://developer.maatstays.com/guides/data-boundary.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.