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

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

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));
{
  "incidentEvents": [
    {
      "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>"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

incidentId
string
required

ID of the incident to retrieve events for

Response

200
application/json

A successful response.

Response containing all events associated with the requested incident