Skip to main content
node
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/incidents/incidents/v1/batch?ids=SOME_ARRAY_VALUE';

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));
{
  "incidents": {},
  "notFoundIds": [
    [
      "not_found_id_1",
      "not_found_id_2"
    ]
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Query Parameters

ids
string[]

Response

Response containing the requested incidents and any IDs that weren't found

incidents
object
required

Map of incident IDs to their corresponding incidents

notFoundIds
string[]
required

List of IDs that were not found