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

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

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));
{
  "event": {
    "singleEvent": {
      "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

Path Parameters

id
string
required
Example:

"test"

Response

event
object

This data structure represents a single or multiple events

  • CxEventSingleOrMultiple
  • CxEventSingleOrMultiple
pagination
object
I