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

let url = 'https://api.coralogix.com/mgmt/openapi/v3/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));
{
  "events": [
    {
      "companyId": 1,
      "cxEventDedupKey": "test_dedup_key",
      "cxEventKey": "test",
      "cxEventLabels": [
        {
          "key": "<string>",
          "value": "<string>"
        }
      ],
      "cxEventMetadata": [
        {
          "key": "<string>",
          "value": "<string>"
        }
      ],
      "cxEventPayload": {
        "test": "test"
      },
      "cxEventPayloadType": "test_payload_type",
      "cxEventTimestamp": 1714857600,
      "cxEventType": "test_type"
    }
  ],
  "pagination": {
    "nextPageToken": "test",
    "totalSize": 10
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Response

This data structure represents a response to list events

events
Event · object[]
required
pagination
object
I