Query Incident Operation Records¶
GET /api/v1/incidents/operate/{incident_uuid}/list
Overview¶
Read incident operation records with pagination.
Prerequisites and Usage Steps¶
The Key must match one of routine.defaultAccess or incidents.incidentsQuery. Reads within the current workspace; obtain the path incident_uuid from content.data[].uuid in Incident List. Pagination is sorted by createAt in descending order, then by id in descending order when they are equal. The defaults are pageIndex=1/pageSize=10. Pagination information is at the top-level pageInfo; content is an object containing a data array and declaration. An empty list does not prove that the incident exists, and this endpoint does not validate the parent incident first.
Returns the incident operation history. operateType distinguishes create/status/level/assignee/notification escalation, etc. content is a localized description and should not be used as a basis for machine judgment; structured before/after and escalation information is in extend. Operation record writes are fault-tolerant by default. Do not use the absence of records in the list as proof that no incident changes or notifications occurred previously. New records added during the query can shift offset-based pagination; continue reading with deduplication by uuid. This endpoint is not claimed to provide a frozen snapshot.
Route Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| incident_uuid | string | Y | UUID of the incident in the current workspace; not an alert event ID, SLO UUID, or comment UUID. Allowed null: False Example: incident_exampleHow to obtain or enter: Obtain content.data[].uuid from Incident List. |
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 operation permissions from API Key Management in the target workspace. |
Query Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| pageSize | integer | Optional integer, default 10. The current implementation does not declare a maximum value; callers should limit it to a reasonable positive number. 0 and negative numbers are not treated as a stable pagination contract. Allowed null: False Example: 10How to obtain or enter: Choose based on query volume; 10 to 100 is recommended. |
|
| pageIndex | integer | Optional integer, default 1; >=1 is recommended. The current declaration does not restrict positive numbers, and you cannot rely on errors for negative numbers; offset-based pagination may shift while records are added or changed. Allowed null: False Example: 1How to obtain or enter: Start from the first page and continue pagination according to the top-level pageInfo. |
Request Example¶
curl --get 'https://openapi.truewatch.com/api/v1/incidents/operate/incident_example/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 | Pagination content object; the record array is in data, and the declaration is in declaration. |
| content.data | array<object> |
Array of records on this page; [] if no match. |
| content.data[].id | integer or null | Database row ID; use uuid for business identification; the pre-commit snapshot may be null. |
| content.data[].uuid | string | UUID of this resource. |
| content.data[].status | integer | Database status, 0 active/3 deleted; different from the incident business status incidentsStatus. |
| content.data[].creator | string | Creating principal; for an API Key, generally wsak_resourceUUID. |
| content.data[].updator | string | Principal of the most recent update; may be empty if not updated. |
| content.data[].createAt | integer | Creation time in Unix seconds. |
| content.data[].updateAt | integer | Most recent update time in Unix seconds. |
| content.data[].deleteAt | integer | Deletion time in Unix seconds; -1 if not deleted. |
| content.data[].incidentsUUID | string | UUID of the incident to which the record belongs. |
| content.data[].workspaceUUID | string | Workspace to which the record belongs. |
| content.data[].content | string | Localized operation description; not guaranteed to be machine-parsable; determine based on operateType/extend. |
| content.data[].extend | object | Operation extension; varies with operateType. |
| content.data[].extend.before | JSON | Value before status/level/assignee changes; may be a string or array depending on the operation type. |
| content.data[].extend.after | JSON | Value after status/level/assignee changes. |
| content.data[].extend.source | string | Operation source; the default studio entry may not contain this key. |
| content.data[].extend.custom field | JSON | Extension metadata carried by actions such as escalation policies; retain the original value and do not use it as a request parameter. |
| content.data[].operator | string | Actual operator account/Key/system identifier. |
| content.data[].operateType | string | create/status_update/level_update/assigner_update/notify_level_update, etc. Clients should be compatible with extensions. |
| content.data[].creatorInfo | object | Principal summary; {} if there is no corresponding information. |
| content.data[].creatorInfo.uuid | string | Principal UUID; for a system reply principal, this may be empty or a system identifier. |
| content.data[].creatorInfo.status | integer | Principal status. |
| content.data[].creatorInfo.wsAccountStatus | integer | Workspace member status; for a Key, this is the Key status, not the incident status. |
| content.data[].creatorInfo.username | string | Login name/Key name/system name. |
| content.data[].creatorInfo.name | string | Display name; the system AI display name uses the site configuration. |
| content.data[].creatorInfo.iconUrl | string | Avatar URL; may be omitted for system summaries. |
| content.data[].creatorInfo.email | string | Contact email; for a Key summary, this may be the Key UUID and is not a deliverable email address. |
| content.data[].creatorInfo.mobile | string | Contact mobile number; may be empty. |
| content.data[].creatorInfo.countryCode | string | Country code; may be omitted for system summaries. |
| content.data[].creatorInfo.acntWsNickname | string | Workspace nickname; may be omitted for system summaries. |
| content.data[].updatorInfo | object | Principal summary; {} if there is no corresponding information. |
| content.data[].updatorInfo.uuid | string | Principal UUID; for a system reply principal, this may be empty or a system identifier. |
| content.data[].updatorInfo.status | integer | Principal status. |
| content.data[].updatorInfo.wsAccountStatus | integer | Workspace member status; for a Key, this is the Key status, not the incident status. |
| content.data[].updatorInfo.username | string | Login name/Key name/system name. |
| content.data[].updatorInfo.name | string | Display name; the system AI display name uses the site configuration. |
| content.data[].updatorInfo.iconUrl | string | Avatar URL; may be omitted for system summaries. |
| content.data[].updatorInfo.email | string | Contact email; for a Key summary, this may be the Key UUID and is not a deliverable email address. |
| content.data[].updatorInfo.mobile | string | Contact mobile number; may be empty. |
| content.data[].updatorInfo.countryCode | string | Country code; may be omitted for system summaries. |
| content.data[].updatorInfo.acntWsNickname | string | Workspace nickname; may be omitted for system summaries. |
| content.data[].operatorInfo | object | Principal summary; {} if there is no corresponding information. |
| content.data[].operatorInfo.uuid | string | Principal UUID; for a system reply principal, this may be empty or a system identifier. |
| content.data[].operatorInfo.status | integer | Principal status. |
| content.data[].operatorInfo.wsAccountStatus | integer | Workspace member status; for a Key, this is the Key status, not the incident status. |
| content.data[].operatorInfo.username | string | Login name/Key name/system name. |
| content.data[].operatorInfo.name | string | Display name; the system AI display name uses the site configuration. |
| content.data[].operatorInfo.iconUrl | string | Avatar URL; may be omitted for system summaries. |
| content.data[].operatorInfo.email | string | Contact email; for a Key summary, this may be the Key UUID and is not a deliverable email address. |
| content.data[].operatorInfo.mobile | string | Contact mobile number; may be empty. |
| content.data[].operatorInfo.countryCode | string | Country code; may be omitted for system summaries. |
| content.data[].operatorInfo.acntWsNickname | string | Workspace nickname; may be omitted for system summaries. |
| content.data[].extend.before_info | object or array | Level summary or assignee summary array before the change; for status changes this is usually {}; the level before is itself a display name. |
| content.data[].extend.after_info | object or array | Level/assignee summary after the change; read according to the actual operateType and type. |
| content.data[].extend.schedule_name | string | On-Call/policy name summary in notification escalation operations. |
| content.data[].extend.incidents_status | string | Incident business status at the time of notification escalation. |
| content.data[].extend.strategy_info | object | Notification escalation policy snapshot. |
| content.data[].extend.strategy_info.name | string | Name of the associated schedule. |
| content.data[].extend.strategy_info.strategy | object | Snapshot of the selected level and notification configuration for this operation. |
| content.data[].extend.notify_info | object | Mapping from notification target identifiers to target information at that time; the shape differs for accounts/groups/notification targets. |
| content.data[].extend.notify_info.target identifier | object or string | Information about the target at that time, such as name/email/member; read according to the actual type; does not indicate successful delivery. |
| content.data[].extend.is_muted | boolean | true when the incident notification mute is matched; even if an escalation record exists, no notification was actually sent. |
| content.data[].extend.mute_rule_info | object | Summary of the matched mute rule. |
| content.data[].extend.mute_rule_info.uuid | string | Mute rule UUID. |
| content.data[].extend.mute_rule_info.name | string | Mute rule name. |
| content.data[].extend.muted_notify_info | object | Mapping of target information that was originally planned to be sent but was muted. |
| content.data[].extend.muted_notify_info.target identifier | object or string | Information about the muted target. |
| content.data[].extend.strategy_info.strategy.level | integer | Level sequence number, usually starting from 0. |
| content.data[].extend.strategy_info.strategy.levelUpTime | integer | Number of seconds to wait for escalation from the time the incident status is triggered. |
| content.data[].extend.strategy_info.strategy.incidentsLevel | array<string> |
List of applicable incident level UUIDs. |
| content.data[].extend.strategy_info.strategy.incidentsLevel[] | string | One level UUID. |
| content.data[].extend.strategy_info.strategy.incidentsStatus | array<string> |
List of applicable incident statuses, such as open/working. |
| content.data[].extend.strategy_info.strategy.incidentsStatus[] | string | One incident status. |
| content.data[].extend.strategy_info.strategy.ifRepeatNotify | boolean | Whether to send repeated notifications. |
| content.data[].extend.strategy_info.strategy.repeatNotifyInterval | integer | Repeated notification interval in seconds. |
| content.data[].extend.strategy_info.strategy.notifyConfig | array<object> |
Array of notification configurations for this level. |
| content.data[].extend.strategy_info.strategy.notifyConfig[].notifyObjectType | string | Notification target category, such as member/object/group; read according to the saved version. |
| content.data[].extend.strategy_info.strategy.notifyConfig[].notifyObject | array<string> |
Notification target identifiers; watchkeeper indicates the current On-Call person at runtime, not a fixed account UUID. |
| content.data[].extend.strategy_info.strategy.notifyConfig[].notifyObject[] | string | One target account/group/notification target identifier or watchkeeper. |
| content.data[].extend.strategy_info.strategy.notifyConfig[].notifyMethod | array<string> |
Notification methods; common values are mobile for phone calls, message for SMS, and email for email; object channels are executed according to the object configuration. |
| content.data[].extend.strategy_info.strategy.notifyConfig[].notifyMethod[] | string | One notification method. |
| content.declaration | object or null | Workspace common declaration attached to non-empty content; may be null or an empty object if not configured; not added to an empty content object. |
| pageInfo.pageIndex | integer | Current page, default 1. |
| pageInfo.pageSize | integer | Current page size, default 10. |
| pageInfo.count | integer | Number of records on this page. |
| pageInfo.totalCount | integer | Total number of matching records; may change during modifications. |
{
"code": 200,
"content": {
"data": [
{
"uuid": "incop_example",
"incidentsUUID": "incident_example",
"workspaceUUID": "wksp_example",
"content": "触发了新的故障",
"extend": {},
"operator": "wsak_example",
"operateType": "create",
"id": 123,
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"creatorInfo": {},
"updatorInfo": {},
"operatorInfo": {}
}
],
"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 Method |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Using an undeclared Query parameter or a parameter that violates the rules | Parameter parsing failed | Check the Query parameter table and examples. |
| 500 | ft.InternalServerError | Unhandled exceptions such as database reads, historical object/configuration formats, or associated summary construction | Internal error | Check the query parameters and retain traceId; retry with backoff. If the failure persists, ask the administrator to check the relevant historical records and service logs. |