# Microsoft Bookings — Pipedream Connect

> Online Bookings and Appointment Scheduling

- API slug: `microsoft_bookings` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Business Management
- Website: https://www.microsoft.com/en-us/microsoft-365/business/scheduling-and-booking-app
- Managed OAuth scopes: `email` · `offline_access` · `openid` · `profile` · `Bookings.Manage.All` · `Bookings.Read.All` · `Bookings.ReadWrite.All` · `BookingsAppointment.ReadWrite.All` · `User.Read`
- This page (HTML): https://pipedream.com/apps/microsoft-bookings
- Tools: 10 actions · 0 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: microsoft_bookings`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
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 accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_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": "microsoft_bookings",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Cancel Appointment:
const result = await mcp.callTool({
  name: "microsoft_bookings-cancel-appointment",
  arguments: {
    businessId: "Business",
    appointmentId: "Appointment",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Microsoft Bookings endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://graph.microsoft.com/v1.0/solutions/bookingBusinesses

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9ncmFwaC5taWNyb3NvZnQuY29tL3YxLjAvc29sdXRpb25zL2Jvb2tpbmdCdXNpbmVzc2Vz?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
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: "microsoft_bookings-cancel-appointment",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    microsoft_bookings: { authProvisionId: "apn_xxxxxxx" },
    businessId: "Business",
    appointmentId: "Appointment",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (10)

### `microsoft_bookings-cancel-appointment` — Cancel Appointment (Write)

Cancels an appointment in a Microsoft Bookings business. See the documentation

Full schema: https://pipedream.com/apps/microsoft-bookings/actions/cancel-appointment.md

### `microsoft_bookings-create-appointment` — Create Appointment (Write)

Creates a new appointment in a Microsoft Bookings business. See the documentation

Full schema: https://pipedream.com/apps/microsoft-bookings/actions/create-appointment.md

### `microsoft_bookings-create-business` — Create Booking Business (Write)

Creates a new Microsoft Bookings business. See the documentation

Full schema: https://pipedream.com/apps/microsoft-bookings/actions/create-business.md

### `microsoft_bookings-create-customer` — Create Customer (Write)

Creates a new customer in a Microsoft Bookings business. See the documentation

Full schema: https://pipedream.com/apps/microsoft-bookings/actions/create-customer.md

### `microsoft_bookings-create-service` — Create Service (Write)

Creates a new service in a Microsoft Bookings business. See the documentation

Full schema: https://pipedream.com/apps/microsoft-bookings/actions/create-service.md

### `microsoft_bookings-create-staff-member` — Create Staff Member (Write)

Creates a new staff member in a Microsoft Bookings business. See the documentation

Full schema: https://pipedream.com/apps/microsoft-bookings/actions/create-staff-member.md

### `microsoft_bookings-list-appointments` — List Appointments (Read-only)

Lists appointments in a specified date range for a Microsoft Bookings business. See the documentation

Full schema: https://pipedream.com/apps/microsoft-bookings/actions/list-appointments.md

### `microsoft_bookings-list-businesses` — List Booking Businesses (Read-only)

Lists all Microsoft Bookings businesses. See the documentation

Full schema: https://pipedream.com/apps/microsoft-bookings/actions/list-businesses.md

### `microsoft_bookings-list-services` — List Services (Read-only)

Lists all services in a Microsoft Bookings business. See the documentation

Full schema: https://pipedream.com/apps/microsoft-bookings/actions/list-services.md

### `microsoft_bookings-list-staff-members` — List Staff Members (Read-only)

Lists all staff members in a Microsoft Bookings business. See the documentation

Full schema: https://pipedream.com/apps/microsoft-bookings/actions/list-staff-members.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
