Create an API key (Rich Authentication Token) for a single OneSignal app.

Overview

Use this API to create a new OneSignal app API key (Rich Authentication Token). This is helpful if you need to perform app API operations and don't want to login into the dashboard to generate an API key for it. See Keys & IDs for details.


How to use this API

Using your Organization API key (available in Organizations > Keys & IDs) you can create an app API key (Rich Authentication Token) for the associated OneSignal app.

If you want to set the explicit range of IPs that can use this API key, add them by setting ip_allowlist_mode to explicit and in ip_allowlist add the IPs in CIDRs notation as an array of string values.


Language