# Emergency Push Notification — Pushover

> Sends an Emergency Push Notification to devices with Pushover. Notifications are repeated until they are acknowledged by the user. More information at Pushing Messages and Message Priority

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

## Description

Sends an Emergency Push Notification to devices with Pushover.
    Notifications are repeated until they are acknowledged by the user.
    More information at [Pushing Messages](https://pushover.net/api#messages) and [Message Priority](https://pushover.net/api#priority)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `message` | `string` | Yes | The notification message |
| `retry` | `integer` | Yes | 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` | Yes | 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). |
| `callback` | `string` | No | A publicly-accessible URL that Pushover will send a request to when the user has acknowledged the notification |
| `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 |
| `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-emergency-push-notification",
  arguments: {
    message: "Message",
    retry: 10,
  },
})
```

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

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

---

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