No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v3/events/%7Bid%7D?pagination.pageSize=SOME_INTEGER_VALUE&pagination.pageToken=SOME_STRING_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));
{
"event": {
"singleEvent": {
"cxEventKey": "test",
"cxEventType": "test_type",
"cxEventLabels": {
"test": "test"
},
"companyId": 1,
"cxEventTimestamp": 1714857600,
"cxEventPayloadType": "test_payload_type",
"cxEventPayload": {
"test": "test"
},
"cxEventDedupKey": "test_dedup_key",
"cxEventMetadata": {
"test": "test"
}
},
"multipleEvents": {
"events": [
{
"cxEventKey": "test",
"cxEventType": "test_type",
"cxEventLabels": {
"test": "test"
},
"companyId": 1,
"cxEventTimestamp": 1714857600,
"cxEventPayloadType": "test_payload_type",
"cxEventPayload": {
"test": "test"
},
"cxEventDedupKey": "test_dedup_key",
"cxEventMetadata": {
"test": "test"
}
}
]
}
},
"pagination": {
"totalSize": 10,
"nextPageToken": "test"
}
}
API key authentication
A successful response.
The response is of type object
.
Was this page helpful?
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v3/events/%7Bid%7D?pagination.pageSize=SOME_INTEGER_VALUE&pagination.pageToken=SOME_STRING_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));
{
"event": {
"singleEvent": {
"cxEventKey": "test",
"cxEventType": "test_type",
"cxEventLabels": {
"test": "test"
},
"companyId": 1,
"cxEventTimestamp": 1714857600,
"cxEventPayloadType": "test_payload_type",
"cxEventPayload": {
"test": "test"
},
"cxEventDedupKey": "test_dedup_key",
"cxEventMetadata": {
"test": "test"
}
},
"multipleEvents": {
"events": [
{
"cxEventKey": "test",
"cxEventType": "test_type",
"cxEventLabels": {
"test": "test"
},
"companyId": 1,
"cxEventTimestamp": 1714857600,
"cxEventPayloadType": "test_payload_type",
"cxEventPayload": {
"test": "test"
},
"cxEventDedupKey": "test_dedup_key",
"cxEventMetadata": {
"test": "test"
}
}
]
}
},
"pagination": {
"totalSize": 10,
"nextPageToken": "test"
}
}
No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v3/events/%7Bid%7D?pagination.pageSize=SOME_INTEGER_VALUE&pagination.pageToken=SOME_STRING_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));
{
"event": {
"singleEvent": {
"cxEventKey": "test",
"cxEventType": "test_type",
"cxEventLabels": {
"test": "test"
},
"companyId": 1,
"cxEventTimestamp": 1714857600,
"cxEventPayloadType": "test_payload_type",
"cxEventPayload": {
"test": "test"
},
"cxEventDedupKey": "test_dedup_key",
"cxEventMetadata": {
"test": "test"
}
},
"multipleEvents": {
"events": [
{
"cxEventKey": "test",
"cxEventType": "test_type",
"cxEventLabels": {
"test": "test"
},
"companyId": 1,
"cxEventTimestamp": 1714857600,
"cxEventPayloadType": "test_payload_type",
"cxEventPayload": {
"test": "test"
},
"cxEventDedupKey": "test_dedup_key",
"cxEventMetadata": {
"test": "test"
}
}
]
}
},
"pagination": {
"totalSize": 10,
"nextPageToken": "test"
}
}
API key authentication
A successful response.
The response is of type object
.
Was this page helpful?
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v3/events/%7Bid%7D?pagination.pageSize=SOME_INTEGER_VALUE&pagination.pageToken=SOME_STRING_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));
{
"event": {
"singleEvent": {
"cxEventKey": "test",
"cxEventType": "test_type",
"cxEventLabels": {
"test": "test"
},
"companyId": 1,
"cxEventTimestamp": 1714857600,
"cxEventPayloadType": "test_payload_type",
"cxEventPayload": {
"test": "test"
},
"cxEventDedupKey": "test_dedup_key",
"cxEventMetadata": {
"test": "test"
}
},
"multipleEvents": {
"events": [
{
"cxEventKey": "test",
"cxEventType": "test_type",
"cxEventLabels": {
"test": "test"
},
"companyId": 1,
"cxEventTimestamp": 1714857600,
"cxEventPayloadType": "test_payload_type",
"cxEventPayload": {
"test": "test"
},
"cxEventDedupKey": "test_dedup_key",
"cxEventMetadata": {
"test": "test"
}
}
]
}
},
"pagination": {
"totalSize": 10,
"nextPageToken": "test"
}
}