Skip to main content

Connect to Pushover

· 3 min read

You can connect to Pushover using Retool's REST API integration and make it available as a resource. Once complete, you can write queries that send push notifications to devices with the Pushover app installed.

Requirements

All users for Retool organizations on Free or Team plans have global Edit permissions and can add, edit, and remove resources. If your organization manages user permissions for resources, you must be a member of a group with Edit all permissions.

To create your Pushover resource, you need:

Pushover authenticates with an API token that is sent in the request body. You must provide the API key for Retool to authorize requests. Refer to the Pushover documentation on authenticating requests to learn how to obtain an API token.

1. Create a REST API resource

Retool can connect to almost any API or database, and has built-in integrations for popular data sources. Sign in to your Retool organization and create a new REST API resource from the Resources tab.

2. Configure the resource

Provide the necessary details to configure the resource so Retool can connect to Pushover. Not all settings are required but refer to the Pushover documentation to learn what is needed.

General

These settings configure the name and location of the resource within Retool.

Name

The name to use for the resource (e.g., Pushover).

Folder

The folder in which to save the resource.

Description

A brief description of the resource (e.g., Customer data).

Credentials

These settings configure how Retool connects to Pushover.

Base URL

The base URL for the Pushover API. This must be an absolute URL. Use https://api.pushover.net.

URL parameters

Key-value pairs to include as URL parameters with Pushover API requests. No additional URL parameters are required.

Headers

Key-value pairs to include as headers with Pushover API requests. No additional header values are required.

Body

Key-value pairs to include in the body of Pushover API requests. Include the following key-value pairs:

KeyValue
tokenAPI_TOKEN

Cookies

Cookies to include with Pushover API requests. No cookies are required.

Authentication

The method of authentication to use with Pushover. Select None.

Forward all cookies

Whether to forward all cookies. This is useful if you have dynamic cookie names.

3. Save the resource

Click Create resource to complete the setup. You can then click either Create an app to immediately start building a Retool app or Back to resources to return to the list of resources.

Wrap up

Your Pushover resource is now ready to use. You write queries to make API requests by specifying the request method and endpoint, additional parameters to include, and the request body.

To verify you can successfully interact with Pushover, write a test query to retrieve some data. The following example sends a message to the specified device.

Request
POST https://api.pushover.net/messages.json
``

You must include the following key-value pairs when writing Pushover queries.

| Key | Description |
| :--- | :--- |
| `user` | The user or group key of the target user. |
| `message` | The message to send. |