# Send Vybit — Vybit

> Triggers a vybit, with optional customizations available. See the documentation

- Key: `vybit-send-vybit`
- Type: Action (Write)
- Version: 0.0.2
- App: Vybit (`vybit`) — https://pipedream.com/apps/vybit.md
- This page (HTML): https://pipedream.com/apps/vybit/actions/send-vybit
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/vybit/actions/send-vybit/send-vybit.mjs

## Description

Triggers a vybit, with optional customizations available. [See the documentation](https://www.vybit.net/#trigger)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `vybitId` | `string` | Yes | Select a Vybit, or provide a Vybit ID. Options are loaded from the connected account. |
| `message` | `string` | No | Content that will override the default Vybit message and appear in the Vybit log. |
| `imageUrl` | `string` | No | An image to attach to the notification (will override the default setting) |
| `linkUrl` | `string` | No | A redirect URL when the notification is tapped (will override the default setting) |
| `log` | `string` | No | Content to append to the Vybit log (supports hyperlinks, such as <a href='https://example.com'>Example</a>) |

## Run it

**MCP**

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

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

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "vybit-send-vybit",
  arguments: {
    vybitId: "Vybit ID",
    message: "Message",
  },
})
```

**TypeScript**

```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: "vybit-send-vybit",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    vybit: { authProvisionId: "apn_xxxxxxx" },
    vybitId: "Vybit ID",
    message: "Message",
  },
})

console.log(result)
```

**cURL**

```bash
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": "vybit-send-vybit",
    "configured_props": {
      "vybit": { "authProvisionId": "apn_xxxxxxx" },
      "vybitId": "Vybit ID",
      "message": "Message"
    }
  }'
```

---

- App: https://pipedream.com/apps/vybit.md · All apps: https://pipedream.com/apps
