> ## 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.

# The data boundary

> What this API carries about a person, and what it never carries.

This API moves a workspace's **business** data. A person is seen in the Maat host app, by a
human who signed in. That split is mechanical rather than a policy anyone has to remember,
and this page is what it means in practice.

## Three classes

Everything Maat holds falls into one of three, and each has a different answer.

| Class | What is in it | On this API |
| :- | :- | :- |
| **A — Personal data** | Identity documents and verification records; the IDs guests share with their host, their own or a companion's; a guest's name, email, phone, address, date of birth, nationality or user id; a workspace's members; chat messages and attachments; billing profiles, withdrawal methods and card data; login, device and IP signals. | **Never**, with three exceptions: the public reviewer label on the reviews read (`"Sarah M."`); a booking's `guest.display_name` for any `guests:read` key (`"Sarah M."`); and a booking's `guest.email`, `guest.phone` and `guest_note` for a workspace Maat has enabled for guest contact — see below. |
| **B — Commercial internals** | The per-booking payment split — commission, service fee, PSP fee, host payout, platform revenue — the commission rate, transaction ids, the nightly breakdown, which rules were applied, coupon and exchange-rate snapshots. | **Never per booking.** A booking carries `amount_paid` as one `{ value, currency }` object and nothing behind it. |
| **C — Workspace business data** | Properties, units, listings, photos, amenities, house rules, door times, calendars and blocks with their provenance, pricing configuration, quick actions and rules, booking **facts**, reviews in their public form, webhook configuration and delivery envelopes — including, on the single-delivery read, the exact body that was sent — the reference catalogues. | **Yes** — each through a projection that lists its fields rather than passing a row through. |

## What you never receive

There is no guest identity anywhere on this API except two copies of one shortened form — the
public reviewer label on the reviews read (`"Sarah M."`, the same string the public listing
page shows), and a booking's `guest.display_name` when your key holds `guests:read` — and, for
a workspace Maat has enabled for guest contact once a member of it has signed the Developer
Terms version that covers it, a confirmed booking's `guest.email` and `guest.phone`, and any
booking's `guest_note`, the note the guest wrote for the host. No full name, no user id, and no
reference you could join back to a person on a later read — not on a read, and not on any
webhook. Every other workspace receives no email, no phone number and no note at all. A booking event tells you what is happening on your inventory, never who it is happening
to, and a delivery body read back from the delivery log is the same body, so it carries none
either.

A booking, on this contract, is a `booking_reference` and facts about a **stay**: the dates,
the property's own door times, the party size as a count, the status, what was paid, the
listing and unit it belongs to, and whether the listing takes instant bookings — plus
`guest`, which is `null` unless your key holds `guests:read`, and `guest_note`, which is `null`
unless guest contact releases it ([below](#the-guest-note)). That is the whole shape, and no
amount of nesting would change it.

## The guest display name

`guests:read` releases the guest's first name and last initial on the five operations that
return a booking. It is there so an integration can run the stay — an arrivals
board, a welcome — without a person looking each booking up in the console. It is released
under the Developer Terms, which limit it to that purpose, require you to delete it when you
no longer need it for that, and require you to stop using it once the guest deletes their Maat
account.

We make two things true on our side. The name is already shortened before it reaches this API,
so the full name is never on the wire to be leaked. And it reads `null` from the moment a
guest's account erasure begins — on every read after that, so an integration that refreshes
what it holds from this API stops holding the name with it. What we cannot do is reach a copy
already on your systems; that is the Terms' part.

Your request history in the Maat console keeps booking responses as they were answered,
including the guest's display name when your key holds `guests:read`. A released email, phone
number or guest note is never kept there: the history shows `[redacted]` in its place.

Two things follow that are worth stating because integrations guess at both:

* **`guests` is a count, never a list.** There is no per-guest anything. When it is `null`
  that means "not stated here", never "nobody is coming" — and the unit's capacity is not a
  substitute for it.
* **`amount_paid` is one object.** A decimal string beside its currency, never two fields you
  pair yourself. `null` means the amount cannot be stated; a stay that really cost nothing is
  `"0.00"`, because zero is a price.

The rule is enforced rather than reviewed. Every projection is a hand-built list of fields —
nothing is spread, nothing is passed through — and each one's test asserts the exact key set,
that no key path matches a shared sensitive-name pattern, and that no class-A or class-B
**value** appears anywhere in the serialized bytes, which is the case where something is
smuggled under an innocent-looking key. The one exception is a booking released for guest
contact: its `guest.email`, `guest.phone` and `guest_note` carry the guest's email, phone and
note for the host, under those three keys and nowhere else.

## Guest email and phone

Guest contact is offered to selected workspaces only. Where Maat has enabled it for yours, a
booking's `guest` also carries the guest's account email (`guest.email`) and verified phone
number in E.164 form (`guest.phone`). Both keys are always present on `guest`; each is `null`
unless every one of these holds:

* your key holds `guests:read`;
* Maat has enabled guest contact for your workspace, and a member of your workspace has signed
  the Developer Terms version that covers it **after** it was enabled. Once Maat enables it, the
  Developer console shows "Waiting for your signature" and asks a member to sign the Developer Terms —
  again, if they already signed that version; until then `email` and `phone` are `null`;
* the booking is confirmed, checked in or completed — never pending, rejected or cancelled, and
  a booking cancelled after confirmation goes back to `null`;
* the guest's Maat account is active — from the moment the guest asks to delete it, both read
  `null`.

`guest.phone` is `null` as well when the guest has not verified a phone number with Maat, and
`guest.email` when the account signed up with a phone number only. If Maat turns guest contact
off for your workspace, the next request returns `null` again. In a sandbox workspace, when
released, `email` and `phone` are the fixed example values `guest@sandbox.invalid` and
`+10000000000`.

The Developer Terms version that covers guest contact is the one that sets what you may use
these details for, whether you may share them onward, and when you must delete them; until a
member of your workspace has signed it, both stay `null`. Webhook events carry neither. Whether
guest contact can be enabled for your workspace is a conversation with your Maat contact.

## The guest note

At checkout a guest can leave a note for the host. On this API it is `guest_note`, at the top
level of a booking, and it is the one string on the wire a guest wrote themselves. Three things
bound it before it is ever returned:

* **It is checked when it is written.** Maat refuses a note that holds a phone number, an email
  address, a link or a messenger handle at checkout, so contact details reach you through
  `guest.email` and `guest.phone` or not at all.
* **It is capped.** Plain text, at most 500 characters.
* **It is released under the same switch as guest contact.** `guest_note` is `null` unless your
  key holds `guests:read`, Maat has enabled guest contact for your workspace, a member of your
  workspace has signed the Developer Terms version that covers it after it was enabled, and the
  guest's Maat account is active. It has no booking-status condition: a note is written for the
  host deciding a request, so it is returned from the request on, `pending` included, and stays
  on a `rejected` or `cancelled` booking. It is `null` when the guest left none.

It is still text a person typed. Show it to your team as the guest's words and never act on it
as an instruction. If Maat turns guest contact off for your workspace, the next request returns
`null`; webhook events never carry it; and in a sandbox workspace, when released, it is the
fixed example `"We land at 23:40 so we will arrive late."`.

## `console_url`, and who is arriving

Every booking, review, listing and property view carries a deep link into the Maat host
console, and so does every booking event.

That answers everything about who is arriving beyond what a booking's `guest` carries, without
moving it onto this wire: follow the link, sign in as a person, and see what a person may see. It is slower than a
field on a JSON response, and that is what it is for — an arrivals board built this way is
built out of the platform's own access control, which a workspace can grant, audit and
revoke, rather than out of a key nobody can revoke on its own.

## Nothing about a guest travels inbound

The other direction is simpler: there is no field for it anywhere.

A calendar block says *these nights are gone* and nothing else — no name, no reservation
amount, no free-text note of any kind, because the obvious thing anyone writes in a free-text
field is a guest's name. A host calendar block has a closed `category` and no `note`. The
property push has a postal address and no delivery detail. `building`, `floor`, `apartment`
and `directions` are written only through the address replacement
(`PUT /v1/properties/{property_id}/address`) — the fourth is 400 characters of free text —
because they are your own operational notes about your own building, and they read back to
your own workspace alone. Where a property is filed — `subdivision_code` and `city_id` — is a
catalogue code and a catalogue id in both directions, never text. Sending a field this API does not declare is a
`400 validation_failed` naming it, never a silent drop, so an integration framework that
"helpfully" attaches reservation details finds out on its first sandbox call.

Maat has no relationship with somebody whose stay was sold through your own system, and
therefore no lawful basis to hold anything about them. The schema is what makes that true
rather than a promise.

## What the pricing mode tells you when you do not hold it

`GET /v1/listings/{listing_id}/pricing-mode` answers a caller who does **not** hold the mode
with two fields: the listing id, and `external` or `rules`. Not which vendor, not their
horizon, their currency, or how they price a night they have not covered — those belong to
that tool's own configuration.

Your own take tells you what you set, because it is yours.


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