Skip to content

Zoho: List active notification channels

Zoho notifications.getNotifications: arguments, response, policy and SDK examples.

← Notifications operations · Get started

Operation zoho.getnotifications

Provider route: GET /crm/v8/actions/watch. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/zoho with npm, or alter-sdk-zoho with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { ZohoIntegration } from "@alter-ai/zoho";
async function execute(input: Parameters<ZohoIntegration["notifications"]["getNotifications"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new ZohoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.notifications.getNotifications(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_zoho import ZohoIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = ZohoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.notifications.get_notifications(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.modulestringOptionalMaximum length: 64
query.channel_idstringOptionalMaximum length: 64

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$objectRootContains the list of active notification channels and pagination information for the response.
Additional keys: not allowed
infoobjectOptionalRepresents the pagination metadata for the notification channel list, including the current page, record count per page, and whether additional pages are available.
Additional keys: not allowed
info.countJSONOptional
info.count (anyOf 1)integerAlternativeRepresents the number of notification channel records included in the current response.
Format: int32
Maximum: 100
info.count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
info.more_recordsbooleanOptionalIndicates whether more notification channel records are available beyond the current page.
Possible values:
true - Additional notification channels are available.
false - No additional notification channels are available.
info.pageJSONOptional
info.page (anyOf 1)integerAlternativeRepresents the current page number in the paginated response.

Note
Use the page and per_page parameter to fetch records according to their position in the CRM. Let’s assume that the user has to fetch 400 records. The maximum number of records that one can get for an API call is 200. So, for records above the 200th position, they cannot be fetched. By using the page (1, 2, 3 and 4) and per_page (100) parameter, the user can fetch all 400 records using 4 API calls.
Format: int32
Maximum: 100
info.page (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
info.per_pageJSONOptional
info.per_page (anyOf 1)integerAlternativeRepresents the number of notification channel records returned per page.
Format: int32
Maximum: 200
info.per_page (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
watcharrayOptionalRepresents the list of active notification channels for the authenticated user.
Maximum items: 200
watch[]objectEach itemRepresents the details of a single active notification channel.
Additional keys: not allowed
watch[].channel_expirystringOptionalRepresents the expiry date and time of the notification channel.
Format: date-time
watch[].channel_idstringOptionalRepresents the unique identifier of the notification channel.
Maximum length: 64
watch[].eventsarrayOptionalRepresents the list of CRM module events for which notifications are triggered on this channel.
Maximum items: 10
watch[].events[]stringEach itemRepresents a CRM module event name that triggers a notification on this channel.
Maximum length: 128
watch[].fieldsJSONOptional
watch[].fields (anyOf 1)arrayAlternativeRepresents the list of record fields included in the notification payload.
Maximum items: 100
watch[].fields (anyOf 1)[]JSONEach item
watch[].fields (anyOf 2)nullAlternativeRepresents the list of record fields included in the notification payload.
Maximum items: 100
watch[].fields (anyOf 2)[]JSONEach item
watch[].notification_conditionJSONOptional
watch[].notification_condition (anyOf 1)arrayAlternativeRepresents the list of field-selection conditions that determine which record changes trigger a notification on this channel.
Maximum items: 2
watch[].notification_condition (anyOf 1)[]ModelEach itemExpand List active notification channels — response body — watch item notification condition null item
watch[].notification_condition (anyOf 2)nullAlternativeRepresents the list of field-selection conditions that determine which record changes trigger a notification on this channel.
Maximum items: 2
watch[].notification_condition (anyOf 2)[]ModelEach itemExpand List active notification channels — response body — watch item notification condition null item
watch[].notify_on_related_actionbooleanOptionalIndicates whether the notification channel is triggered by actions on records related to the subscribed module.
Possible values:
true - Notifications are sent for related record actions.
false - Notifications are sent only for direct record actions.
watch[].notify_urlstringOptionalRepresents the callback URL to which notifications are delivered when subscribed events occur.
Maximum length: 255
watch[].resource_idstringOptionalRepresents the unique identifier of the CRM resource associated with the notification channel.
Maximum length: 64
watch[].resource_namestringOptionalRepresents the name of the CRM resource associated with the notification channel.
Maximum length: 128
watch[].resource_uristringOptionalRepresents the URI of the CRM resource associated with the notification channel.
Maximum length: 255
watch[].return_affected_field_valuesbooleanOptionalIndicates whether the notification payload includes the changed field values from the affected record.
Possible values:
true - The notification payload includes the updated field values.
false - The notification payload does not include field values.
watch[].tokenJSONOptional
watch[].token (anyOf 1)stringAlternativeRepresents the verification token used to authenticate notifications sent to the callback URL.
Maximum length: 255
watch[].token (anyOf 2)nullAlternativeRepresents the verification token used to authenticate notifications sent to the callback URL.
Maximum length: 255

Referenced models: List active notification channels — response body — watch item notification condition null item

List active notification channels — response body — watch item notification condition null item
FieldTypePresenceDescription and constraints
$objectRootRepresents a single field-selection condition associated with the notification channel.
Additional keys: not allowed
field_selectionModelOptionalExpand List active notification channels — response body — watch item notification condition null item field selection
moduleobjectOptionalRepresents the CRM module context associated with the field-selection condition.
Additional keys: not allowed
module.api_namestringOptionalRepresents the API name of the CRM module associated with the condition.
Maximum length: 255
module.idstringOptionalRepresents the unique identifier of the CRM module associated with the condition.
Maximum length: 64
typestringOptionalRepresents the type of notification condition.
Maximum length: 32

Referenced models: List active notification channels — response body — watch item notification condition null item field selection

List active notification channels — response body — watch item notification condition null item field selection
FieldTypePresenceDescription and constraints
$objectRootRepresents the field selection configuration, including the grouping operator and the list of field criteria.
Additional keys: not allowed
grouparrayOptionalRepresents the list of field condition groups used to filter which record field changes trigger the notification.
Maximum items: 2
group[]ModelEach itemExpand List active notification channels — response body — watch item notification condition null item field selection group item
group_operatorstringOptionalRepresents the logical operator applied to the field condition groups within the field selection configuration.
Maximum length: 3

Referenced models: List active notification channels — response body — watch item notification condition null item field selection group item

List active notification channels — response body — watch item notification condition null item field selection group item
FieldTypePresenceDescription and constraints
$objectRootRepresents a single field condition entry, including the field reference, grouping operator, and optional sub-groups.
Additional keys: not allowed
fieldobjectOptionalRepresents the CRM field that the condition monitors for changes.
Additional keys: not allowed
field.api_namestringOptionalRepresents the API name of the CRM field being monitored in the condition.
Maximum length: 128
field.idstringOptionalRepresents the unique identifier of the CRM field being monitored in the condition.
Maximum length: 64
groupJSONOptional
group (anyOf 1)arrayAlternativeRepresents an optional nested sub-group of field conditions within the parent group.
Maximum items: 10
group (anyOf 1)[]JSONEach item
group (anyOf 2)nullAlternativeRepresents an optional nested sub-group of field conditions within the parent group.
Maximum items: 10
group (anyOf 2)[]JSONEach item
group_operatorJSONOptional
group_operator (anyOf 1)stringAlternativeRepresents the logical operator applied to the conditions within this sub-group.
Possible values:
and - All conditions in the sub-group must be satisfied.
or - Any condition in the sub-group must be satisfied.
null - No grouping operator is applied.
Known values: and, or
group_operator (anyOf 2)nullAlternativeRepresents the logical operator applied to the conditions within this sub-group.
Possible values:
and - All conditions in the sub-group must be satisfied.
or - Any condition in the sub-group must be satisfied.
null - No grouping operator is applied.
Known values: and, or

SDK function policy ID: zoho.getnotifications. Catalog operation: getNotifications. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.