List¶
GET /api/v1/notification_schedule/list
Overview¶
Query notification schedules in the current workspace, or view the notification target calendar by date.
Prerequisites and Usage Steps¶
The regular list reads content.data and paginates using the top-level pageInfo. Calendar queries must pass scheduleCalendar=true and scDateRange; they are not paginated and ignore page number parameters. Multi-day ranges that currently cross DST transitions may miss the end date; querying one day at a time in that time zone and merging the results can ensure date coverage. Do not simply switch to UTC, as this changes the business date basis. Schedules are sorted in descending order by the most recent update or creation time. You can use the Notification Target List and Workspace Member List to prepare target filters. When the associated policy filter has no schedule associations, there is a limitation where other schedules may be returned; after calling, verify issueNotificationPolicyInfos, and do not treat the filter condition as proof that an association exists.
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or enter: Obtain an OpenAPI Key with the required permission from API Key Management in the target workspace. |
Query Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| mySchedule | string | String true/false, default false. The API Key corresponds to the wsak identity and cannot represent an individual person; to query a specific member, use notifyTargets. Null allowed: True Allowed values: ['true', 'false'] Example: falseHow to obtain or enter: Enter true to view schedules associated with the current calling identity, or false to query all schedules. |
|
| scheduleCalendar | string | String true/false, default false. Calendar mode requires scDateRange and is not paginated. Null allowed: True Allowed values: ['true', 'false'] Example: falseHow to obtain or enter: Use false for the regular list and true for calendar view. |
|
| scTimezone | string | Used only by the calendar branch. Default: Asia/Shanghai. Null allowed: False Maximum length: 48 Example: Asia/ShanghaiHow to obtain or enter: Enter the IANA time zone in which you want calendar dates displayed. |
|
| scDateRange | string | Required in practice for calendar mode, YYYY/MM/DD~YYYY/MM/DD, up to 50 dates, and does not automatically default to the current day. Calendar date ranges are expected to include both ends; ranges crossing DST transitions may currently miss the end date, so we recommend querying one day at a time and merging the results. Null allowed: False Empty string allowed: False Maximum length: 48 Example: 2026/11/18~2026/11/19How to obtain or enter: Enter calendar dates in the selected time zone; both start and end are expected to be included; for ranges crossing DST transitions, query per day to ensure coverage. |
|
| notificationScheduleUUIDs | commaArray | Comma-separated schedule UUID string to filter target schedules in this workspace. Null allowed: False Example: nsche_exampleHow to obtain or enter: Obtain from content.data[].uuid in the Schedule List; separate multiple values with commas. |
|
| issueNotificationPolicyUUIDs | commaArray | Filter by associated notification policy; currently, if none of the selected policies has any associated schedule, the filter may not take effect; verify each association result. Null allowed: False Example: inpy_exampleHow to obtain or enter: Obtain from uuid in the Notification Policy List; separate multiple values with commas. |
|
| notifyTargets | commaArray | Comma-separated string; any matching target is included; do not pass a JSON array. Null allowed: False Example: notify_exampleHow to obtain or enter: Members are obtained from the account UUID in the Workspace Member List, notification targets from uuid in the Notification Target List, or enter a valid email address. All values must be strings. Separate multiple values with commas. |
|
| search | string | Fuzzy search by name; if omitted, it is an empty string and no filtering is applied. Null allowed: True Example: 生产How to obtain or enter: Enter a schedule name keyword. |
|
| pageIndex | integer | Page number for the regular list, default 1, minimum 1; ignored by the calendar branch. Null allowed: False $minValue: 1 Example: 1How to obtain or enter: The first page is 1; increment by 1 each time. |
|
| pageSize | integer | Number of items per page for the regular list, default 10; ignored by the calendar branch. Null allowed: False $minValue: 1 $maxValue: 100 Example: 10How to obtain or enter: Enter a value from 1 to 100 according to reading requirements. |
Additional Parameter Notes¶
mySchedule=true targets the current API calling identity. To search by person, pass the member account UUID to notifyTargets. The calendar is calculated by date and cannot be used to determine whether someone is on call at the current HH:MM time.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/notification_schedule/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode pageIndex=1 \
--data-urlencode pageSize=10
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | object | Regular paginated or calendar result object; the structure is selected according to scheduleCalendar. |
| content.data | array<object> |
Current page schedules in the regular branch; an empty list is []. |
| content.data[].id | integer | Database record number; use uuid to operate on schedules. |
| content.data[].uuid | string | Schedule UUID, used for queries, modifications, deletions, and notification policy references. |
| content.data[].workspaceUUID | string | UUID of the workspace to which the schedule belongs. |
| content.data[].name | string | Schedule name. |
| content.data[].timezone | string | IANA time zone used by this schedule to interpret the time period of the day and effective dates. |
| content.data[].start | string | Start time of the day in HH:MM. |
| content.data[].end | string | End time of the day in HH:MM; the last second of the end minute is still valid. |
| content.data[].notifyTargets | array<string> |
Members, notification target UUIDs, or email addresses stored in order. |
| content.data[].notifyTargets[] | string | acnt_ account, notify_ notification target, or email string. |
| content.data[].extend | object | Extended configuration; may be {} if not configured. |
| content.data[].extend.enableRotateNotification | boolean | Whether rotation is enabled; defaults to false if absent. |
| content.data[].extend.rotationCycle | string | Rotation cycle when rotation is enabled: day for daily, week for weekly starting Monday, month for calendar month, workDay for daily on workdays only, weekend for daily on weekends only. Holidays are not recognized; may be omitted if not configured. |
| content.data[].extend.effectiveTime | object | Overall effective period; may be omitted if not configured. |
| content.data[].extend.effectiveTime.start | integer | Unix seconds when the effective period starts; 0 or omitted means no limit. |
| content.data[].extend.effectiveTime.end | integer | Unix seconds when the effective period ends; 0 or omitted means no limit. |
| content.data[].rotationUpdateAt | integer | Start time for rotation calculation, in Unix seconds. Reset when rotation-related configuration is changed. |
| content.data[].status | integer | Record status; active records are 0. |
| content.data[].creator | string | Creating calling identity. |
| content.data[].updator | string | Most recent updating identity; empty string if never updated. |
| content.data[].createAt | integer | Creation time, Unix seconds. |
| content.data[].updateAt | integer | Update time, Unix seconds; -1 if never updated. |
| content.data[].deleteAt | integer | Deletion time, Unix seconds; -1 if not deleted. |
| content.data[].effectiveTimeInfos | object | Display information for the overall effective period; returned only by list, create, and update. |
| content.data[].effectiveTimeInfos.timeStr | string | Formatted in the schedule time zone as YYYY/MM/DD HH:MM:SS~YYYY/MM/DD HH:MM:SS. If one side is not set, it is empty; if neither side is set, the entire string is empty. |
| content.data[].effectiveTimeInfos.expired | boolean | Whether the current time has passed the end of the effective period; false when there is no end limit. |
| content.data[].notifyTargetsInfos | array<object> |
Resolved notification target profiles. Invalid or no-longer-existing targets may not be returned; fields vary by the three types: account, notification target, and email. |
| content.data[].notifyTargetsInfos[].uuid | string | Account/notification target UUID; for email targets, the email address itself is used as the UUID. |
| content.data[].notifyTargetsInfos[].name | string | Target display name; for email targets, the email address. |
| content.data[].notifyTargetsInfos[].status | integer | Record status of the account or notification target; email targets do not include this field. |
| content.data[].notifyTargetsInfos[].type | string | Provided only for notification targets; object type. |
| content.data[].notifyTargetsInfos[].wsAccountStatus | integer | Provided only for accounts; account status in the workspace. |
| content.data[].notifyTargetsInfos[].username | string | Provided only for accounts; login username. |
| content.data[].notifyTargetsInfos[].iconUrl | string | Provided only for accounts; avatar URL. |
| content.data[].notifyTargetsInfos[].email | string | Account email or email target address; notification targets may not provide this. |
| content.data[].notifyTargetsInfos[].mobile | string | Provided only for accounts; mobile number, which may be empty. |
| content.data[].notifyTargetsInfos[].countryCode | string | Provided only for accounts; country/region code of the mobile number. |
| content.data[].notifyTargetsInfos[].acntWsNickname | string | Provided only for accounts; workspace nickname. |
| content.data[].issueNotificationPolicyInfos | array<object> |
Associated notification policies and the channels that reference the policies; empty when there is no association. |
| content.data[].issueNotificationPolicyInfos[].id | integer | Policy record number. |
| content.data[].issueNotificationPolicyInfos[].uuid | string | Notification policy UUID. |
| content.data[].issueNotificationPolicyInfos[].workspaceUUID | string | Workspace to which the policy belongs. |
| content.data[].issueNotificationPolicyInfos[].name | string | Policy name. |
| content.data[].issueNotificationPolicyInfos[].extend | object | Notification scope and escalation configuration; for the full configuration meaning, see the Notification Policy List. |
| content.data[].issueNotificationPolicyInfos[].extend.notifyTypes | array<string> |
List of event types that trigger notifications; may be omitted. |
| content.data[].issueNotificationPolicyInfos[].extend.notifyTypes[] | string | For example, issue.add, issue.modify, issueReply.add, or dailySummary. |
| content.data[].issueNotificationPolicyInfos[].extend.upgradeCfg | object | Configuration stored by escalation trigger type; may be omitted. |
| content.data[].issueNotificationPolicyInfos[].extend.upgradeCfg.动态键 | object | Configured escalation trigger types such as noManager, processTimeout, openProcessTimeout, and eventStorm. |
| content.data[].issueNotificationPolicyInfos[].extend.upgradeCfg.动态键.duration | integer | Wait or evaluation time in seconds; provided according to the actual trigger type. |
| content.data[].issueNotificationPolicyInfos[].extend.upgradeCfg.动态键.其他字段 | number, boolean, string, array, or object | Additional rules for different trigger types; refer to the notification policy details and their parameter tables. |
| content.data[].issueNotificationPolicyInfos[].status | integer | Active status is 0. |
| content.data[].issueNotificationPolicyInfos[].creator | string | Creating identity. |
| content.data[].issueNotificationPolicyInfos[].updator | string | Updating identity. |
| content.data[].issueNotificationPolicyInfos[].createAt | integer | Creation Unix seconds. |
| content.data[].issueNotificationPolicyInfos[].updateAt | integer | Update Unix seconds; -1 if never updated. |
| content.data[].issueNotificationPolicyInfos[].deleteAt | integer | Deletion Unix seconds; -1 if not deleted. |
| content.data[].issueNotificationPolicyInfos[].channelInfos | array<object> |
List of channel entities that reference this notification policy. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].id | integer | Database record number. Use uuid to operate on channels. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].uuid | string | Channel UUID, used for modification, deletion, or subscription. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].workspaceUUID | string | Workspace to which the channel belongs. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].name | string | Channel name. default indicates the default channel. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].description | string | Channel description. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].notifyTarget | array<string> |
Notification target UUIDs directly configured for this channel. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].notifyTarget[] | string | A single notification target UUID. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].notifyUpgradeCfg | object | Escalation notification configuration; an empty object when not configured. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].notifyUpgradeCfg.triggerTime | integer | Wait duration before triggering the escalation notification, in seconds. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].notifyUpgradeCfg.notifyTarget | array<string> |
List of escalation notification target UUIDs. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].notifyUpgradeCfg.notifyTarget[] | string | Escalation notification target UUID. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].status | integer | Record status; normal is 0. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].creator | string | Creating calling identity. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].updator | string | Most recent updating identity; may be an empty string if never updated. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].createAt | integer | Creation time, Unix seconds. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].updateAt | integer | Update time, Unix seconds; -1 if never updated. |
| content.data[].issueNotificationPolicyInfos[].channelInfos[].deleteAt | integer | Deletion time, Unix seconds; -1 if not deleted. |
| content.data[].inEffectNotifyTargetsInfos | array<object> |
Actual effective targets calculated based on the current time, schedule time zone, effective period, and rotation; [] when not in effect. |
| content.data[].inEffectNotifyTargetsInfos[].uuid | string | Account/notification target UUID; for email targets, the email address itself is used as the UUID. |
| content.data[].inEffectNotifyTargetsInfos[].name | string | Target display name; for email targets, the email address. |
| content.data[].inEffectNotifyTargetsInfos[].status | integer | Record status of the account or notification target; email targets do not include this field. |
| content.data[].inEffectNotifyTargetsInfos[].type | string | Provided only for notification targets; object type. |
| content.data[].inEffectNotifyTargetsInfos[].wsAccountStatus | integer | Provided only for accounts; account status in the workspace. |
| content.data[].inEffectNotifyTargetsInfos[].username | string | Provided only for accounts; login username. |
| content.data[].inEffectNotifyTargetsInfos[].iconUrl | string | Provided only for accounts; avatar URL. |
| content.data[].inEffectNotifyTargetsInfos[].email | string | Account email or email target address; notification targets may not provide this. |
| content.data[].inEffectNotifyTargetsInfos[].mobile | string | Provided only for accounts; mobile number, which may be empty. |
| content.data[].inEffectNotifyTargetsInfos[].countryCode | string | Provided only for accounts; country/region code of the mobile number. |
| content.data[].inEffectNotifyTargetsInfos[].acntWsNickname | string | Provided only for accounts; workspace nickname. |
| content.myScheduleCount | integer | Total number of schedules for the current calling identity in this workspace, unaffected by this search or other filters. |
| content.totalScheduleCount | integer | Total number of active schedules in this workspace, unaffected by this search or other filters. |
| content.declaration | object or null | Workspace public declaration. |
| pageInfo | object | Top-level pagination information returned only by the regular branch. |
| pageInfo.pageIndex | integer | Current page number. |
| pageInfo.pageSize | integer | Number of items per page. |
| pageInfo.count | integer | Actual number of items returned on the current page. |
| pageInfo.totalCount | integer | Total number of matches for this filter. |
| content.scheduleCalendarInfos | object | Returned only by the calendar branch; keys are YYYY/MM/DD dates under scTimezone. Dates may be omitted or be empty arrays. |
| content.scheduleCalendarInfos.日期 | array<object> |
Notification target profiles for that calendar date, counted by day; does not represent the real-time on-call person at the current time. |
| content.scheduleCalendarInfos.日期[].uuid | string | Account/notification target UUID; for email targets, the email address itself is used as the UUID. |
| content.scheduleCalendarInfos.日期[].name | string | Target display name; for email targets, the email address. |
| content.scheduleCalendarInfos.日期[].status | integer | Record status of the account or notification target; email targets do not include this field. |
| content.scheduleCalendarInfos.日期[].type | string | Provided only for notification targets; object type. |
| content.scheduleCalendarInfos.日期[].wsAccountStatus | integer | Provided only for accounts; account status in the workspace. |
| content.scheduleCalendarInfos.日期[].username | string | Provided only for accounts; login username. |
| content.scheduleCalendarInfos.日期[].iconUrl | string | Provided only for accounts; avatar URL. |
| content.scheduleCalendarInfos.日期[].email | string | Account email or email target address; notification targets may not provide this. |
| content.scheduleCalendarInfos.日期[].mobile | string | Provided only for accounts; mobile number, which may be empty. |
| content.scheduleCalendarInfos.日期[].countryCode | string | Provided only for accounts; country/region code of the mobile number. |
| content.scheduleCalendarInfos.日期[].acntWsNickname | string | Provided only for accounts; workspace nickname. |
| content.scheduleCalendarUpdateInfos | object | Returned only by the calendar branch; marks dates on which schedule configuration was updated. |
| content.scheduleCalendarUpdateInfos.日期 | array<object> |
Snapshot of the current schedule entities updated on that date, not a complete historical version. |
| content.scheduleCalendarUpdateInfos.日期[].id | integer or null | Database number, which may not yet be assigned at creation time. Use uuid to operate on resources. |
| content.scheduleCalendarUpdateInfos.日期[].uuid | string | Schedule UUID, used for queries, modifications, deletions, and notification policy references. |
| content.scheduleCalendarUpdateInfos.日期[].workspaceUUID | string | UUID of the workspace to which the schedule belongs. |
| content.scheduleCalendarUpdateInfos.日期[].name | string | Schedule name. |
| content.scheduleCalendarUpdateInfos.日期[].timezone | string | IANA time zone used by this schedule to interpret the time period of the day and effective dates. |
| content.scheduleCalendarUpdateInfos.日期[].start | string | Start time of the day in HH:MM. |
| content.scheduleCalendarUpdateInfos.日期[].end | string | End time of the day in HH:MM; the last second of the end minute is still valid. |
| content.scheduleCalendarUpdateInfos.日期[].notifyTargets | array<string> |
Members, notification target UUIDs, or email addresses stored in order. |
| content.scheduleCalendarUpdateInfos.日期[].notifyTargets[] | string | acnt_ account, notify_ notification target, or email string. |
| content.scheduleCalendarUpdateInfos.日期[].extend | object | Extended configuration; may be {} if not configured. |
| content.scheduleCalendarUpdateInfos.日期[].extend.enableRotateNotification | boolean | Whether rotation is enabled; defaults to false if absent. |
| content.scheduleCalendarUpdateInfos.日期[].extend.rotationCycle | string | Rotation cycle when rotation is enabled: day for daily, week for weekly starting Monday, month for calendar month, workDay for daily on workdays only, weekend for daily on weekends only. Holidays are not recognized; may be omitted if not configured. |
| content.scheduleCalendarUpdateInfos.日期[].extend.effectiveTime | object | Overall effective period; may be omitted if not configured. |
| content.scheduleCalendarUpdateInfos.日期[].extend.effectiveTime.start | integer | Unix seconds when the effective period starts; 0 or omitted means no limit. |
| content.scheduleCalendarUpdateInfos.日期[].extend.effectiveTime.end | integer | Unix seconds when the effective period ends; 0 or omitted means no limit. |
| content.scheduleCalendarUpdateInfos.日期[].rotationUpdateAt | integer | Start time for rotation calculation, in Unix seconds. Reset when rotation-related configuration is changed. |
| content.scheduleCalendarUpdateInfos.日期[].status | integer | Record status; active records are 0. |
| content.scheduleCalendarUpdateInfos.日期[].creator | string | Creating calling identity. |
| content.scheduleCalendarUpdateInfos.日期[].updator | string | Most recent updating identity; empty string if never updated. |
| content.scheduleCalendarUpdateInfos.日期[].createAt | integer | Creation time, Unix seconds. |
| content.scheduleCalendarUpdateInfos.日期[].updateAt | integer | Update time, Unix seconds; -1 if never updated. |
| content.scheduleCalendarUpdateInfos.日期[].deleteAt | integer | Deletion time, Unix seconds; -1 if not deleted. |
| content.totalCount | integer | Calendar branch only: number of matching schedules, not the number of dates or targets. |
{
"code": 200,
"content": {
"data": [
{
"id": 42,
"uuid": "nsche_example",
"workspaceUUID": "wksp_example",
"name": "生产值班",
"timezone": "Asia/Shanghai",
"start": "09:00",
"end": "18:00",
"notifyTargets": [
"notify_example"
],
"extend": {
"enableRotateNotification": false
},
"rotationUpdateAt": 1785427200,
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"notifyTargetsInfos": [
{
"uuid": "notify_example",
"name": "生产值班群",
"status": 0,
"type": "dingtalk"
}
],
"issueNotificationPolicyInfos": [],
"inEffectNotifyTargetsInfos": [],
"effectiveTimeInfos": {
"timeStr": "",
"expired": false
}
}
],
"myScheduleCount": 0,
"totalScheduleCount": 1,
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE",
"pageInfo": {
"pageIndex": 1,
"pageSize": 10,
"count": 1,
"totalCount": 1
}
}
Calendar Branch Call
curl --get '<Endpoint>/api/v1/notification_schedule/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode scheduleCalendar=true \
--data-urlencode scTimezone=Asia/Shanghai \
--data-urlencode 'scDateRange=2026/11/18~2026/11/19'
Calendar Branch Response
{
"code": 200,
"content": {
"scheduleCalendarInfos": {
"2026/11/18": [
{
"uuid": "notify_example",
"name": "生产值班群",
"status": 0,
"type": "dingtalk"
}
]
},
"scheduleCalendarUpdateInfos": {},
"totalCount": 1,
"myScheduleCount": 0,
"totalScheduleCount": 1,
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Using an undeclared Query parameter or a parameter violating rules | Parameter parsing failed | Check the Query parameter table and examples. |
| 400 | ft.InvalidDateRange | Calendar mode does not pass scDateRange, the format does not match, or dates are reversed | Invalid date range | Explicitly pass a valid date range with both ends included. |
| 400 | ft.ExceedMaximumQueryDateRange | Calendar range contains more than 50 dates | The query date range is too large; only ranges of up to 50 days are supported | Split into requests of at most 50 days each. |
| 500 | ft.InternalServerError | Internal failure caused by an unknown IANA time zone, an invalid real date, a non-string notification target, or an unparseable time | Internal error | Before calling, verify the time zone, real dates, HH:MM, and string arrays according to the parameter table; after a write operation fails, check the details first to confirm whether it has been saved, then decide whether to retry, and retain traceId. |