# 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](/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](/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](/channel-manager-api/channel-manager-operations/inventory.md#update-prices)
* [Update availability](/channel-manager-api/channel-manager-operations/inventory.md#update-availability)
* [Update restrictions](/channel-manager-api/channel-manager-operations/inventory.md#update-restrictions)
* [Confirm booking](/channel-manager-api/channel-manager-operations/reservations.md#confirm-booking)

**Optional**:

* [Change notification](/channel-manager-api/channel-manager-operations/notifications.md#change-notification)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
