Configuration Requirements

You can get your OneSignal App ID and REST API Key by following these instructions.

Profile Requirements

To deliver a message to a recipient over OneSigal, Courier must be provided the recipient’s PlayerId or ExternalId. This ID should be included in the recipient profile as oneSignalPlayerID or oneSignalExternalUserId.

{
  "message": {
    "to": {
       "oneSignalPlayerID": "..."
    }
  }
}
// or
{
  "message": {
    "to": {
       "oneSignalExternalUserId": "..."
    }
  }
}