Skip to main content

Setup

You will need a NowPush account. In Courier, navigate to the NowPush Integration page, enter your API key, then click “Save.”

Profile Requirements

No profile data is required for NowPush. If device_type, message_type, url or apiKey are included in your notification template it will replace the configuration.
{
  "message": {
    "to": {
      "nowpush": {
        "device_type": "browser",
        "message_type": "link",
        "url": "www.nowpush.com",
        "apiKey": ""
      }
    }
  }
}

Overrides

Body Overrides

Overrides can be used to change the request body that Courier sends to NowPush’s API.
{
  "message": {
    "template": "NOTIFICATION_TEMPLATE_ID",
    "to": {},
    "providers": {
      "nowpush": {
        "override": {
          "body": {
            "device_type": "browser",
            "message_type": "nowpush_msg"
          }
        }
      }
    }
  }
}

Config Overrides

You can swap the API key or URL at send time using a config override:
{
  "message": {
    "template": "NOTIFICATION_TEMPLATE_ID",
    "to": {},
    "providers": {
      "nowpush": {
        "override": {
          "config": {
            "apiKey": "RUNTIME_API_KEY"
          }
        }
      }
    }
  }
}