Push quickstart

Push delivery is a two-step flow: register a device, then send a notification to it.

Before you begin

  • An API token and tenant ID — see Getting started.
  • A registered app (AppGuid) and an X-Access-Token for device registration.

1. Register a device

curl -X POST "https://omni-apis.montymobile.com/notification/api/v1/Subscriber/register" \
  -H "api-key: <Your_API_Key>" \
  -H "Tenant: <Tenant_ID>" \
  -H "X-Access-Token: <Access_Token>" \
  -H "LanguageCode: en" \
  -H "Content-Type: application/json" \
  -d '{
    "deviceId": "<Device_Id>",
    "fcmToken": "<Fcm_Token>",
    "platformTag": "MOBILE_ANDROID",
    "osTag": "ANDROID",
    "userGuid": "<User_Guid>",
    "appGuid": "<App_Guid>",
    "Version": "2.8"
  }'

See the full field list in the register reference.

2. Send a push to the device

bash
curl -X POST "https://omni-apis.montymobile.com/notification/api/v1/Push/device" \
  -H "api-key: <Your_API_Key>" \
  -H "Tenant: <Tenant_ID>" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Hello",
    "content": "Your first push from Monty Mobile",
    "AppGuid": "<App_Guid>",
    "ApiId": "<Api_Id>",
    "DeviceGuid": "<Device_Guid>"
  }'

Next steps