List¶
GET /api/v1/notify_object/list
Overview¶
Queries notification objects in the current workspace by name with pagination.
Before Calling and Usage Steps¶
The result includes both enabled and disabled objects, sorted by record ID in descending order. Read content.data and paginate using the top-level pageInfo. For subsequent calls, use each item's uuid instead of the database id. hasAutoDisabled applies only to the page returned in this request and does not represent workspace-wide statistics. After creation or modification, use this API to confirm whether the configuration has been saved.
Request Headers¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | Workspace OpenAPI authentication credential. Example: <DF-API-KEY>How to obtain or fill in: Obtain an OpenAPI Key with the required operation permissions from API Key Management in the target workspace. |
Query Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| search | string | Fuzzy search by name; omit to not filter. Null allowed: True Example: 生产How to obtain or fill in: Enter a keyword for the notification object name. |
|
| pageIndex | integer | Page number, minimum 1, default 1. Null allowed: False $minValue: 1 Example: 1How to obtain or fill in: Starts at 1 and increments from the first page. |
|
| pageSize | integer | Number of entries per page, default 100, not the 10 shown in the example. Null allowed: False $minValue: 1 $maxValue: 100 Example: 10How to obtain or fill in: Enter a value from 1 to 100 as needed. |
Additional Parameter Notes¶
This public API declares only search, pageIndex, and pageSize. Do not directly pass the types, status, or autoDisabled filter parameters of the shared internal API.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/notify_object/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode 'search=生产' \
--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 | List result object. |
| content.data | array<object> |
Array of notification objects on the current page; [] if there are no results. |
| content.data[].id | integer | Database ID; use uuid for subsequent operations. |
| content.data[].uuid | string | Notification object UUID. |
| content.data[].workspaceUUID | string | UUID of the workspace to which the object belongs. |
| content.data[].name | string | Notification object name. |
| content.data[].type | string | Notification type. Legacy Jira/ServiceNow storage aliases are normalized to jiraWebhook/serviceNowWebhook. |
| content.data[].optSet | object | Notification configuration corresponding to type. See below for specific fields; unconfigured fields may be omitted. |
| content.data[].openPermissionSet | boolean | Whether custom operation permissions are enabled for this object. |
| content.data[].permissionSet | array<string> |
Array of role, member, or team identifiers allowed to operate the object. |
| content.data[].permissionSet[] | string | Identifier of a single permission subject. |
| content.data[].autoDisableAt | integer | Automatic disable time in Unix seconds; -1 if not automatically disabled. |
| content.data[].status | integer | Record status: 0 enabled, 2 disabled; 3 deleted is not returned by this query. |
| content.data[].creator | string | Creator identity. |
| content.data[].updator | string | Last updater identity; empty if never updated. |
| content.data[].createAt | integer | Creation time in Unix seconds. |
| content.data[].updateAt | integer | Update time in Unix seconds; -1 if never updated. |
| content.data[].deleteAt | integer | Deletion time in Unix seconds; -1 if not deleted. |
| content.data[].optSet.webhook | string | Callback URL used by bots, Slack, Teams, Google Chat, Jira, and ServiceNow. Jira/ServiceNow must be a valid HTTPS URL and cannot contain URL user credentials, fragments, or whitespace. The address is subject to site domain resolution and intranet policies. |
| content.data[].optSet.secret | string | Bots such as DingTalk/Lark may return the original signing secret; Jira does not return the original secret and uses the hasSecret flag instead. |
| content.data[].optSet.url | string | Required non-empty callback URL for HTTPRequest/simpleHTTPRequest, subject to domain resolution and intranet policies. |
| content.data[].optSet.to | array<string> |
Array of member/team UUIDs that receive mailGroup, sms, and vms messages. The corresponding email address or mobile number must be configured in the member profile; this is not an array of arbitrary email address or mobile number strings. |
| content.data[].optSet.to[] | string | UUID of a single member or team. |
| content.data[].optSet.refMembers | array<string> |
Both HTTPRequest and simpleHTTPRequest accept and validate an array of strings, but currently only HTTPRequest actually expands it into refMembersInfo for content parsing; simpleHTTPRequest does not perform this expansion. |
| content.data[].optSet.refMembers[] | string | UUID string of an associated member or team. |
| content.data[].optSet.headersConfig | object | Custom request header configuration. This is different from Jira/ServiceNow headers. The read API restores sensitive values; handle the returned data carefully before saving. |
| content.data[].optSet.headersConfig.isOpen | boolean | When the configuration exists, a boolean value must be provided; custom headers are sent only when true. |
| content.data[].optSet.headersConfig.items | array<object> |
When the configuration exists, an array is required, with a maximum of 50 items; items are validated even when isOpen=false. |
| content.data[].optSet.headersConfig.items[] | object | Single custom request header object. |
| content.data[].optSet.headersConfig.items[].key | string | Non-empty string; after trimming leading and trailing spaces, maximum 256 characters; duplicates are removed case-insensitively. |
| content.data[].optSet.headersConfig.items[].value | string | Non-empty string, maximum 4096 characters. |
| content.data[].optSet.headersConfig.items[].isSensitive | boolean | Required boolean. When true, the value is encrypted when saved, and the original value is restored in details and lists. |
| content.data[].optSet.bodyTemplate | string | Only HTTPRequest supports custom request body templates; the string can be up to 5120 characters. An empty string or null means not configured; whitespace-only values are not enabled. Saving validates only type and length, not template syntax or variables; actual sending depends on the site's template capabilities and must be verified with an actual alert. simpleHTTPRequest does not support non-empty templates. |
| content.data[].optSet.token | string | telegramBot returns the configured Bot Token; Jira/ServiceNow do not return bearer credentials and use the hasToken flag instead. |
| content.data[].optSet.chat_id | string | Required target chat ID string for telegramBot. |
| content.data[].optSet.message_thread_id | string | Optional topic ID for telegramBot; a string when present. |
| content.data[].optSet.auth_type | string or null | Jira/ServiceNow only: null does not generate a separate authentication header; basic, bearer, and api_key are all supported; secret is supported only by Jira. When omitted, Jira defaults to secret and ServiceNow defaults to basic. |
| content.data[].optSet.username | string | Jira/ServiceNow basic authentication username; non-empty and cannot contain colons or newlines. |
| content.data[].optSet.api_key_header | string | Jira/ServiceNow api_key authentication header name; cannot be Content-Type. |
| content.data[].optSet.headers | object | Jira/ServiceNow only. Header names must be valid and case-insensitively unique, and values cannot contain newlines; Content-Type can only be application/json. When omitted in an update by the same identity, original headers are retained; {} clears them. Values are masked as empty strings when read. |
| content.data[].optSet.headers. |
string | String value of a custom header. During an update, an empty value with the same name can retain the old value for the same identity; new headers cannot have empty values. |
| content.data[].optSet.hasSecret | boolean | Jira secret mode only; whether a signing secret has been configured. |
| content.data[].optSet.hasPassword | boolean | Jira/ServiceNow basic mode only; whether a password has been configured. |
| content.data[].optSet.hasToken | boolean | Jira/ServiceNow bearer mode only; whether a Token has been configured. |
| content.data[].optSet.hasApiKey | boolean | Jira/ServiceNow api_key mode only; whether a Key has been configured. |
| content.data[].optSet.hasHeaderValues | object | Jira/ServiceNow only; indicates for each returned header whether a non-empty value has been saved. |
| content.data[].optSet.hasHeaderValues. |
boolean | Configuration status corresponding to the header name. |
| content.data[].optSet.deliveryStatus | string | Configuration display identifier for Jira/ServiceNow; currently configured, and does not indicate actual successful delivery. |
| content.data[].optSet.credentialsRequired | boolean | Whether Jira/ServiceNow still lacks the credentials or header values required by the current authentication method. |
| content.data[].creatorInfo | object or string | Creator summary; when no profile is available, the list returns {} and details may return an empty string. |
| content.data[].creatorInfo.uuid | string | Account or API Key UUID. |
| content.data[].creatorInfo.status | integer | Account status. |
| content.data[].creatorInfo.wsAccountStatus | integer | Account status in the workspace. |
| content.data[].creatorInfo.username | string | Username. |
| content.data[].creatorInfo.name | string | Display name. |
| content.data[].creatorInfo.iconUrl | string | Avatar URL. |
| content.data[].creatorInfo.email | string | Email or API Key identifier. |
| content.data[].creatorInfo.mobile | string | Mobile number; may be empty. |
| content.data[].creatorInfo.countryCode | string | Mobile number country code; may be empty. |
| content.data[].creatorInfo.acntWsNickname | string | Workspace nickname; may be empty. |
| content.data[].updatorInfo | object or string | Updater summary; when no profile is available, the list returns {} and details may return an empty string. Details currently query only by creator, so there may be no profile when the updater identity is different. |
| content.data[].updatorInfo.uuid | string | Account or API Key UUID. |
| content.data[].updatorInfo.status | integer | Account status. |
| content.data[].updatorInfo.wsAccountStatus | integer | Account status in the workspace. |
| content.data[].updatorInfo.username | string | Username. |
| content.data[].updatorInfo.name | string | Display name. |
| content.data[].updatorInfo.iconUrl | string | Avatar URL. |
| content.data[].updatorInfo.email | string | Email or API Key identifier. |
| content.data[].updatorInfo.mobile | string | Mobile number; may be empty. |
| content.data[].updatorInfo.countryCode | string | Mobile number country code; may be empty. |
| content.data[].updatorInfo.acntWsNickname | string | Workspace nickname; may be empty. |
| content.data[].allow_operation | boolean or null | Custom operation permission calculation: true allows, false denies; null means custom permissions are not enabled for the object, and API permissions must still be satisfied. |
| content.data[].permissionSetInfo | object | Subject summaries keyed by permissionSet identifier; appears only when permissionSet is non-empty. |
| content.data[].permissionSetInfo. |
object | For members, an account summary; for teams/roles, {name,status}; invalid subjects may be empty objects. |
| content.data[].permissionSetInfo. |
string | Display name of the team or role; member fields are the same as creatorInfo. |
| content.data[].permissionSetInfo. |
integer | Subject status; 0 normal. |
| content.data[].permissionSetInfo. |
string | Account or API Key UUID. |
| content.data[].permissionSetInfo. |
integer | Account status in the workspace. |
| content.data[].permissionSetInfo. |
string | Username. |
| content.data[].permissionSetInfo. |
string | Avatar URL. |
| content.data[].permissionSetInfo. |
string | Email or API Key identifier. |
| content.data[].permissionSetInfo. |
string | Mobile number; may be empty. |
| content.data[].permissionSetInfo. |
string | Mobile number country code; may be empty. |
| content.data[].permissionSetInfo. |
string | Workspace nickname; may be empty. |
| content.data[].funcServerInfo | object | May be returned only for legacy self-built notification function objects; this public create API does not support creating this type. |
| content.data[].funcServerInfo.isActive | boolean | Whether the function service is active. |
| content.data[].funcServerInfo.lastPingAt | integer | Last heartbeat in Unix seconds; -1 if no heartbeat. |
| content.data[].funcServerInfo.status | integer | Function service status. |
| content.hasAutoDisabled | boolean | Whether the current page contains objects whose autoDisableAt is not -1. |
| content.declaration | object or null | Workspace public declaration. |
| pageInfo | object | Top-level pagination object. |
| pageInfo.pageIndex | integer | Current page number. |
| pageInfo.pageSize | integer | Number of entries per page. |
| pageInfo.count | integer | Actual number of records on the current page. |
| pageInfo.totalCount | integer | Total number of records matching the name search. |
{
"code": 200,
"content": {
"data": [
{
"id": 42,
"uuid": "notify_example",
"workspaceUUID": "wksp_example",
"name": "生产回调",
"type": "HTTPRequest",
"optSet": {
"url": "https://receiver.example.com/alerts"
},
"openPermissionSet": false,
"permissionSet": [],
"autoDisableAt": -1,
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"creatorInfo": {},
"updatorInfo": {},
"allow_operation": null
}
],
"hasAutoDisabled": false,
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE",
"pageInfo": {
"pageIndex": 1,
"pageSize": 10,
"count": 1,
"totalCount": 1
}
}
Error Response¶
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 that violates rules | Parameter parsing failed | Check the Query parameter table and examples. |
| 500 | ft.InternalServerError | Missing configuration fields or invalid types, or database or cache processing failures | Internal error | Check the configuration for the corresponding notification type on this page, and record the traceId. After a write operation fails, first query whether the target has been saved before retrying. |