Push campaigns

Broadcast a push notification to your app audience in two steps: create the campaign, then launch it.

Create a campaign

POST /api/apikey/v1/PushCampaignApi/all

ParameterTypeRequiredDescription
NameStringYesCampaign name.
titleStringYesNotification title.
contentStringYesNotification body.
appGuidString (UUID)YesTarget application.
ClientAccountGuidString (UUID)YesClient account.
scheduleDateNumber / nullNoEpoch schedule time; null sends now.
timeZoneIdString / nullNoTimezone for the schedule.
imageUrlString / nullNoImage to display.
launchUrlStringNoURL opened on tap.
DataArrayNoCustom key/value pairs.
json
{
  "Name": "test push",
  "title": "hello world",
  "content": "hello world",
  "scheduleDate": null,
  "appGuid": "<App_Guid>",
  "timeZoneId": null,
  "imageUrl": null,
  "launchUrl": "",
  "ClientAccountGuid": "<Client_Account_Guid>",
  "Data": [ { "key": "", "value": "" } ]
}

201 Created

json
{ "message": "Success", "code": "8_13_201", "success": true, "data": null, "version": "1" }

Launch a campaign

PUT /api/apikey/v1/PushCampaignApi/campaign-launch

bash
curl -X PUT "https://omni-apis.montymobile.com/notification/api/apikey/v1/PushCampaignApi/campaign-launch" \
  -H "api-key: <Your_API_Key>" \
  -H "Tenant: <Tenant_ID>" \
  -H "Content-Type: application/json" \
  -d '{ "CampaignId": "<Campaign_Id>" }'

The launch response body is being finalized. Coming soon