Skip to main content

OneSignal

Getting Started with OneSignal

The OneSignal modules allow you add new purchases, sessions, new devices, list devices and send notifications in your OneSignal account.

Prerequisites

  • A OneSignal account

In order to use OneSignal with Make, it is necessary to have a OneSignal account. If you do not have one, you can create a OneSignal account at app.onesignal.com/signup.

Note

The module dialog fields that are displayed in bold (in the Make scenario, not in this documentation article) are mandatory!

To connect your OneSignal account to Make you need to obtain the User Auth Key by following these steps:

1. Log in to your OneSignal account.

2. Open the Account & API Keys settings.

3. Navigate to User Auth Key section and copy the provided Auth Key.

61f274998ac35.gif

4. Go to the Make OneSignal module and open the Create a connection dialog.

5. Insert the User Auth Key to the respective field and click on the Continue button.

The connection is now established and you can begin to set up the OneSignal module.

Allows you to perform a custom API call.

Connection

Establish a connection to your OneSignal account.

URL

Enter a path relative to https://onesignal.com/api. E.g. /v1/apps

Note

For the list of available endpoints, refer to the OneSignal REST API Reference.

Method

Select the HTTP method you want to use:

GET to retrieve information for an entry.

POST to create a new entry.

PUT to update/replace an existing entry.

PATCH to make a partial entry update.

DELETE to delete an entry.

Headers

Enter the desired request headers. You don't have to add authorization headers; we already did that for you.

Query String

Enter the request query string.

Body

Enter the body content for your API call.

Example of Use - List Apps

The following API call returns all of the current apps in your account.

61f2749c82ed9.png

Matches of the search can be found in the module's Output under Bundle > Body. In our example, 1 app was returned:

61f2749d94345.png

For more detailed information about the functions of the fields, please refer to the OneSignal REST API documentation.