Skip to content

Get



GET /api/v1/notify_object/get

Overview

Read configuration and custom operation permission information by notification target UUID.

Before Calling and Usage Steps

Obtain the uuid from the Notification Target List and pass it in through Query notifyObjectUUID. For an existing object, returns the configuration and permission summary. When no record is currently found, the response is still HTTP 200; content contains allow_operation=null and the public declaration, and 404 is not returned. Determine whether the target exists by whether content.uuid is present. updatorInfo may be an empty string due to query scope restrictions; do not conclude from this that it has never been modified.

Request Headers

Parameter 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 this operation permission from API Key management in the target Workspace.

Query Parameters

Parameter Type Required Description
notifyObjectUUID string Y Required notification target UUID.
Example: notify_example
How to obtain or enter: Copy the notification target UUID of the current Workspace from content.data[].uuid returned by the Notification Target List.

Additional Parameter Notes

allow_operation=null indicates custom operation permissions are not enabled for the object; it cannot be taken as proof that API authentication has passed or that all modification permissions are granted.

Request Example

curl --get 'https://openapi.guance.com/api/v1/notify_object/get' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-urlencode notifyObjectUUID=notify_example

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content object Object configuration and permission summary; when no record is found, entity fields such as uuid are absent.
content.id integer Database ID; use uuid for subsequent operations.
content.uuid string Notification target UUID.
content.workspaceUUID string UUID of the Workspace it belongs to.
content.name string Notification target name.
content.type string Notification type. Legacy Jira/ServiceNow storage aliases are normalized to jiraWebhook/serviceNowWebhook.
content.optSet object Notification configuration corresponding to type; see below for specific fields. Unconfigured fields may be omitted.
content.openPermissionSet boolean Whether custom operation permissions are enabled for this object.
content.permissionSet array<string> Array of role, member, or team identifiers allowed to operate on the object.
content.permissionSet[] string A single permission subject identifier.
content.autoDisableAt integer Auto-disable time in Unix seconds; -1 if not auto-disabled.
content.status integer Record status: 0 enabled, 2 disabled; 3 deleted is not returned by this query.
content.creator string Creator identity.
content.updator string Last updater identity; empty if not updated.
content.createAt integer Creation time in Unix seconds.
content.updateAt integer Update time in Unix seconds; -1 if not updated.
content.deleteAt integer Deletion time in Unix seconds; -1 if not deleted.
content.optSet.webhook string Callback URL used by bots, Slack, Teams, Google Chat, Jira, and ServiceNow. For Jira/ServiceNow, it 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.optSet.secret string Bots such as DingTalk/Lark may return the original signing secret; Jira does not return the original secret and instead uses the hasSecret flag.
content.optSet.url string Required non-empty callback URL for HTTPRequest/simpleHTTPRequest; subject to domain resolution and intranet policies.
content.optSet.to array<string> Array of UUIDs of recipient members/teams for mailGroup, sms, and vms. 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.optSet.to[] string A single member or team UUID.
content.optSet.refMembers array<string> Both HTTPRequest/simpleHTTPRequest accept and validate a string array, but currently only HTTPRequest actually expands it into refMembersInfo for content parsing; simpleHTTPRequest does not perform this expansion.
content.optSet.refMembers[] string Associated member or team UUID string.
content.optSet.headersConfig object Custom request header configuration. This is different from Jira/ServiceNow headers. The read API restores its sensitive values; handle the returned data appropriately before saving.
content.optSet.headersConfig.isOpen boolean When the configuration exists, a Boolean value must be provided; custom headers are sent only when true.
content.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.optSet.headersConfig.items[] object A single custom request header object.
content.optSet.headersConfig.items[].key string Non-empty string, up to 256 characters after trimming leading and trailing spaces, deduplicated case-insensitively.
content.optSet.headersConfig.items[].value string Non-empty string, up to 4096 characters.
content.optSet.headersConfig.items[].isSensitive boolean Required Boolean; values with true are encrypted when saved, and the original values are restored in details and lists.
content.optSet.bodyTemplate string Only HTTPRequest supports custom request body templates, with a maximum of 5120 characters; an empty string or null indicates not configured, and whitespace-only strings are not enabled. Saving validates only the type and length, not template syntax or variables; actual sending depends on site template capabilities and must be verified with an actual alert. simpleHTTPRequest does not support non-empty templates.
content.optSet.token string telegramBot returns the configured Bot Token; Jira/ServiceNow do not return bearer credentials and use the hasToken flag.
content.optSet.chat_id string Required target chat ID string for telegramBot.
content.optSet.message_thread_id string Optional topic ID for telegramBot; a string when present.
content.optSet.auth_type string or null Only Jira/ServiceNow: 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.optSet.username string Basic authentication username for Jira/ServiceNow; non-empty and cannot contain colons or line breaks.
content.optSet.api_key_header string API key authentication header name for Jira/ServiceNow; cannot be Content-Type.
content.optSet.headers object Only Jira/ServiceNow. Header names must be valid and unique case-insensitively, and values must not contain line breaks; Content-Type can only be application/json. For updates by the same identity, omitting a header retains the original header; {} clears it. When reading, values are masked as empty strings.
content.optSet.headers.Dynamic key string String value of a custom header. During update, an empty value for the same header name can retain the old value for the same identity; new headers cannot have empty values.
content.optSet.hasSecret boolean Only for Jira secret mode; whether a signing secret has been configured.
content.optSet.hasPassword boolean Only for Jira/ServiceNow basic mode; whether a password has been configured.
content.optSet.hasToken boolean Only for Jira/ServiceNow bearer mode; whether a token has been configured.
content.optSet.hasApiKey boolean Only for Jira/ServiceNow api_key mode; whether a key has been configured.
content.optSet.hasHeaderValues object Only for Jira/ServiceNow; for each returned header, indicates whether a non-empty value has been saved.
content.optSet.hasHeaderValues.Dynamic key boolean Configuration status corresponding to the header name.
content.optSet.deliveryStatus string Display identifier for Jira/ServiceNow configuration; currently configured, and does not indicate actual successful delivery.
content.optSet.credentialsRequired boolean Whether Jira/ServiceNow still lacks the credentials or header values required by the current authentication method.
content.creatorInfo object or string Creator summary; when no profile is available, it is {} in lists and may be an empty string in details.
content.creatorInfo.uuid string Account or API Key UUID.
content.creatorInfo.status integer Account status.
content.creatorInfo.wsAccountStatus integer Account status in the Workspace.
content.creatorInfo.username string Username.
content.creatorInfo.name string Display name.
content.creatorInfo.iconUrl string Avatar URL.
content.creatorInfo.email string Email or API Key identifier.
content.creatorInfo.mobile string Mobile number; may be empty.
content.creatorInfo.countryCode string Mobile number country code; may be empty.
content.creatorInfo.acntWsNickname string Workspace nickname; may be empty.
content.updatorInfo object or string Updater summary; when no profile is available, it is {} in lists and may be an empty string in details. Details currently query only by creator, so no profile may be available when the updater identity is different.
content.updatorInfo.uuid string Account or API Key UUID.
content.updatorInfo.status integer Account status.
content.updatorInfo.wsAccountStatus integer Account status in the Workspace.
content.updatorInfo.username string Username.
content.updatorInfo.name string Display name.
content.updatorInfo.iconUrl string Avatar URL.
content.updatorInfo.email string Email or API Key identifier.
content.updatorInfo.mobile string Mobile number; may be empty.
content.updatorInfo.countryCode string Mobile number country code; may be empty.
content.updatorInfo.acntWsNickname string Workspace nickname; may be empty.
content.allow_operation boolean or null Custom operation permission calculation: true allows, false denies; null indicates object custom permissions are not enabled, and API permissions must still be satisfied.
content.permissionSetInfo object Subject summary keyed by permissionSet identifier; appears only when permissionSet is non-empty.
content.permissionSetInfo.Subject identifier object For members, it is an account summary; for teams/roles, it is {name,status}; invalid subjects may be empty objects.
content.permissionSetInfo.Subject identifier.name string Display name of the team or role; member fields are the same as creatorInfo.
content.permissionSetInfo.Subject identifier.status integer Subject status; 0 is normal.
content.permissionSetInfo.Subject identifier.uuid string Account or API Key UUID.
content.permissionSetInfo.Subject identifier.wsAccountStatus integer Account status in the Workspace.
content.permissionSetInfo.Subject identifier.username string Username.
content.permissionSetInfo.Subject identifier.iconUrl string Avatar URL.
content.permissionSetInfo.Subject identifier.email string Email or API Key identifier.
content.permissionSetInfo.Subject identifier.mobile string Mobile number; may be empty.
content.permissionSetInfo.Subject identifier.countryCode string Mobile number country code; may be empty.
content.permissionSetInfo.Subject identifier.acntWsNickname string Workspace nickname; may be empty.
content.declaration object or null Workspace public declaration.
{
  "code": 200,
  "content": {
    "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,
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

When the target is not found

{
  "code": 200,
  "content": {
    "allow_operation": null,
    "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 Resolution
406 ft.ParameterValidationFailed Use of undeclared Query parameters or parameters that violate rules Parameter parsing failed Check the Query parameter table and example.
500 ft.InternalServerError Failed to read configuration, decrypt data, or query the database Internal error Keep the traceId and object UUID and contact support; do not repeatedly copy credential configurations that cannot be read.

Feedback

Is this page helpful?