# Push Notification — Pushover

> Sends a Push Notification to devices with Pushover. More information at Pushing Messages

- Key: `pushover-push-notification`
- Type: Action (Write)
- Version: 0.0.6
- App: Pushover (`pushover`) — https://pipedream.com/apps/pushover.md
- This page (HTML): https://pipedream.com/apps/pushover/actions/push-notification
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/pushover/actions/push-notification/push-notification.mjs

## Description

Sends a Push Notification to devices with Pushover. More information at [Pushing Messages](https://pushover.net/api#messages)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `message` | `string` | Yes | The notification message |
| `title` | `string` | No | The message title |
| `url` | `string` | No | A supplementary URL to show with the message |
| `urlTitle` | `string` | No | A title for the supplementary URL. If blank, the URL is shown |
| `device` | `string` | No | The device name to send the message directly. Can be comma-separated names for sending to multiple devices |
| `priority` | `string` | No | The message priority. More information at Pushover API |
| `retry` | `integer` | No | How often, in seconds, Pushover will send the same notification. In a situation where your user might be in a noisy environment or sleeping, retrying the notification (with sound and vibration) will help get his or her attention. This parameter must have a value of at least 30 seconds between retries. |
| `expire` | `integer` | No | Notification expiration time, in seconds. If the notification has not been acknowledged in expire seconds, it will be marked as expired and will stop being sent to the user. Note that the notification is still shown to the user after it is expired, but it will not prompt the user for acknowledgement. This parameter must have a maximum value of at most 10800 seconds (3 hours). |
| `sound` | `string` | No | The name of the notification sound supported by the device. More information at Pushover API Options are loaded from the connected account. |

## 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": "pushover",
      },
    },
  },
)

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: "pushover-push-notification",
  arguments: {
    message: "Message",
    title: "Title",
  },
})
```

**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: "pushover-push-notification",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    pushover: { authProvisionId: "apn_xxxxxxx" },
    message: "Message",
    title: "Title",
  },
})

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": "pushover-push-notification",
    "configured_props": {
      "pushover": { "authProvisionId": "apn_xxxxxxx" },
      "message": "Message",
      "title": "Title"
    }
  }'
```

---

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