Maton

Hostex

Access the Hostex API with managed authentication. Read properties, reservations, availability, listing calendars, guest conversations, reviews, tasks, and income and expenses; manage reservations, prices and availability across channels, guest messages, and tasks. All access runs through the Maton gateway and the maton CLI.

Permissions

Suggested read access

In the Console, Read limits the connection to these 33 read-only endpoints, plus deny rules for any write endpoint a broader rule would otherwise match. Endpoints Maton has found to return credentials, start jobs, or spend credits are left out; a few reads that can change state or return a secret depending on their parameters stay in, and their descriptions say how. It is a suggestion: the saved rules are exactly the ones you see, and you can change them with Custom. See Access policy.

Reference

Paths start with v3/: https://api.hostex.io/v3/properties becomes /hostex/v3/properties.

Account

Get the Account

maton api '/hostex/v3/accounts/me'

Response:

{"request_id": "RT2026120211554958608b3", "error_code": 200, "error_msg": "Done.", "data": {"account_id": "180823"}}

Every response has this shape: error_code 200 means success, and the result is in data.

Properties

List Properties

maton api '/hostex/v3/properties?offset=0&limit=20'

Query parameters: offset, limit (up to 100), id, group_id, tag_id.

Response:

{
  "request_id": "RT2026120211555166208b5",
  "error_code": 200,
  "error_msg": "Done.",
  "data": {
    "properties": [
      {
        "id": 12859071,
        "title": "Beach House",
        "channels": [{"channel_type": "airbnb", "listing_id": "53812345", "currency": "USD"}],
        "groups": [],
        "tags": [],
        "default_checkin_time": "15:00",
        "default_checkout_time": "11:00",
        "timezone": "America/Los_Angeles",
        "address": "123 Ocean Ave, Santa Cruz, CA",
        "wifi_ssid": "BeachHouse",
        "wifi_password": "sunset2026",
        "wifi_remarks": ""
      }
    ],
    "total": 1
  }
}

channels lists the property's linked listings by channel_type and listing_id, which the listing calendar endpoints take. Properties include the Wi-Fi name and password. v3/room_types, v3/groups, and v3/tags list room types, property groups, and tags.

Reservations

List Reservations

maton api '/hostex/v3/reservations?start_check_in_date=2026-12-01&end_check_in_date=2026-12-31&status=accepted&limit=50'

Query parameters: reservation_code, property_id, channel_type, channel_id, status (wait_accept, wait_pay, accepted, cancelled, denied, timeout), start_check_in_date, end_check_in_date, start_check_out_date, end_check_out_date (YYYY-MM-DD), order_by (booked_at, check_in_date, check_out_date, cancelled_at, created_at; always descending), offset, limit (up to 100).

Response:

{
  "request_id": "RT2026120211555582009",
  "error_code": 200,
  "error_msg": "Done.",
  "data": {
    "reservations": [
      {
        "reservation_code": "0-1234567-abcdef",
        "stay_code": "0-1234567-abcdef",
        "channel_type": "airbnb",
        "channel_id": "HMABC12345",
        "property_id": 12859071,
        "listing_id": "53812345",
        "check_in_date": "2026-12-20",
        "check_out_date": "2026-12-23",
        "number_of_guests": 2,
        "status": "accepted",
        "guest_name": "Alex Kim",
        "booked_at": "2026-11-02T18:04:11+00:00",
        "created_at": "2026-11-02T18:04:20+00:00"
      }
    ]
  }
}

Reservations carry guest contact details, and can include guests' ID document images and door-lock codes. A reservation with several stays shares one reservation_code; each stay has its own stay_code.

Create a Reservation

maton api '/hostex/v3/reservations' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"property_id": 12859071, "custom_channel_id": 1, "check_in_date": "2026-12-26", "check_out_date": "2026-12-28", "guest_name": "Sam Lee", "currency": "USD", "rate_amount": 450, "commission_amount": 0, "received_amount": 450, "income_method_id": 25}
JSON

Creates a direct (manual) booking. custom_channel_id comes from v3/custom_channels and income_method_id from v3/income_methods.

Approve, Decline, Cancel

maton api '/hostex/v3/reservations/{reservation_code}/approve' -X POST
maton api '/hostex/v3/reservations/{reservation_code}/decline' -X POST
maton api '/hostex/v3/reservations/{reservation_code}' -X DELETE

Approve and decline answer wait_accept requests on the booking channel. DELETE cancels a reservation; channel bookings are cancelled on the channel. POST .../{reservation_code}/charges adds a charge. Updates to one stay take its stay_code: PATCH v3/reservations/{stay_code} (basic info), .../check_in_details, .../custom_fields, PUT .../stay_status, POST .../allocate, POST and DELETE .../tags, and PATCH .../guests/{guest_id}.

Availability and Calendars

Get Property Availability

maton api '/hostex/v3/availabilities?property_ids=12859071&start_date=2026-12-10&end_date=2026-12-12'

Response:

{
  "request_id": "RT2026120211563273509",
  "error_code": 200,
  "error_msg": "Done.",
  "data": {
    "properties": [
      {
        "id": 12859071,
        "availabilities": [
          {"date": "2026-12-10", "available": true, "remarks": ""},
          {"date": "2026-12-11", "available": false, "remarks": "Owner stay"}
        ]
      }
    ]
  }
}

Block or Open Dates

maton api '/hostex/v3/availabilities' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"property_ids": [12859071], "start_date": "2026-12-11", "end_date": "2026-12-12", "available": false}
JSON

Send start_date and end_date, or a dates list. Hostex syncs the change to every linked channel.

Listing Calendars and Prices

maton api '/hostex/v3/listings/calendar' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"start_date": "2026-12-01", "end_date": "2026-12-31", "listings": [{"channel_type": "airbnb", "listing_id": "53812345"}]}
JSON
maton api '/hostex/v3/listings/prices' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"channel_type": "airbnb", "listing_id": "53812345", "prices": [{"start_date": "2026-12-24", "end_date": "2026-12-26", "price": 320}]}
JSON

listings/calendar reads each listing's per-day price, availability, and restrictions (it is a POST that only reads). listings/prices, listings/inventories, and listings/restrictions change them on the channel. v3/listings/airbnb/price_and_rules and v3/listings/vrbo/price_and_rules read and update channel-specific pricing rules.

Messages

List Conversations

maton api '/hostex/v3/conversations?offset=0&limit=20'
maton api '/hostex/v3/conversations/{conversation_id}'

offset is required. A conversation's detail includes its messages and the guest and reservation it belongs to.

Send a Message

maton api '/hostex/v3/conversations/{conversation_id}' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"message": "Hi Alex, check-in is from 3pm. The door code arrives the morning of your stay."}
JSON

Sends message (text) or jpeg_base64 (an image) to the guest through the booking channel. POST .../preapprovals and POST .../special_offers send Airbnb pre-approvals and special offers.

Reviews

maton api '/hostex/v3/reviews?offset=0&limit=20&review_status=pending_host_review'

offset and limit are required; review_status is pending_guest_review, pending_host_review, or reviewed. POST v3/reviews/{reservation_code} posts the host's review of the guest.

Tasks

maton api '/hostex/v3/tasks?start_date=2026-12-01&end_date=2026-12-31&offset=0&limit=50'

Tasks (such as cleanings) filter by property_id, staff_id, type (cleaning, maintenance, reception, room_service, other), and status. POST, PATCH, and DELETE on v3/tasks manage them; v3/staffs lists and manages the staff they are assigned to.

Income and Expenses

maton api '/hostex/v3/transactions?start_date=2026-12-01&end_date=2026-12-31&direction=income'

direction is income or expense. Filters include property_id, reservation_code, stay_code, item_id, payment_method_id, currency, and keyword. v3/income_items, v3/expense_items, v3/income_methods, and v3/expense_methods list the categories and payment methods transactions use.

Webhooks

maton api '/hostex/v3/webhooks'
maton api '/hostex/v3/webhooks' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"url": "https://example.com/hooks/hostex"}
JSON

Notes

  • Connection. The connection holds a Hostex access token, created in the Host Portal at OpenAPI Settings (https://hostex.io/app/api/open-api) → + Add new; the gateway sends it as the Hostex-Access-Token header. A token is read-only or writable, chosen at creation; a write with a read-only token fails with error_code 401. Tokens don't expire, but stop working when deleted or when the Hostex subscription lapses. The connection's metadata holds the account_id, read from v3/accounts/me.
  • Errors return HTTP 200. Check error_code in the body: 200 is success; 400 validation, 401 invalid token or a write with a read-only token, 403, 404, 409, 420 an account or subscription problem, 422, 429 rate limited (with Retry-After), 500. error_msg explains, and request_id identifies the call for Hostex support.
  • Rate limits per account: 1,200 requests a minute, 6,000 per 10 minutes, 20,000 an hour, and 100,000 a day.
  • Pagination: offset and limit (up to 100); some lists return total.
  • Dates are YYYY-MM-DD; timestamps include a UTC offset.
  • Changes to reservations, prices, availability, and messages reach the booking channels (Airbnb, Booking.com, Vrbo, and others) linked in Hostex.
  • OAuth isn't available through Maton yet; the connection uses an access token.

Resources

On this page