---
title: "Send a global notification"
method: POST
path: "/eclipse-conductor/rest/v1/global/notifications"
tags: ["z) Global Functionality"]
---

# Send a global notification

`POST /eclipse-conductor/rest/v1/global/notifications`

Sends a notification via SMS, email, or other channels. Supports a TEMPLATE type using Handlebars templates configured via properties.

## Request body

- EclipseNotification — Allow to send notification
  - `cardBin` string
  - `customerId` integer
  - `data` string, required — Data must be sent in JSON format, Data is bound with Mustache template(templateId) so need to send the same key that is used in a template.For email attachment use key 'mediaType' & 'base64EncodedAttachment' in data JSON format
  - `deviceMessage` DeviceMessage
    - `avps` Avp[]
      - `att` string, required
      - `val` string, required
    - `body` string
    - `imageUrl` string
    - `priority` 'HIGH' | 'NORMAL'
    - `timeToLive` integer — How long (in seconds) the message should be kept in FCM storage if the device is offline.
    - `title` string
  - `eventType` string
  - `ruleMatch` string
  - `templateId` string — Mustache template Id for notification. The eclipse will look templateId in the property if templateId is found then it will send SMS else return an error. Need to set templateId in this format in property mustache.sms.\<tenantId\>.\<templateId\> i.e If tenants set property like mustache.sms.2.auth then they can pass either mustache.sms.2.auth or auth as templateId value.
  - `tokenId` integer
  - `type` 'EMAIL' | 'PUSH' | 'SMS' | 'TEMPLATE'
  - `walletId` integer

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.dev/eftcorp/apis/eclipse-rest-api.md) · [All operations](https://skmtc.dev/eftcorp/apis/eclipse-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eftcorp/eclipse-rest-api/revisions/9213d52d49a3/schema)
