Mews

An innovative hospitality management cloud that empowers the modern hotelier to improve performance, maximize revenue, and provide remarkable guest experiences.

Go to site

Mews API Integrations

Build and run workflows using the Mews API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

With the Mews API, you can build software that integrates with the Mews Platform and automates various tasks, such as:

  • Collecting and processing payments
  • Managing reservations
  • Generating reports
  • Synchronizing data with other systems
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    mews: {
      type: "app",
      app: "mews",
    }
  },
  async run({steps, $}) {
    const data = {
      "ClientToken": `${this.mews.$auth.ClientToken}`,
      "AccessToken": `${this.mews.$auth.AccessToken}`,
      "Client": `${this.mews.$auth.Client}`,
    }
    return await axios($, {
      method: "post",
      url: `https://${this.mews.$auth.platform_url}/api/connector/v1/configuration/get`,
      auth: {
        username: `{{custom_fields.email}}`,
        password: `{{custom_fields.password}}`,
      },
      data,
    })
  },
})

Authentication

Mews uses API keys for authentication. When you connect your Mews account, Pipedream securely stores the keys so you can easily authenticate to Mews APIs in both code and no-code steps.

  • ClientToken is provided by Mews integration team. For further information, please use the chat function on the Environment - Connector API page.
  • AccessToken is a unique token per enterprise and can be provided to you by the Mews enterprise admin.
  • Client is a string identifying the system using the API.
  • The platform_url depends on the environment used to access the Connector API. For the production environment use www.mews.li. Demo Environments are available too.