curl --fail-with-body "https://maatstays.com/v1/bookings?status=confirmed&check_in_from=2026-09-01&page_size=100" \
-H "Authorization: Bearer $MAAT_PARTNER_TOKEN"const headers = { Authorization: `Bearer ${process.env.MAAT_PARTNER_TOKEN}` };
for (let page = 1; ; page += 1) {
const url = new URL('https://maatstays.com/v1/bookings');
url.searchParams.set('status', 'confirmed');
url.searchParams.set('check_in_from', '2026-09-01');
url.searchParams.set('page', String(page));
url.searchParams.set('page_size', '100');
const res = await fetch(url, { headers });
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.detail}`);
for (const booking of body.items) {
console.log(booking.booking_reference, booking.stay.check_in, booking.status);
}
if (!body.has_more) break;
}
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['MAAT_PARTNER_TOKEN']}"}
page = 1
while True:
res = requests.get(
"https://maatstays.com/v1/bookings",
headers=headers,
params={
"status": "confirmed",
"check_in_from": "2026-09-01",
"page": page,
"page_size": 100,
},
timeout=30,
)
body = res.json()
if res.status_code >= 400:
raise RuntimeError(f"{body['code']}: {body.get('detail')}")
for booking in body["items"]:
print(booking["booking_reference"], booking["stay"]["check_in"], booking["status"])
if not body["has_more"]:
break
page += 1
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"net/url"
"os"
"strconv"
)
type stay struct {
CheckIn string `json:"check_in"`
}
type booking struct {
BookingReference string `json:"booking_reference"`
Status string `json:"status"`
Stay stay `json:"stay"`
}
type page struct {
Items []booking `json:"items"`
HasMore bool `json:"has_more"`
}
func main() {
token := os.Getenv("MAAT_PARTNER_TOKEN")
for pageNum := 1; ; pageNum++ {
query := url.Values{}
query.Set("status", "confirmed")
query.Set("check_in_from", "2026-09-01")
query.Set("page", strconv.Itoa(pageNum))
query.Set("page_size", "100")
req, _ := http.NewRequest(http.MethodGet,
"https://maatstays.com/v1/bookings?"+query.Encode(), nil)
req.Header.Set("Authorization", "Bearer "+token)
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
var body page
err = json.NewDecoder(res.Body).Decode(&body)
res.Body.Close()
if err != nil {
log.Fatal(err)
}
if res.StatusCode >= 400 {
log.Fatalf("list failed: %d", res.StatusCode)
}
for _, b := range body.Items {
fmt.Println(b.BookingReference, b.Stay.CheckIn, b.Status)
}
if !body.HasMore {
break
}
}
}
{
"items": [
{
"booking_reference": "5f3a91c2-e8b4-4a71-9c30-1e2f3a4b5c6d",
"property": {
"provider_id": "my-prop-9001",
"listing_id": "7c4b1e58-2a90-4f61-b3d2-5e8a1c0f7d24",
"unit_id": "8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804",
"property_id": "3c9d1f42-7b60-4a18-9e55-0d2a6f8c31b7"
},
"inventory_kind": "unit",
"status": "confirmed",
"stay": {
"check_in": "2026-09-12",
"check_out": "2026-09-16",
"check_in_time": "15:00",
"check_out_time": "12:00",
"guests": 3
},
"amount_paid": {
"value": "5000.00",
"currency": "EGP"
},
"instant_booking": true,
"cancellation": null,
"created_at": "2026-08-30T18:42:11.000Z",
"console_url": "https://maatstays.com/bookings/5f3a91c2-e8b4-4a71-9c30-1e2f3a4b5c6d",
"guest": {
"display_name": "Sarah M.",
"email": null,
"phone": null
},
"guest_note": null
}
],
"has_more": false
}List bookings on your inventory
One page of what is happening on your inventory, newest first.
Every field is a fact about a STAY, with two exceptions: guest, filled only when
your key also holds guests:read, and guest_note. Without that scope guest
and guest_note are null. With it, guest.display_name is the guest’s first
name and last initial ("Sarah M."), and guest.email and guest.phone are
null unless Maat has enabled guest contact for your workspace, your workspace has
signed the Developer Terms version that covers it, and the booking is confirmed.
guest_note, the note the guest wrote for the host, is released under the same
switch and signature on a booking of any status, a pending request included.
There is no full name and no reference you could join against another read. console_url on each booking is the pointer
to everything else about who is arriving: the host console, where an
authenticated human sees what the workspace may see.
Filter with status, listing_id, check_in_from and check_in_to; page with
page and page_size, and keep asking while has_more is true. There is no
total. The two date bounds are inclusive, and an inverted range
(check_in_from after check_in_to) is refused rather than answered with an
empty page.
There is no cancellation over this API, on this operation or any other. Cancelling a confirmed stay creates refunds and penalties and belongs to a person in the app.
A 403 on this operation carries one of two codes — insufficient_scope (the
key lacks bookings:read) or workspace_scope_mismatch (a sandbox/production
mismatch). Branch on code.
curl --fail-with-body "https://maatstays.com/v1/bookings?status=confirmed&check_in_from=2026-09-01&page_size=100" \
-H "Authorization: Bearer $MAAT_PARTNER_TOKEN"const headers = { Authorization: `Bearer ${process.env.MAAT_PARTNER_TOKEN}` };
for (let page = 1; ; page += 1) {
const url = new URL('https://maatstays.com/v1/bookings');
url.searchParams.set('status', 'confirmed');
url.searchParams.set('check_in_from', '2026-09-01');
url.searchParams.set('page', String(page));
url.searchParams.set('page_size', '100');
const res = await fetch(url, { headers });
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.detail}`);
for (const booking of body.items) {
console.log(booking.booking_reference, booking.stay.check_in, booking.status);
}
if (!body.has_more) break;
}
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['MAAT_PARTNER_TOKEN']}"}
page = 1
while True:
res = requests.get(
"https://maatstays.com/v1/bookings",
headers=headers,
params={
"status": "confirmed",
"check_in_from": "2026-09-01",
"page": page,
"page_size": 100,
},
timeout=30,
)
body = res.json()
if res.status_code >= 400:
raise RuntimeError(f"{body['code']}: {body.get('detail')}")
for booking in body["items"]:
print(booking["booking_reference"], booking["stay"]["check_in"], booking["status"])
if not body["has_more"]:
break
page += 1
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"net/url"
"os"
"strconv"
)
type stay struct {
CheckIn string `json:"check_in"`
}
type booking struct {
BookingReference string `json:"booking_reference"`
Status string `json:"status"`
Stay stay `json:"stay"`
}
type page struct {
Items []booking `json:"items"`
HasMore bool `json:"has_more"`
}
func main() {
token := os.Getenv("MAAT_PARTNER_TOKEN")
for pageNum := 1; ; pageNum++ {
query := url.Values{}
query.Set("status", "confirmed")
query.Set("check_in_from", "2026-09-01")
query.Set("page", strconv.Itoa(pageNum))
query.Set("page_size", "100")
req, _ := http.NewRequest(http.MethodGet,
"https://maatstays.com/v1/bookings?"+query.Encode(), nil)
req.Header.Set("Authorization", "Bearer "+token)
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
var body page
err = json.NewDecoder(res.Body).Decode(&body)
res.Body.Close()
if err != nil {
log.Fatal(err)
}
if res.StatusCode >= 400 {
log.Fatalf("list failed: %d", res.StatusCode)
}
for _, b := range body.Items {
fmt.Println(b.BookingReference, b.Stay.CheckIn, b.Status)
}
if !body.HasMore {
break
}
}
}
{
"items": [
{
"booking_reference": "5f3a91c2-e8b4-4a71-9c30-1e2f3a4b5c6d",
"property": {
"provider_id": "my-prop-9001",
"listing_id": "7c4b1e58-2a90-4f61-b3d2-5e8a1c0f7d24",
"unit_id": "8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804",
"property_id": "3c9d1f42-7b60-4a18-9e55-0d2a6f8c31b7"
},
"inventory_kind": "unit",
"status": "confirmed",
"stay": {
"check_in": "2026-09-12",
"check_out": "2026-09-16",
"check_in_time": "15:00",
"check_out_time": "12:00",
"guests": 3
},
"amount_paid": {
"value": "5000.00",
"currency": "EGP"
},
"instant_booking": true,
"cancellation": null,
"created_at": "2026-08-30T18:42:11.000Z",
"console_url": "https://maatstays.com/bookings/5f3a91c2-e8b4-4a71-9c30-1e2f3a4b5c6d",
"guest": {
"display_name": "Sarah M.",
"email": null,
"phone": null
},
"guest_note": null
}
],
"has_more": false
}Authorizations
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.
Query Parameters
Rows per page. The same default and the same ceiling on every list in this API.
A page_size above the maximum is refused with validation_failed naming
the parameter — never silently clamped, because a caller who believes they asked
for 500 and received 200 will stop walking a set they have not finished.
1 <= x <= 200Only bookings in this status.
See BookingStatus.
Where a booking is in its life. A closed vocabulary; pending is the only status
confirm and reject accept.
pending, confirmed, checked_in, completed, cancelled, rejected Response
One page of your bookings.
Whether another page exists. There is no total: counting the whole set to answer one page is work neither of us needs.
Pages are numbered, and the list is newest first, so a row that lands while you are walking shifts the ones behind it. A long walk can therefore see a row twice or miss one. Key what you collect by its own id and treat the walk as eventually complete rather than exact, or narrow with the filters this operation offers so the set you are paging cannot move.