Info Channel Manager · API & MCP & AI

Channel manager API and MCP integration examples

Ready-made call examples for the most common integrations: a PMS with two-way sync, a website taking bookings and an AI assistant. The examples use real REST API v1 endpoints; just replace the API key and ids.

Three integration patterns

PMS or pricing tool

Map units to properties, send rates and restrictions through the calendar, and receive bookings via webhooks.

Learn more

Website or booking engine

Display content, search availability and create a booking with your own source tag.

Learn more

AI assistant

Connect an MCP client to the server and work with the calendar and bookings through conversation.

Learn more

1. List properties

The first call checks the key and returns the account's properties. Use the property id as property_id in other calls, and store it in your system alongside your own unit.

curl
curl https://api.channel-manager.info/v1/properties \
  -H "Authorization: Bearer $MYRENT_API_KEY"
JSON
{
  "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 }
  ]
}

2. Search availability

date_from is the arrival date and date_until the departure date: a stay from the 10th to the 17th is seven nights. The response contains active properties available for the whole stay, with the accommodation price excluding extras and discounts, cheapest first.

curl
curl "https://api.channel-manager.info/v1/availability?date_from=2027-07-10&date_until=2027-07-17&guests=4" \
  -H "Authorization: Bearer $MYRENT_API_KEY"
JSON
{
  "date_from": "2027-07-10", "date_until": "2027-07-17", "nights": 7, "guests": 4,
  "data": [
    { "id": 123, "name": "Apartment Sea View", "city_name": "Split",
      "guests_max": 4, "nights": 7, "price_total": 980.00, "currency_code": "EUR" }
  ]
}

3. Change a rate and close dates

One call can send up to 100 periods. The rate, minimum stay and closed dates are applied to all connected channels; past dates cannot be changed.

curl
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 }
    ]
  }'
JSON
{
  "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 }
  ]
}

4. New booking from your website

source_id is the source tag you receive with your API key. The booking blocks the dates on all channels. A 409 response means the dates are no longer available, and the guest does not receive a confirmation email from the channel manager.

curl
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_country": "DE",
    "channel_reservation_id": "WEB-10045"
  }'
JSON
{
  "data": {
    "id": 2526334, "object_id": 123, "object_name": "Apartment Sea View",
    "from_date": "2027-07-10", "until_date": "2027-07-17", "nights": 7,
    "adults": 2, "children": 1, "price": 980.00, "currency_code": "EUR",
    "active": "Y", "status_name": "Confirmed", "source_name": "Partner website",
    "channel_reservation_id": "WEB-10045"
  }
}

5. The change feed as a safety net

Store next_since and send it as since in the next call, instead of calculating the time from your own clock. While has_more is true, call again. Each row is the current state of a booking; update by id.

curl
curl "https://api.channel-manager.info/v1/bookings/changes?since=2027-06-01%2000:00:00&limit=100" \
  -H "Authorization: Bearer $MYRENT_API_KEY"
JSON
{
  "since": "2027-06-01 00:00:00",
  "next_since": "2027-06-01 10:15:00",
  "has_more": false,
  "data": [ { "id": 2526334, "active": "Y", "changed": "2027-06-01 10:15:00" } ]
}

6. Webhook and signature verification

You create a webhook once; the signing secret is shown only in the response. Verify the signature on the raw request body before parsing, compare it in constant time and reject timestamps older than five minutes. Respond with 2xx within ten seconds and do the processing after responding.

curl
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" }'
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 ?? ""));
}

7. Guest messages

Conversations from Booking.com, Airbnb, Expedia and Vrbo are available per booking. Replies go to the guest through the channel; a sent message cannot be recalled, so after a timeout read the conversation first instead of retrying automatically.

GET
curl "https://api.channel-manager.info/v1/messages/conversations?unread=true&limit=50" \
  -H "Authorization: Bearer $MYRENT_API_KEY"
POST
curl -X POST https://api.channel-manager.info/v1/bookings/2526334/messages \
  -H "Authorization: Bearer $MYRENT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "text": "Hi Anna, check-in at 13:00 is fine." }'

8. MCP client

The same key also works for the MCP server. The client must support custom headers; Claude and ChatGPT use sign-in with a MyRent account instead of a key.

Claude Code
claude mcp add --transport http myrent https://mcp.channel-manager.info/mcp \
  --header "Authorization: Bearer $MYRENT_API_KEY"
Cursor / VS Code
{
  "mcpServers": {
    "myrent": {
      "url": "https://mcp.channel-manager.info/mcp",
      "headers": { "Authorization": "Bearer <your API key>" }
    }
  }
}

Error codes

Response codes and what to do
Code Meaning What to do
400 Invalid input Correct the request; do not repeat it unchanged.
401 Key missing, wrong or revoked Check the key or contact us.
403 IP address or scope not allowed Call from a registered address or request the scope.
404 Property, booking or webhook does not exist on the account Check the id.
409 Conflict with the current data Reload the data and decide again.
429 Too many requests per minute, or daily limit reached Wait for the next minute or for midnight Zagreb time.
5xx Temporary server problem Retry with a delay, for example after 5, 30 and 120 seconds.

Ready to integrate?

Send a short description of your system and the number of units. We will get back to you with an API key, an onboarding plan and training for your team.