Notification APIs

Create a Notification

Purpose

To create custom push notifications for the web and mobile app.

Request URL

https://fsm.zoho.com/fsm/v1/notifications/actions/send

Request Method

POST

Scope

scope=ZohoFSM.notifications.CREATE

Mandatory Parameters

NameDescriptionType
titleThe title for the custom notificationString
messageThe content of the custom notificationString
useridsThe IDs of the users to whom the notifications need to be sentString
typeSpecify the type as web or mobile, i.e. whether you want the push notification to be sent to the web or mobile app.String

Sample Request

Copiedcurl --location --request POST 'https://fsm.zoho.com/fsm/v1/notifications/actions/send' \
-d "@newNotification.json" \
--header 'Authorization: Zoho-oauthtoken 1xxx.xxxxxxxxxx'

Sample Input

Copied{
    "title":"Custom Notification",
    "message":"This is a custom mobile notification",
    "userids":"1003XXXX208179",
    "type":"mobile"
}

Sample Success Response

Copied{"status":"success"}