> For the complete documentation index, see [llms.txt](https://docs.mews.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mews.com/channel-manager-api/guidelines/requests.md).

# Requests

Both sides of the API accept only `HTTPS POST` requests with `Content-Type` set to `application/json` and with JSON body content depending on the operation to be performed.

## Mews side

All Mews API operations follow this address pattern, with the exception of [Mews: Process group](https://docs.mews.com/channel-manager-api/mews-operations/reservations.md#process-group):

```
[PlatformAddress]/api/channelManager/v1/[Operation]
```

* **PlatformAddress** - the base address of the Mews platform, which depends on the environment (e.g. demo, production)
* **Operation** - the name of the API operation

For each environment, the `clientToken` will be provided to you by Mews. For development purposes, use the [Demo environment](https://docs.mews.com/channel-manager-api/guidelines/environments.md#demo-environment).

> **Transport Layer Security:** For security reasons, Mews API endpoints support TLS security protocol version 1.2 or higher.

## Channel Manager side

All Channel Manager API operations are expected to follow this address pattern:

```
[PlatformAddress]/[Operation]
```

* **PlatformAddress** - the base address of the Channel Manager side of the API
* **Operation** - the name of the API operation

### Providing endpoints to Mews

Please provide Mews with endpoint URLs for the following API operations once they are deployed. Mews needs them for both the Demo environment and the Production environment to be able to send data. Mews doesn't require all endpoint URLs to be provided at once. We recommend having a different `[PlatformAddress]` for each environment to prevent test data and live data from getting mixed up. For the same reason, `clientToken` should differ between each environment.

**Required**:

* [Update prices](https://docs.mews.com/channel-manager-api/channel-manager-operations/inventory.md#update-prices)
* [Update availability](https://docs.mews.com/channel-manager-api/channel-manager-operations/inventory.md#update-availability)
* [Update restrictions](https://docs.mews.com/channel-manager-api/channel-manager-operations/inventory.md#update-restrictions)
* [Confirm booking](https://docs.mews.com/channel-manager-api/channel-manager-operations/reservations.md#confirm-booking)

**Optional**:

* [Change notification](https://docs.mews.com/channel-manager-api/channel-manager-operations/notifications.md#change-notification)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mews.com/channel-manager-api/guidelines/requests.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
