{
  "openapi": "3.2.0",
  "info": {
    "title": "mcp | v1",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.channel-manager.info"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "tags": [
          "mcp"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/properties": {
      "get": {
        "tags": [
          "channel_routes"
        ],
        "summary": "List properties",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/availability": {
      "get": {
        "tags": [
          "channel_routes"
        ],
        "summary": "Properties free for a whole stay, with the stay price",
        "parameters": [
          {
            "name": "date_from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date_until",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "guests",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/properties/{property_id}/calendar": {
      "get": {
        "tags": [
          "channel_routes"
        ],
        "summary": "Daily prices, restrictions and availability",
        "parameters": [
          {
            "name": "property_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date_until",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "channel_routes"
        ],
        "summary": "Change prices, minimum stay and availability for periods",
        "parameters": [
          {
            "name": "property_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/properties/{property_id}/descriptions": {
      "get": {
        "tags": [
          "channel_routes"
        ],
        "summary": "Descriptions of a property, every language or one",
        "parameters": [
          {
            "name": "property_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/properties/{property_id}/photos": {
      "get": {
        "tags": [
          "channel_routes"
        ],
        "summary": "Photos of a property in display order",
        "parameters": [
          {
            "name": "property_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/properties/{property_id}/amenities": {
      "get": {
        "tags": [
          "channel_routes"
        ],
        "summary": "Amenities of a property",
        "parameters": [
          {
            "name": "property_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/amenities": {
      "get": {
        "tags": [
          "channel_routes"
        ],
        "summary": "MyRent amenity catalog",
        "parameters": [
          {
            "name": "language",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/bookings": {
      "get": {
        "tags": [
          "channel_routes"
        ],
        "summary": "Reservations overlapping a stay period",
        "parameters": [
          {
            "name": "date_from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date_until",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "property_id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/bookings/changes": {
      "get": {
        "tags": [
          "channel_routes"
        ],
        "summary": "Reservations changed after a time (change feed)",
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/bookings/{booking_id}": {
      "get": {
        "tags": [
          "channel_routes"
        ],
        "summary": "One reservation",
        "parameters": [
          {
            "name": "booking_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "patch": {
        "tags": [
          "channel_routes"
        ],
        "summary": "Change dates, price, guests or guest contact of a reservation",
        "parameters": [
          {
            "name": "booking_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/bookings/{booking_id}/cancel": {
      "post": {
        "tags": [
          "channel_routes"
        ],
        "summary": "Cancel a reservation",
        "parameters": [
          {
            "name": "booking_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/bookings/{booking_id}/guest": {
      "get": {
        "tags": [
          "channel_routes"
        ],
        "summary": "Guest contact of a reservation (logged)",
        "parameters": [
          {
            "name": "booking_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/webhooks": {
      "get": {
        "tags": [
          "channel_routes"
        ],
        "summary": "List webhooks",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/webhooks/{webhook_id}": {
      "delete": {
        "tags": [
          "channel_routes"
        ],
        "summary": "Delete a webhook",
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/webhooks/{webhook_id}/test": {
      "post": {
        "tags": [
          "channel_routes"
        ],
        "summary": "Send a signed ping to a webhook",
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "channel_routes"
    },
    {
      "name": "mcp"
    }
  ]
}