GET
/
v1
/
incidents
/
{id}
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/v1/incidents/%7Bid%7D';

let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "incident": {
    "id": "incident_id",
    "name": "incident_name",
    "state": "INCIDENT_STATE_UNSPECIFIED",
    "status": "INCIDENT_STATUS_UNSPECIFIED",
    "assignments": [
      {
        "assignedTo": {
          "userId": "user_id"
        },
        "assignedBy": {
          "userId": "user_id"
        }
      }
    ],
    "description": "incident_description",
    "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
    "contextualLabels": {},
    "displayLabels": {},
    "events": [
      {
        "id": "incident_event_id",
        "incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
        "snoozeIndicator": {
          "startTime": "2023-11-07T05:31:56Z",
          "durationMinutes": 123,
          "userId": "<string>"
        },
        "assignment": {
          "assignment": {
            "assignedTo": {
              "userId": "user_id"
            },
            "assignedBy": {
              "userId": "user_id"
            }
          }
        },
        "unassign": {},
        "upsertState": {
          "stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
          "payload": {
            "cxEventKey": "<string>"
          },
          "isMuted": true
        },
        "acknowledge": {
          "acknowledgedBy": {
            "userId": "user_id"
          }
        },
        "close": {
          "closedBy": {
            "userId": "user_id"
          }
        },
        "originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
        "administrativeEvent": {
          "userId": "<string>"
        },
        "operationalEvent": {
          "systemName": "<string>"
        }
      }
    ],
    "createdAt": "2024-01-01T00:00:00.000Z",
    "closedAt": "2024-01-01T00:00:00.000Z",
    "lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
    "lastStateUpdateKey": "last_state_update_key",
    "isMuted": false,
    "metaLabels": [
      {
        "key": "key",
        "value": "value"
      }
    ],
    "duration": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

Response

200
application/json

A successful response.

Response containing the requested incident