CONNECT APP
Build with Mews
An innovative hospitality management cloud that empowers the modern hotelier to improve performance, maximize revenue, and provide remarkable guest experiences.
Business Management
- API key
MCP
Give your agent Mews tools
Every Mews action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's Mews account for each tool call — you store no tokens.
// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "mews",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// e.g. run Add Customer:
const result = await mcp.callTool({
name: "mews-add-customer",
arguments: {
overwriteExisting: true,
lastName: "Last Name",
},
})# access_token: mint a short-lived token with the Connect SDK — see the MCP guide
headers = {
"Authorization": f"Bearer {access_token}",
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", # any stable ID for this user in your system
"x-pd-app-slug": "mews",
}
async with streamablehttp_client("https://remote.mcp.pipedream.net/v3", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
# e.g. run Add Customer:
result = await session.call_tool("mews-add-customer", {
"overwriteExisting": True,
"lastName": "Last Name",
})API PROXY
Call the Mews API directly
For an endpoint with no pre-built tool, the Connect proxy forwards your request to the Mews API with the connected user's credentials attached. You store no tokens and write no refresh logic.
const resp = await pd.proxy.get({
externalUserId: "{external_user_id}", // any stable ID for this user in your system
accountId: "apn_xxxxxxx",
url: "https://api.example.com/v1/me",
})
// Any allowed Mews endpoint works here. Pipedream attaches the
// connected account's credentials to the outgoing request.# The path segment is the target URL, URL-safe base64 encoded:
# https://api.example.com/v1/me
curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEvbWU?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
-H "Authorization: Bearer {access_token}" \
-H "x-pd-environment: production"SDK
Run Mews actions from your backend
Connect a user's Mews account once, then run Add Customer on their behalf from your own code — TypeScript, Python, or plain HTTP.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "mews-add-customer",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
mews: { authProvisionId: "apn_xxxxxxx" },
overwriteExisting: true,
lastName: "Last Name",
},
})from pipedream import Pipedream
pd = Pipedream(
client_id="{oauth_client_id}",
client_secret="{oauth_client_secret}",
project_id="{project_id}",
project_environment="production",
)
result = pd.actions.run(
id="mews-add-customer",
external_user_id="{external_user_id}", # any stable ID for this user in your system
configured_props={
"mews": {"authProvisionId": "apn_xxxxxxx"},
"overwriteExisting": True,
"lastName": "Last Name",
},
)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "mews-add-customer",
"configured_props": {
"mews": { "authProvisionId": "apn_xxxxxxx" },
"overwriteExisting": true,
"lastName": "Last Name"
}
}'TOOLS
Mews actions
On-demand operations your product or agent can configure and run on behalf of a connected user.
-
Add Customer
actionAdds a new customer to the system. See the documentationWritev0.0.3 -
Add Customer File
actionAdd a customer file to the Mews system. See the documentationWritev0.0.3 -
Add Reservation Companion
actionAdd a customer as a companion to a reservation. See the documentationWritev0.0.3 -
Add Reservation Product
actionAdd a product to a reservation. See the documentationWritev0.0.3 -
Cancel Reservation
actionCancel a reservation in Mews.Writev0.0.4 -
Create Availability Block
actionCreate an availability block in Mews. See the documentationWritev0.0.3 -
Create New Task
actionCreate a new task in Mews. See the documentationWritev0.0.3 -
Create Order
actionCreate an order in Mews. See the documentationWritev0.0.3 -
Create Reservation
actionCreate a reservation in Mews. See reservation parameters in the docs. See the documentationWritev0.0.4 -
Fetch Age Categories
actionRetrieve all age categories filtered by service. See the documentationRead-onlyv0.1.0 -
Fetch Bills
actionRetrieve bills using Mews Connector API. See the documentationRead-onlyv0.0.1 -
Fetch Customers
actionRetrieve customers using Mews Connector API. See the documentationRead-onlyv0.1.0 -
Fetch Order Items
actionRetrieve order items using Mews Connector API. See the documentationRead-onlyv0.1.0 -
Fetch Products
actionRetrieve products using Mews Connector API. See the documentationRead-onlyv0.1.0 -
Fetch Rates
actionRetrieve rates (pricing setups) of the specified services using Mews Connector API. See the documentationRead-onlyv0.0.1 -
Fetch Reservations
actionRetrieve reservations using Mews Connector API. See the documentationRead-onlyv0.1.0 -
Get Bill PDF
actionGet a bill PDF by bill ID. See the documentationRead-onlyv0.0.3 -
Get Rate Prices
actionGet rate pricing information for a specific rate and time period. See the documentationRead-onlyv0.0.3 -
Update Customer
actionUpdate an existing customer in Mews. See the documentationWritev0.0.3 -
Update Reservation
actionUpdate an existing reservation in Mews. See the documentationWritev0.0.4
-
New Closed Bill
triggerEmit new event when a bill is closedv0.0.2 -
New Company
triggerEmit new event when a company is created. See the documentationv0.0.2 -
New Customer
triggerEmit new event when a customer is created. See the documentationv0.0.2 -
New Order Item Created
triggerEmit new order items as they are created (polling). See the documentationv0.0.3 -
New Product Service Order Created
triggerEmit new product service orders as they are created (polling). See the documentationv0.0.3 -
New Reservation Created
triggerEmit new reservations as they are created (polling). See the documentationv0.0.3 -
Order Item Updated
triggerEmit new order items as they are updated (polling). See the documentationv0.0.3 -
Reservation Cancelled
triggerEmit new reservations as they are cancelled (polling). See the documentationv0.0.3 -
Reservation Updated
triggerEmit new reservations as they are updated (polling). See the documentationv0.0.3
- App slug
- mews
- Authentication
- API key
- Categories
- Business Management
- Actions
- 20
- Triggers
- 9
- API proxy
- Available