Triggering a Signal through an API
When should you trigger the signal via an API?
When the third-party allows you to make a POST request with the details of the event and supports the OAuth2.0 authentication. You can also use this method when the third-party allows you to customize the way it sends the data in the callback.
In this case, you can construct a JSON body with the details of the event and make a POST request to the Signals API directly.
Note that when you want to trigger a signal through an API, you must establish a connection between the third-party app and Zoho CRM. Refer to Connections to know more.
You can trigger a custom signal through an API.
Request URL
https://www.zohoapis.com/crm/v2/signals/notifications
Request Method
POST
Scope
scope=ZohoCRM.signals.ALL
Attributes
Attribute | Data Type | Mandatory | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
signal_namespace | String | Yes | Unique name of the signal. | ||||||||||||||||||||
subject | String | Yes | A short description about the signal. Accepts up to 100 characters. | ||||||||||||||||||||
message | String | Yes | A detailed description about the signal. Accepts up to 1000 characters. | ||||||||||||||||||||
email/id | String | Yes | Email ID or the record ID of the module. Refer to the Note section for more information | ||||||||||||||||||||
actions Show properties | JSON array | Yes | Details of the third-party extension such as the display name of the page you want to open, the URL, and how you want to open the link. | ||||||||||||||||||||
actions Properties
|
You can format the contents in the "message" key. The following are the formatting options.
Bold: Enclose the contents in asterisks (*). Example: *This content is bold.*
Italics: Enclose the contents in carets (^). Example: ^This content is in italics.^
Line break: Use ~br~ to insert a line break. You must not insert a line break between either of the other two formatting options.
The email/id attribute is currently supported only for Contact and Lead modules.
Sample POST Body
{
"signals": [
{
"signal_namespace": "surveymonkey.responded",
"email": "p.boyle@xyz.com",
"subject": "Welcome Zoho CRM 2020",
"message": "*ZOHO Corporation* offers ~br~ ^Online Business,^ ~br~ ^Network and IT Infrastructure Management Applications,^ ~br~ ^Software Maintenance and Support Services^",
"actions": [
{
"type": "link",
"open_in": "popup",
"display_name": "View Email",
"url": "www.google.com"
}
]
}
]
}