# Yay.com — Pipedream Connect

> Innovative VoIP Phone System Provider For Business

- API slug: `yay_com` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Communication
- Website: https://www.yay.com
- This page (HTML): https://pipedream.com/apps/yay-com
- Tools: 5 actions · 1 trigger

## 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: yay_com`

```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": "yay_com",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// e.g. run Create Outbound Call:
const result = await mcp.callTool({
  name: "yay_com-create-outbound-call",
  arguments: {
    userUuid: "SIP User ID",
    destination: "Destination",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.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: "yay_com-create-outbound-call",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    yay_com: { authProvisionId: "apn_xxxxxxx" },
    userUuid: "SIP User ID",
    destination: "Destination",
  },
})
```

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

## Actions (5)

### `yay_com-create-outbound-call` — Create Outbound Call (Write)

Initiates an outbound call to a specified number. See the documentation

Full schema: https://pipedream.com/apps/yay-com/actions/create-outbound-call.md

### `yay_com-get-documents` — Get Documents (Read-only)

Retrieves all documents available. See the documentation

Full schema: https://pipedream.com/apps/yay-com/actions/get-documents.md

### `yay_com-get-phone-books` — Get Phone Books (Read-only)

Retrieves all phone books available. See the documentation

Full schema: https://pipedream.com/apps/yay-com/actions/get-phone-books.md

### `yay_com-list-sip-user-options` — List SIP User ID Options (Read-only)

Retrieves available options for the SIP User ID field.

Full schema: https://pipedream.com/apps/yay-com/actions/list-sip-user-options.md

### `yay_com-list-hunt-groups-options` — List Target Hunt Groups Options (Read-only)

Retrieves available options for the Target Hunt Groups field.

Full schema: https://pipedream.com/apps/yay-com/actions/list-hunt-groups-options.md

## Triggers (1)

### `yay_com-new-contact-added` — New Contact Added (Polling)

Emit new event when a contact is added to a phone book. See the documentation

Full schema: https://pipedream.com/apps/yay-com/triggers/new-contact-added.md

---

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