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
Name | Description | Type |
title | The title for the custom notification | String |
message | The content of the custom notification | String |
userids | The IDs of the users to whom the notifications need to be sent | String |
type | Specify 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"}