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

let url = 'https://api.coralogix.com/mgmt/openapi/v3/events/events:batchGet';

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));
{
  "events": [
    {
      "key": "<string>",
      "value": {
        "singleEvent": {
          "companyId": 1,
          "cxEventDedupKey": "test_dedup_key",
          "cxEventKey": "test",
          "cxEventLabels": [
            {}
          ],
          "cxEventMetadata": [
            {}
          ],
          "cxEventPayload": {
            "test": "test"
          },
          "cxEventPayloadType": "test_payload_type",
          "cxEventTimestamp": 1714857600,
          "cxEventType": "test_type"
        }
      }
    }
  ],
  "notFoundIds": [
    "<string>"
  ],
  "pagination": {
    "nextPageToken": "test",
    "totalSize": 10
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Response

events
object[]
notFoundIds
string[]
pagination
object
I