Channel Manager API
Connect your PMS, booking engine, website or AI assistant to MyRent. MyRent is the channel manager and the single source of truth for properties, daily prices, availability, content and reservations of a MyRent account.
| Interface | Address | Use it for |
| REST API | https://api.channel-manager.info/v1 | Your software: JSON over HTTPS. |
| Webhooks | Your HTTPS endpoint | Real-time notification of new, changed and cancelled reservations. |
| MCP server | https://mcp.channel-manager.info/mcp | AI assistants (Claude, ChatGPT, Cursor and other MCP clients). |
| OpenAPI | /openapi/v1.json | Generating clients and importing into Postman, Bruno or Insomnia. |
Every change you make through the API (prices, restrictions, reservations) is applied in MyRent and pushed to all channels connected to the account, such as Booking.com and Airbnb. Reservations that arrive from channels or are entered in MyRent are visible to you through the API and webhooks.
Getting started
- Get your credentials from MyRent. MyRent support issues an API key for the MyRent account you integrate with, and a reservation source id (
source_id) that marks the reservations you create. The key is shown once; store it like a password.
- Check the key. List the properties of the account.
- Read before you write. Read the calendar and the bookings of a property, then send your first change.
- Subscribe to webhooks and use the change feed as a safety net.
curl https://api.channel-manager.info/v1/properties \
-H "Authorization: Bearer $MYRENT_API_KEY"
{
"data": [
{ "id": 123, "name": "Apartment Sea View", "object_code": "A1", "active": "Y", "unit_name": "Villa Marina", "city_name": "Split", "currency_code": "EUR", "guests_max": 4 }
]
}
Use id as property_id in all other calls. One API key gives access to exactly one MyRent account; for several accounts you receive several keys.
Integration patterns
PMS or revenue tool (two-way sync)
- Map your units to MyRent properties with
GET /v1/properties.
- Push prices, minimum stay and closures with
POST /v1/properties/{id}/calendar; MyRent sends them on to every channel.
- Receive reservations from all channels with webhooks, load the full reservation with
GET /v1/bookings/{id}, and run GET /v1/bookings/changes every few minutes as a safety net.
- Read guest contact only when you need it, with
GET /v1/bookings/{id}/guest.
Website or booking engine
- Show content from
/descriptions, /photos and /amenities.
- Search with
GET /v1/availability (free properties and the stay price), or show the daily calendar.
- Create the reservation with
POST /v1/bookings and your source_id. A 409 means the dates were taken in the meantime.
AI assistant
Connect an MCP client to https://mcp.channel-manager.info/mcp with the same API key. The assistant gets the same operations as tools; see MCP server.
Authentication
Send the API key with every request to /v1 and /mcp:
Authorization: Bearer <your API key>
Clients that cannot set Authorization may send X-API-Key: <your API key> instead. A missing, wrong or revoked key returns 401.
Keep the key on your server. Never put it in browser JavaScript, mobile apps, public repositories, logs or URLs. If a key may have leaked, ask MyRent support to revoke it and issue a new one; a revoked key stops working within one minute.
Conventions
| Topic | Rule |
| Format | Request and response bodies are JSON (Content-Type: application/json), UTF-8. |
| Envelope | Successful responses wrap the result in data (an object or an array). |
| Dates | yyyy-MM-dd. date_from is the arrival day, date_until the departure day (a stay from the 10th to the 17th has 7 nights). In the calendar both days are included. |
| Times | yyyy-MM-dd HH:mm:ss in the Europe/Zagreb time zone (CET/CEST, with daylight saving time): created, changed, since, next_since. Webhook occurred_at is UTC (ISO 8601). |
| Numbers | Dot as decimal separator, for example 145.50. Prices are in the property currency (currency_code). |
| Flags | Responses use "Y" / "N". In requests you may send true / false. |
| IDs | Positive whole numbers. Path ids that are not numbers return 400. |
| Rates | Each property has one rate: the daily price in the calendar is the price sent to all channels. There are no rate plans. |
| Field names | Unknown fields in requests are ignored. New fields may be added to responses at any time; ignore the ones you do not know. |
Errors
Errors return a status code and a message you can show or log:
{ "error": { "message": "date_until is the departure day and must be after date_from" } }
| Status | Meaning | What to do |
400 | Invalid input: missing field, wrong format, value out of range. | Fix the request; do not retry unchanged. |
401 | API key missing, wrong or revoked. | Check the key; contact MyRent support. |
404 | The property, booking or webhook does not exist in this account. | Check the id. |
409 | Conflict with current data, for example the dates are no longer free or the reservation is cancelled. | Reload the data and decide again. |
429 | More than 120 requests in a minute. | Wait until the next minute and retry. |
5xx | Temporary server problem. | Retry with backoff (for example after 5, 30 and 120 seconds). |
Limits
| Limit | Value |
| Requests | 120 per minute per account (REST and MCP together) |
| Calendar read | up to 731 days per call |
| Calendar write | up to 100 periods per call, each up to 731 days; past days cannot be changed |
| Availability search | stay up to 90 nights, 1 to 100 guests |
| Bookings list and change feed | limit 1 to 1000, default 100; period up to 731 days |
| New booking | stay up to 365 nights, arrival today or later |
| Webhooks | up to 5 per account |
Properties & availability
GET/v1/properties
All properties of the account, ordered by name.
| Field | Description |
id | Property id, used as property_id. |
name, object_code | Name and short code of the property. |
active | Y when the property is in use. |
unit_name, city_name | Building or location the property belongs to, and its city. |
currency_code | Currency of the property prices. |
guests_max | Maximum number of guests. |
GET/v1/availability?date_from=2027-07-10&date_until=2027-07-17&guests=4
Active properties that are free for the whole stay and sleep the guests, with the accommodation price of the stay (without extras or discounts), cheapest first.
| Query | Description |
date_from | Required. Arrival day, today or later. |
date_until | Required. Departure day, at most 90 nights after arrival. |
guests | Number of guests, default 1. |
{
"date_from": "2027-07-10", "date_until": "2027-07-17", "nights": 7, "guests": 4,
"data": [
{ "id": 123, "name": "Apartment Sea View", "object_code": "A1", "unit_name": "Villa Marina", "city_name": "Split", "guests_max": 4, "nights": 7, "price_total": 980.00, "currency_code": "EUR" }
]
}
Calendar
GET/v1/properties/{property_id}/calendar?date_from=2027-07-01&date_until=2027-07-31
One row per day, both days included. Defaults: date_from today, date_until 30 days later.
| Field | Description |
day | The day. |
price | Price of the night sold on this day (special price when set, otherwise the regular price). |
price_regular | Regular price of the night. |
min_stay, max_stay | Minimum and maximum stay in nights for arrivals on this day; 0 means no rule. |
closed | Y when the day is closed for sale. |
closed_to_arrival, closed_to_departure | Y when check-in or check-out is not allowed on this day. |
units_total, units_booked | Units for sale and units booked on this day. |
available | Y when the night can be booked: a unit is free, the day is open and has a price. |
{
"property_id": "123", "date_from": "2027-07-01", "date_until": "2027-07-31",
"data": [
{ "day": "2027-07-01", "price": 140.00, "price_regular": 140.00, "min_stay": 5, "max_stay": 0, "closed": "N", "closed_to_arrival": "N", "closed_to_departure": "N", "units_total": 1, "units_booked": 0, "available": "Y" }
]
}
POST/v1/properties/{property_id}/calendar
Changes up to 100 periods in one call. Each period sets every day from date_from to date_until, both included. Only the fields you send change; each period needs at least one of them. All periods are validated before anything is written. Changes are sent to all connected channels.
| Field | Description |
date_from, date_until | Required. First and last day of the period. |
price | Nightly price in the property currency. |
min_stay | Minimum stay in nights. |
closed | true closes the days for sale, false opens them. |
closed_to_arrival, closed_to_departure | true blocks check-in or check-out on these days. |
curl -X POST https://api.channel-manager.info/v1/properties/123/calendar \
-H "Authorization: Bearer $MYRENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"values": [
{ "date_from": "2027-07-01", "date_until": "2027-07-15", "price": 145, "min_stay": 5 },
{ "date_from": "2027-12-24", "date_until": "2027-12-26", "closed": true }
]
}'
{
"property_id": "123",
"data": [
{ "date_from": "2027-07-01", "date_until": "2027-07-15", "days_changed": 15 },
{ "date_from": "2027-12-24", "date_until": "2027-12-26", "days_changed": 3 }
]
}
Property content
Descriptions, photos and amenities are read only in this version. They are managed in MyRent.
GET/v1/properties/{property_id}/descriptions?language=en
One row per language. Omit language for every language. Language codes: en, de, hr, it and others. Texts may contain HTML formatting; missing texts are null or empty.
Fields: id, language, title, short_name, motto, short, description, arrival, arrival_guest, welcome, house_rules, price_include, payment_policies, cancellation_policies, facilities, equipment, bedroom, bathroom, environment, vacation_area, free_time_activities, service_availability, landlord, meta_description.
{
"property_id": "123",
"data": [
{ "id": 5521, "language": "en", "title": "Apartment Sea View", "short": "Bright apartment 50 m from the beach.", "description": "...", "house_rules": "...", "...": "..." }
]
}
GET/v1/properties/{property_id}/photos
Photos in display order. url is a public CDN address you may use directly or copy to your own storage.
Fields: id, url, width, height, size (bytes), sort, main (Y for the main photo), title, alt, description, category, created.
GET/v1/properties/{property_id}/amenities?language=en
Amenities of the property, names in the requested language (default English).
Fields: id, code, name, group_id, group_name, extra charge settings charge, charge_type, price, paid_mandatory, and description.
GET/v1/amenities?language=en
The MyRent amenity catalog: every amenity a property can have, with id, code, name, group_id and group_name. Map it to your own amenity list once and match by id or code.
Bookings
A booking returned by the API (lists, detail, create, change, cancel, webhooks) has these fields. It never contains guest contact data.
| Field | Description |
id | MyRent reservation id, used as booking_id. |
number | Reservation number in MyRent. |
object_id, object_name | Property id and name. |
from_date, from_time | Arrival day and time. |
until_date, until_time | Departure day and time. |
nights | Number of nights. |
adults, children, infants, guests_total | Guest counts. |
price, currency_code | Total price of the stay and its currency. |
paid | Y when the reservation is marked as paid. |
active | N when the reservation is cancelled. |
searchable, status_name | Visibility in MyRent and the reservation status name. |
source_id, source_name | Where the reservation comes from (your source, Booking.com, Airbnb, direct…). |
channel_reservation_id | Your own reference sent on create, or the channel's reservation number. |
created, changed | Time of creation and of the last change. |
{
"data": {
"id": 2526334, "number": "1", "object_id": 123, "object_name": "Apartment Sea View",
"from_date": "2027-07-10", "from_time": "15:00:00", "until_date": "2027-07-17", "until_time": "10:00:00", "nights": 7,
"adults": 2, "children": 1, "infants": 0, "guests_total": 3,
"price": 980.00, "currency_code": "EUR", "paid": "N",
"active": "Y", "searchable": "Y", "status_name": "Confirmed",
"source_id": 77, "source_name": "Partner website", "channel_reservation_id": "WEB-10045",
"created": "2027-06-01 10:15:00", "changed": "2027-06-01 10:15:00"
}
}
GET/v1/bookings?date_from=2027-07-01&date_until=2027-07-31&property_id=123&limit=100
Reservations whose stay overlaps the period, ordered by arrival, including cancelled ones. All query fields are optional: the period defaults to today + 30 days.
GET/v1/bookings/changes?since=2027-06-01 00:00:00&limit=100
Change feed: reservations created, changed or cancelled after since, oldest change first. since is Europe/Zagreb local time. Store next_since and use it as since in the next call, instead of computing the time from your own clock; while has_more is true, call again immediately. Use the feed every few minutes to catch anything a webhook missed.
{
"since": "2027-06-01 00:00:00", "next_since": "2027-06-01 10:15:00", "has_more": false,
"data": [ { "id": 2526334, "...": "..." } ]
}
The feed may return a reservation you already know, for example one that changed twice. Treat each row as the current state of that reservation and update by id.
GET/v1/bookings/{booking_id}
One reservation. 404 when it does not exist in this account.
POST/v1/bookings
Creates a reservation on a property that is free for the whole stay and returns it with status 201. The dates are blocked on all connected channels. MyRent does not send a confirmation e-mail to the guest.
| Field | Description |
property_id | Required. |
source_id | Required. The reservation source id you received from MyRent. |
date_from, date_until | Required. Arrival (today or later) and departure day. |
adults | 1 to 50, default 1. |
children, infants, pets | Default 0. |
price | Total price of the stay. Omit to use the calendar price. |
guest_name, guest_email, guest_phone | Guest contact (max 200, 200 and 50 characters). Phone with country prefix. |
guest_country | Two-letter country code, for example DE. |
channel_reservation_id | Your own reference, max 100 characters. Returned on the booking. |
note | Note for the host, max 2000 characters. |
curl -X POST https://api.channel-manager.info/v1/bookings \
-H "Authorization: Bearer $MYRENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"property_id": 123,
"source_id": 77,
"date_from": "2027-07-10",
"date_until": "2027-07-17",
"adults": 2,
"children": 1,
"guest_name": "Anna Schmidt",
"guest_email": "[email protected]",
"guest_phone": "+49 151 000000",
"guest_country": "DE",
"channel_reservation_id": "WEB-10045"
}'
409 means the dates are not free (taken, closed or without price). 400 lists the field that is wrong, for example an unknown source_id.
PATCH/v1/bookings/{booking_id}
Changes an active reservation and returns it. Send only the fields that change: date_from, date_until, price, adults, children, infants, pets, guest_name, guest_email, guest_phone, guest_country.
- New nights must be free; otherwise
409.
- The price is not recalculated when the dates change; send the new
price when it changes.
- The property of a reservation cannot be changed; cancel and create a new one.
- Cancelled reservations cannot be changed.
curl -X PATCH https://api.channel-manager.info/v1/bookings/2526334 \
-H "Authorization: Bearer $MYRENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "date_until": "2027-07-18", "price": 1120.00 }'
POST/v1/bookings/{booking_id}/cancel
Cancels the reservation and frees its dates on all channels. Returns the booking with active: "N" and cancelled_now: true when this call cancelled it, false when it was already cancelled. Repeating the call is safe.
Guest contact
GET/v1/bookings/{booking_id}/guest
The only call that returns personal data: booking_id, contact_name, contact_tel, contact_email, contact_country_code, contact_city, contact_city_zip, contact_address.
Every call is logged with time, IP address and user agent, and the response is never cached. Call it only when you need the contact (check-in, guest messages), do not poll it, and store the data according to your privacy obligations (GDPR).
Webhooks
MyRent sends a POST to your HTTPS endpoint when a reservation of the account is created, changed or cancelled, from any source: MyRent, this API, Booking.com, Airbnb and other channels.
GET/v1/webhooks
Your webhooks: id, url, name, active, created. Secrets are never returned.
POST/v1/webhooks
Creates a webhook. url must be a public https:// address (max 200 characters); name is an optional label. Returns 201 with the signing secret. The secret is shown only in this response: store it now.
curl -X POST https://api.channel-manager.info/v1/webhooks \
-H "Authorization: Bearer $MYRENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "url": "https://example.com/myrent/webhook", "name": "my PMS" }'
{
"data": { "id": 41, "url": "https://example.com/myrent/webhook", "name": "my PMS", "active": "Y", "secret": "whsec_…", "note": "Store the secret now; it is not shown again. Verify X-MyRent-Signature with it." }
}
DELETE/v1/webhooks/{webhook_id}
Deletes a webhook. To change the URL or rotate the secret, create a new webhook first, then delete the old one.
POST/v1/webhooks/{webhook_id}/test
Sends a signed ping event and returns how your endpoint answered: ok, status_code, error and the beginning of response.
Events and payload
| Event | When |
booking.created | A reservation was created. |
booking.changed | Dates, price, guests or status of a reservation changed. |
booking.cancelled | A reservation was cancelled. |
ping | Test from /v1/webhooks/{id}/test. |
{
"event": "booking.created",
"delivery_id": "1f6c2d9e-4b0a-4c55-9a51-0c3f4e0f7a11",
"occurred_at": "2027-06-01T08:15:00Z",
"booking_id": "2526334",
"property_id": "123",
"booking": { "id": 2526334, "object_id": 123, "from_date": "2027-07-10", "until_date": "2027-07-17", "...": "..." }
}
booking has the same fields as GET /v1/bookings/{id} and never contains guest contact data.
Headers and signature
| Header | Meaning |
X-MyRent-Event | Event name. |
X-MyRent-Delivery | Unique id of the delivery; use it to ignore duplicates. |
X-MyRent-Timestamp | Unix time in seconds when the request was signed. |
X-MyRent-Signature | sha256= + lowercase hex HMAC-SHA256 of timestamp + "." + raw body, keyed with the webhook secret. |
Verify the signature on the raw request body before parsing it, compare in constant time, and reject timestamps older than 5 minutes.
Node.js
const crypto = require("crypto");
function verify(raw_body, headers, secret) {
const timestamp = headers["x-myrent-timestamp"];
const expected = "sha256=" + crypto.createHmac("sha256", secret).update(timestamp + "." + raw_body).digest("hex");
const received = headers["x-myrent-signature"] || "";
const fresh = Math.abs(Date.now() / 1000 - Number(timestamp)) < 300;
return fresh && expected.length === received.length && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(received));
}
Python
import hmac, hashlib, time
def verify(raw_body: bytes, headers, secret: str) -> bool:
timestamp = headers.get("X-MyRent-Timestamp", "")
expected = "sha256=" + hmac.new(secret.encode(), timestamp.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
fresh = timestamp.isdigit() and abs(time.time() - int(timestamp)) < 300
return fresh and hmac.compare_digest(expected, headers.get("X-MyRent-Signature", ""))
PHP
function verify(string $raw_body, string $timestamp, string $signature, string $secret): bool {
$expected = 'sha256=' . hash_hmac('sha256', $timestamp . '.' . $raw_body, $secret);
$fresh = ctype_digit($timestamp) && abs(time() - (int)$timestamp) < 300;
return $fresh && hash_equals($expected, $signature);
}
C#
static bool verify(string raw_body, string timestamp, string signature, string secret)
{
using var hmac = new System.Security.Cryptography.HMACSHA256(System.Text.Encoding.UTF8.GetBytes(secret));
var hash = hmac.ComputeHash(System.Text.Encoding.UTF8.GetBytes(timestamp + "." + raw_body));
var expected = "sha256=" + Convert.ToHexString(hash).ToLowerInvariant();
var fresh = long.TryParse(timestamp, out var unix) && Math.Abs(DateTimeOffset.UtcNow.ToUnixTimeSeconds() - unix) < 300;
return fresh && System.Security.Cryptography.CryptographicOperations.FixedTimeEquals(System.Text.Encoding.UTF8.GetBytes(expected), System.Text.Encoding.UTF8.GetBytes(signature ?? ""));
}
Delivery rules
- Answer with any
2xx within 10 seconds. Do the work after you answer (queue it).
- Redirects are not followed. The URL must resolve to a public address.
- Each event is sent once, without retries. Use
GET /v1/bookings/changes to catch up after downtime.
- Deliveries are not guaranteed to arrive in order. Load the booking with
GET /v1/bookings/{id} when you need the latest state.
MCP server
The MCP server gives AI assistants the same operations as the REST API, with the same API key and the same limits. Transport: Streamable HTTP at https://mcp.channel-manager.info/mcp, key in the Authorization header.
Claude Code
claude mcp add --transport http myrent https://mcp.channel-manager.info/mcp \
--header "Authorization: Bearer $MYRENT_API_KEY"
Cursor, VS Code and other clients with JSON configuration
{
"mcpServers": {
"myrent": {
"url": "https://mcp.channel-manager.info/mcp",
"headers": { "Authorization": "Bearer <your API key>" }
}
}
}
The client must support custom headers. Sign-in with OAuth (for connectors that do not allow headers) is planned.
| Tool | REST equivalent |
list_properties | GET /v1/properties |
search_available_properties | GET /v1/availability |
get_calendar | GET /v1/properties/{id}/calendar |
update_calendar | POST /v1/properties/{id}/calendar (one period) |
get_property_descriptions | GET /v1/properties/{id}/descriptions |
get_property_photos | GET /v1/properties/{id}/photos |
get_property_amenities | GET /v1/properties/{id}/amenities |
list_amenities | GET /v1/amenities |
list_bookings | GET /v1/bookings |
get_booking_changes | GET /v1/bookings/changes |
get_booking | GET /v1/bookings/{id} |
create_booking | POST /v1/bookings |
update_booking | PATCH /v1/bookings/{id} |
cancel_booking | POST /v1/bookings/{id}/cancel |
get_booking_guest | GET /v1/bookings/{id}/guest (logged) |
list_webhooks, create_webhook, delete_webhook, test_webhook | /v1/webhooks |
Tools that change data say so in their description, so the assistant asks the user to confirm before it changes prices or reservations.
Versioning
- The version is part of the path:
/v1. Within v1 we only make backward-compatible changes: new endpoints, new optional request fields, new response fields.
- Breaking changes go to a new version (
/v2), and v1 stays available during a transition period announced in advance.
- Planned: changing descriptions and amenities, photo upload, OAuth sign-in for AI connectors.
Security & privacy
- HTTPS only. Each API key belongs to one MyRent account; every request is limited to that account's properties, reservations and webhooks.
- MyRent stores only a hash of your key, so a lost key cannot be shown again; ask for a new one.
- Guest contact data is available only through Guest contact, and every access is logged.
- Webhooks are signed; verify every delivery before you trust it.
- Changes made through the API are recorded in MyRent with the source API, so the host can see who changed what.
Support
For API keys, source_id, access to more accounts and technical questions, contact MyRent support. Include the time of the request, the endpoint and the error message; never send your API key or webhook secret.
Status check: GET https://api.channel-manager.info/health returns "status": "ok" without a key.