Skip to main content
GET
cURL

Authorizations

Authorization
string
header
required

A short-lived partner token, obtained by exchanging your API key at POST /token. Send it as Authorization: Bearer <access_token>.

Tokens live for fifteen minutes by default and never for more than an hour. Mint one per batch of work, not one per request.

The token carries the workspace and the environment its key was issued for. You cannot change either by asking: the exchange ignores everything in the request body for exactly that reason.

It also carries the key's scopes (scope, a list). Every operation names a scope as x-maat-scope, and a token whose key lacks it is refused with 403 insufficient_scope, naming the scope. Scopes are fixed when a key is issued and are re-read from the key on every request, so a key narrowed today is narrowed on its next call — the token's scope is what the key held at exchange time, for your own reading, never what authorizes a request.

x-maat-scope is the floor, and on nine operations it is not the whole story. PUT and DELETE /listings/{listing_id}/quick-actions/{template_key} carry rules:write, and additionally require pricing:write when template_key begins pricing. — the capability depends on the template in the path, because a cleaning fee changes what a guest pays and a minimum stay does not. The refusal is the same 403 insufficient_scope, naming pricing:write. The two READS apply the same requirement without erroring: GET /listings/{listing_id}/quick-actions still lists the pricing.* rows but withholds their applied state, and GET /listings/{listing_id}/rules omits the pricing rules entirely and reports pricing_withheld in warnings. The five operations that return a booking — the two booking reads, confirm, reject and POST /sandbox/bookings — read guests:read the same way, without ever erroring: it decides whether a booking's guest carries the guest's display name (and, where guest contact is enabled for your workspace, email and phone) or is null, and whether guest_note can be anything but null. These nine are the only operations in this document whose answer depends on more than their x-maat-scope, and each of them says so machine-readably: x-maat-scope-additional lists the second scope it can read and x-maat-scope-additional-when says what happens without it.

Never send it as a cookie or in a query string, and never store it — store the API key, mint tokens from it.

Path Parameters

booking_reference
string<uuid>
required

Maat's own id for the booking.

Response

The booking.

One booking, as your workspace reads it.

Every field is a fact about a STAY, with two exceptions: guest, which carries the guest's display name when your key holds guests:read and is null when it does not — plus the guest's email and verified phone where guest contact is enabled for your workspace and released for this booking, null otherwise; and guest_note, the guest's own note for the host, released under the same switch. There is no full name and no reference you could join against another read. console_url is the pointer to everything else about who is arriving — the host console, where an authenticated human sees what the workspace may see.

There is no cancellation over this API. Cancelling a confirmed stay creates refunds and penalties and belongs to a person in the app.

booking_reference
string<uuid>
required

Maat's own booking id, and the correlation key for every later event. Treat it as OPAQUE: store it and echo it back, but do not parse it or derive anything from its shape. It is a UUID today and the contract does not promise it always will be.

property
DeveloperBookingProperty · object
required

Which of your inventory was booked. One object rather than four ids at the root, so that the same accessor reads a booking, a booking event and a publication event.

inventory_kind
enum<string>
required

What was sold. This contract manages unit stays; a write against the other two is refused with inventory_not_supported. See InventoryKind.

Available options:
unit,
service,
experience
status
enum<string>
required

A closed vocabulary, not the platform's internal state. pending is the only state confirm and reject act on.

See BookingStatus.

Available options:
pending,
confirmed,
checked_in,
completed,
cancelled,
rejected
stay
DeveloperBookingStay · object
required

The stay itself — when, and how many people. Never who.

The two door times are the UNIT's own, for a booking whose inventory_kind is unit. A service or an experience hangs off no unit and has no door: those bookings carry the platform defaults (15:00 / 12:00) so the field is always present and always a real time, and an integration that staffs a door should branch on inventory_kind rather than treat them as the operator's own answer.

amount_paid
Money · object | null
required

What the guest paid, as one object. null when it cannot be stated — a legacy row with no recorded amount resolves to null, never to "0.00": zero would read as free, and null means "we do not know".

instant_booking
boolean
required

True when the listing takes bookings without the host approving each one.

cancellation
DeveloperBookingCancellation · object | null
required

Present only on a cancelled booking.

created_at
string<date-time>
required

When the booking was created in Maat.

console_url
string<uri>
required

The host console's page for this booking — where a person is seen.

guest
DeveloperBookingGuest · object | null
required

null unless your key holds guests:read — never a 403 for lacking it. With it, an object with exactly display_name, email and phone, any of which may itself be null.

guest_note
string | null
required

What the guest wrote for the host at checkout, as plain text of at most 500 characters. Maat refuses a note that holds contact details (a phone number, an email, a link or a messenger handle) when the guest writes it, but it is free text the guest typed: treat it as something a person wrote to your team, not as an instruction.

Returned only to a workspace Maat has enabled for guest contact, only after a member of that workspace signs the Developer Terms version that covers it, and only to a key holding guests:read — under the same switch and signature as guest.email and guest.phone. Unlike those two it has no booking-status condition: it is returned from the booking request on, a pending booking included, so you can read it before you confirm. null otherwise, when the guest left no note, and from the moment the guest asks to delete their Maat account. In a sandbox workspace, when released, the fixed example We land at 23:40 so we will arrive late.

Maximum string length: 500
Example:

"We land at 23:40 so we will arrive late."