Pushover
Send push notifications to mobile and desktop devices via Pushover.
Connect
Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.
- From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
- Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
- Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.
Call it from a workflow
step.ctx.integrations.invoke("pushover", action, input) resolves with the provider's answer and rejects when Pushover isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "pushover"} says whether yours can call it.
// workflows/notify.ts: call Pushover when a booking is confirmed
import { on } from "@appbricx/workflows";
export const tellPushover = on.transition("booking", "status", "confirmed", async (_event, step) => {
// Recorded once: a retry doesn't send it twice. Rejects when Pushover isn't connected.
const output = await step.run("Pushover", () =>
step.ctx.integrations.invoke("pushover", "send_notification", {
"message": "<message>"
}),
);
step.ctx.log("Pushover answered", output);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "pushover",
"piece_action": "send_notification",
"input": {
"message": "<message>"
},
"env": "dev"
}
}curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/pushover/send_notification" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"message":"<message>"}}'Actions
send_notification
Send Notification. Send a notification to Pushover
| Input | Type | Description |
|---|---|---|
titleoptional | text | The title of the notification |
messagerequired | long text | The message to send |
htmloptional | boolean | To enable HTML parsing |
priorityoptional | number | The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire. |
retryoptional | number | Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user. |
expireoptional | number | Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds). |
urloptional | text | A supplementary URL to show with your message. |
url_titleoptional | text | A title for the URL specified as the url input parameter, otherwise just the URL is shown. |
timestampoptional | text | a Unix timestamp of a time to display instead of when our API received it. |
deviceoptional | text | The name of one of your devices to send just to that device instead of all devices. |
Details
- Id
pushover- Category
- Communication
- Tags
- push, notifications, alerts, mobile
- Package
@activepieces/piece-pushover@0.2.3- Runs
- Through the integration runner