curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/5/cases/cases/v1 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": {
"alertFilters": {
"alertIds": [
"f56645c5-9cd4-4b9f-961f-4f852d8835a0",
"a0a08c31-0ae4-4600-928e-cb6b7da50a99"
],
"alertVersions": [
"550e8400-e29b-41d4-a716-446655440000",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
]
},
"assignees": [
{
"unassigned": {}
}
],
"breached": [
"KPI_FILTER_NOT_BREACHED"
],
"caseLabelsFilter": {
"flatLabels": [
{
"key": "region",
"value": "us-west-1"
}
]
},
"categories": [
"CASE_CATEGORY_SECURITY",
"CASE_CATEGORY_AVAILABILITY"
],
"connectorTypeFilters": [
{
"connector_type": "CONNECTOR_TYPE_SLACK"
},
{
"no_connector": {}
}
],
"groupings": [
{
"key": "service",
"values": [
"payments",
"auth"
]
}
],
"impactedEntities": [
{
"apmService": {
"name": "payments-api"
}
},
{
"apmDatabase": {
"name": "orders-db"
}
}
],
"indicatorTypes": [],
"labels": [
{
"key": "team",
"values": [
"backend"
]
}
],
"priorities": [
"CASE_PRIORITY_P1",
"CASE_PRIORITY_P2"
],
"statuses": [],
"textSearch": "Vulnerability"
},
"orderBy": {
"direction": "CASE_ORDER_BY_DIRECTION_DESCENDING",
"field": "CASE_ORDER_BY_FIELD_PRIORITY"
},
"pagination": {
"pageSize": 10,
"pageToken": "MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==",
"skip": 20
}
}
'import requests
url = "https://api.coralogix.com/mgmt/openapi/5/cases/cases/v1"
payload = {
"filters": {
"alertFilters": {
"alertIds": ["f56645c5-9cd4-4b9f-961f-4f852d8835a0", "a0a08c31-0ae4-4600-928e-cb6b7da50a99"],
"alertVersions": ["550e8400-e29b-41d4-a716-446655440000", "6ba7b810-9dad-11d1-80b4-00c04fd430c8"]
},
"assignees": [{ "unassigned": {} }],
"breached": ["KPI_FILTER_NOT_BREACHED"],
"caseLabelsFilter": { "flatLabels": [
{
"key": "region",
"value": "us-west-1"
}
] },
"categories": ["CASE_CATEGORY_SECURITY", "CASE_CATEGORY_AVAILABILITY"],
"connectorTypeFilters": [{ "connector_type": "CONNECTOR_TYPE_SLACK" }, { "no_connector": {} }],
"groupings": [
{
"key": "service",
"values": ["payments", "auth"]
}
],
"impactedEntities": [{ "apmService": { "name": "payments-api" } }, { "apmDatabase": { "name": "orders-db" } }],
"indicatorTypes": [],
"labels": [
{
"key": "team",
"values": ["backend"]
}
],
"priorities": ["CASE_PRIORITY_P1", "CASE_PRIORITY_P2"],
"statuses": [],
"textSearch": "Vulnerability"
},
"orderBy": {
"direction": "CASE_ORDER_BY_DIRECTION_DESCENDING",
"field": "CASE_ORDER_BY_FIELD_PRIORITY"
},
"pagination": {
"pageSize": 10,
"pageToken": "MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==",
"skip": 20
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filters: {
alertFilters: {
alertIds: ['f56645c5-9cd4-4b9f-961f-4f852d8835a0', 'a0a08c31-0ae4-4600-928e-cb6b7da50a99'],
alertVersions: ['550e8400-e29b-41d4-a716-446655440000', '6ba7b810-9dad-11d1-80b4-00c04fd430c8']
},
assignees: [{unassigned: {}}],
breached: ['KPI_FILTER_NOT_BREACHED'],
caseLabelsFilter: {flatLabels: [{key: 'region', value: 'us-west-1'}]},
categories: ['CASE_CATEGORY_SECURITY', 'CASE_CATEGORY_AVAILABILITY'],
connectorTypeFilters: [{connector_type: 'CONNECTOR_TYPE_SLACK'}, {no_connector: {}}],
groupings: [{key: 'service', values: ['payments', 'auth']}],
impactedEntities: [{apmService: {name: 'payments-api'}}, {apmDatabase: {name: 'orders-db'}}],
indicatorTypes: [],
labels: [{key: 'team', values: ['backend']}],
priorities: ['CASE_PRIORITY_P1', 'CASE_PRIORITY_P2'],
statuses: [],
textSearch: 'Vulnerability'
},
orderBy: {
direction: 'CASE_ORDER_BY_DIRECTION_DESCENDING',
field: 'CASE_ORDER_BY_FIELD_PRIORITY'
},
pagination: {
pageSize: 10,
pageToken: 'MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==',
skip: 20
}
})
};
fetch('https://api.coralogix.com/mgmt/openapi/5/cases/cases/v1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.coralogix.com/mgmt/openapi/5/cases/cases/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filters' => [
'alertFilters' => [
'alertIds' => [
'f56645c5-9cd4-4b9f-961f-4f852d8835a0',
'a0a08c31-0ae4-4600-928e-cb6b7da50a99'
],
'alertVersions' => [
'550e8400-e29b-41d4-a716-446655440000',
'6ba7b810-9dad-11d1-80b4-00c04fd430c8'
]
],
'assignees' => [
[
'unassigned' => [
]
]
],
'breached' => [
'KPI_FILTER_NOT_BREACHED'
],
'caseLabelsFilter' => [
'flatLabels' => [
[
'key' => 'region',
'value' => 'us-west-1'
]
]
],
'categories' => [
'CASE_CATEGORY_SECURITY',
'CASE_CATEGORY_AVAILABILITY'
],
'connectorTypeFilters' => [
[
'connector_type' => 'CONNECTOR_TYPE_SLACK'
],
[
'no_connector' => [
]
]
],
'groupings' => [
[
'key' => 'service',
'values' => [
'payments',
'auth'
]
]
],
'impactedEntities' => [
[
'apmService' => [
'name' => 'payments-api'
]
],
[
'apmDatabase' => [
'name' => 'orders-db'
]
]
],
'indicatorTypes' => [
],
'labels' => [
[
'key' => 'team',
'values' => [
'backend'
]
]
],
'priorities' => [
'CASE_PRIORITY_P1',
'CASE_PRIORITY_P2'
],
'statuses' => [
],
'textSearch' => 'Vulnerability'
],
'orderBy' => [
'direction' => 'CASE_ORDER_BY_DIRECTION_DESCENDING',
'field' => 'CASE_ORDER_BY_FIELD_PRIORITY'
],
'pagination' => [
'pageSize' => 10,
'pageToken' => 'MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==',
'skip' => 20
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.coralogix.com/mgmt/openapi/5/cases/cases/v1"
payload := strings.NewReader("{\n \"filters\": {\n \"alertFilters\": {\n \"alertIds\": [\n \"f56645c5-9cd4-4b9f-961f-4f852d8835a0\",\n \"a0a08c31-0ae4-4600-928e-cb6b7da50a99\"\n ],\n \"alertVersions\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"\n ]\n },\n \"assignees\": [\n {\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"region\",\n \"value\": \"us-west-1\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"connector_type\": \"CONNECTOR_TYPE_SLACK\"\n },\n {\n \"no_connector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\",\n \"auth\"\n ]\n }\n ],\n \"impactedEntities\": [\n {\n \"apmService\": {\n \"name\": \"payments-api\"\n }\n },\n {\n \"apmDatabase\": {\n \"name\": \"orders-db\"\n }\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"team\",\n \"values\": [\n \"backend\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n },\n \"orderBy\": {\n \"direction\": \"CASE_ORDER_BY_DIRECTION_DESCENDING\",\n \"field\": \"CASE_ORDER_BY_FIELD_PRIORITY\"\n },\n \"pagination\": {\n \"pageSize\": 10,\n \"pageToken\": \"MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==\",\n \"skip\": 20\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.coralogix.com/mgmt/openapi/5/cases/cases/v1")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"alertFilters\": {\n \"alertIds\": [\n \"f56645c5-9cd4-4b9f-961f-4f852d8835a0\",\n \"a0a08c31-0ae4-4600-928e-cb6b7da50a99\"\n ],\n \"alertVersions\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"\n ]\n },\n \"assignees\": [\n {\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"region\",\n \"value\": \"us-west-1\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"connector_type\": \"CONNECTOR_TYPE_SLACK\"\n },\n {\n \"no_connector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\",\n \"auth\"\n ]\n }\n ],\n \"impactedEntities\": [\n {\n \"apmService\": {\n \"name\": \"payments-api\"\n }\n },\n {\n \"apmDatabase\": {\n \"name\": \"orders-db\"\n }\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"team\",\n \"values\": [\n \"backend\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n },\n \"orderBy\": {\n \"direction\": \"CASE_ORDER_BY_DIRECTION_DESCENDING\",\n \"field\": \"CASE_ORDER_BY_FIELD_PRIORITY\"\n },\n \"pagination\": {\n \"pageSize\": 10,\n \"pageToken\": \"MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==\",\n \"skip\": 20\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coralogix.com/mgmt/openapi/5/cases/cases/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": {\n \"alertFilters\": {\n \"alertIds\": [\n \"f56645c5-9cd4-4b9f-961f-4f852d8835a0\",\n \"a0a08c31-0ae4-4600-928e-cb6b7da50a99\"\n ],\n \"alertVersions\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"\n ]\n },\n \"assignees\": [\n {\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"region\",\n \"value\": \"us-west-1\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"connector_type\": \"CONNECTOR_TYPE_SLACK\"\n },\n {\n \"no_connector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\",\n \"auth\"\n ]\n }\n ],\n \"impactedEntities\": [\n {\n \"apmService\": {\n \"name\": \"payments-api\"\n }\n },\n {\n \"apmDatabase\": {\n \"name\": \"orders-db\"\n }\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"team\",\n \"values\": [\n \"backend\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n },\n \"orderBy\": {\n \"direction\": \"CASE_ORDER_BY_DIRECTION_DESCENDING\",\n \"field\": \"CASE_ORDER_BY_FIELD_PRIORITY\"\n },\n \"pagination\": {\n \"pageSize\": 10,\n \"pageToken\": \"MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==\",\n \"skip\": 20\n }\n}"
response = http.request(request)
puts response.read_body{
"cases": [
{
"category": "CASE_CATEGORY_AVAILABILITY",
"createTime": "2025-09-22T10:30:00.000Z",
"groupings": [
{
"key": "service",
"value": "payments"
}
],
"id": "3f166e9f-3c88-4af2-b52e-138f339dab3e",
"impactedEntities": [
{
"apmService": {
"language": "go",
"name": "payments-api"
},
"apmDatabase": {
"name": "orders-db",
"system": "postgresql"
}
}
],
"labels": [
{
"key": "team",
"value": "backend"
}
],
"priority": "CASE_PRIORITY_P2",
"status": "CASE_STATUS_ACKNOWLEDGED",
"title": "Database outage investigation",
"acknowledgeTime": "2023-11-07T05:31:56Z",
"aiSummary": "<string>",
"assignee": {
"userId": "3af152ee-9eaf-4803-87f1-23c5fb2fbaa0"
},
"caseIndicators": {
"alertIndicators": [
{
"alertId": "f56645c5-9cd4-4b9f-961f-4f852d8835a0",
"alertVersions": [
"1eae3615-79e7-4b54-88e0-6a77def653bf",
"2fbf4726-8af8-5c65-99f1-7b88ef764c0g"
],
"groupingType": "GROUPING_TYPE_COMPOSITE_ALERT",
"latestAlertVersion": "1eae3615-79e7-4b54-88e0-6a77def653bf",
"permutations": [
{
"permutation": {
"service": "payments",
"cluster": "prod"
}
},
{
"permutation": {
"service": "billing",
"cluster": "prod"
}
}
],
"priority": "ALERT_PRIORITY_P2",
"state": "ALERT_INDICATOR_STATE_TRIGGERED",
"triggerTime": "2025-09-22T10:30:00.000Z",
"customDataprimeQueries": [
"source logs | filter $d.severity == 'ERROR'"
],
"resolveTime": "2025-09-22T11:05:00.000Z",
"resolveWithSignal": true,
"suppression": {
"activeSuppressionRules": {
"suppressionRuleIds": [
"1eae3615-79e7-4b54-88e0-6a77def653bf",
"2fbf4726-8af8-5c65-99f1-7b88ef764c0e"
]
},
"alertDefinitionMuted": {},
"suppressedTime": "2025-09-22T10:30:00.000Z"
}
}
],
"genericIndicators": [
{
"externalId": "et-issue-8827",
"id": "f56645c5-9cd4-4b9f-961f-4f852d8835a0",
"indicatorType": "GENERIC_INDICATOR_TYPE_ERROR_TRACKING",
"lastTriggeredAt": "2025-09-22T10:30:00.000Z",
"priority": "INDICATOR_PRIORITY_P2",
"status": "GENERIC_INDICATOR_STATUS_TRIGGERED",
"entityLinks": [
{
"url": "https://app.coralogix.com/error-tracking/issues/abc123"
}
],
"labels": [
{
"key": "service",
"value": "auth"
}
],
"lastResolvedAt": "2025-09-22T11:05:00.000Z"
}
],
"prometheusAlertIndicators": [
{
"alertGroupId": "5d41402abc4b2a76b9719d911017c592",
"alerts": [
{
"alertGroupId": "5d41402abc4b2a76b9719d911017c592",
"alertName": "HighRequestLatency",
"annotations": {},
"createdAt": "2025-09-22T10:30:00.000Z",
"fingerprint": "a1b2c3d4e5f6a7b8",
"generatorUrl": "https://prometheus.example.com/graph?g0.expr=...",
"labels": {},
"priority": "INDICATOR_PRIORITY_P2",
"status": {
"triggered": {
"triggeredAt": "2025-09-22T10:30:00.000Z"
},
"resolved": {
"resolvedAt": "2025-09-22T11:05:00.000Z",
"triggeredAt": "2025-09-22T10:30:00.000Z"
}
},
"updatedAt": "2025-09-22T11:05:00.000Z",
"query": {
"promql": "histogram_quantile(0.95, rate(http_request_duration_seconds_bucket[5m])) > 1"
}
}
],
"externalUrl": "https://alertmanager.example.com",
"groupLabels": {},
"priority": "INDICATOR_PRIORITY_P2",
"receivedAt": "2025-09-22T10:30:00.000Z",
"receiver": "webhook-coralogix",
"status": {
"triggered": {
"triggeredAt": "2025-09-22T10:30:00.000Z"
},
"resolved": {
"resolvedAt": "2025-09-22T11:05:00.000Z",
"triggeredAt": "2025-09-22T10:30:00.000Z"
}
},
"updatedAt": "2025-09-22T11:05:00.000Z"
}
]
},
"duration": "<string>",
"kpiBreaches": {
"breachedKpis": [
{
"kpi_type": "KPI_TYPE_TIME_TO_ACKNOWLEDGE",
"case_priority": "CASE_PRIORITY_P1",
"resolution_breached_at": "2025-09-22T11:00:00.000Z"
}
]
},
"ollyAnalysis": {
"completedAt": "2025-09-22T10:30:00.000Z",
"payload": {
"generatedAt": "2025-09-22T10:30:00.000Z",
"investigationSummary": "Latency spike on checkout-service correlates with a deploy of v1.42 and elevated DB pool saturation.",
"remediationRecommendations": [
"Roll back checkout-service to v1.41",
"Increase orders Postgres pool size to 200"
],
"rootCause": "Connection-pool exhaustion on the orders Postgres instance.",
"rootCauseConfidence": "OLLY_ANALYSIS_ROOT_CAUSE_CONFIDENCE_HIGH"
},
"status": "STATUS_OK"
},
"priorityDetails": {
"override": "CASE_PRIORITY_UNSPECIFIED",
"system": "CASE_PRIORITY_UNSPECIFIED"
},
"readableId": "CASE-123",
"resolutionDetails": {
"reason": "Case was not applicable.",
"resolveTime": "2025-09-22T11:15:00.000Z",
"resolvedBy": {
"system": {},
"apiKey": {},
"cxUser": {},
"microsoftTeams": {},
"pagerDuty": {},
"prometheusAlertManager": {},
"serviceNow": {},
"slack": {}
}
},
"updateTime": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"nextPageToken": "MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA=="
},
"pbacTruncated": true
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}List cases with filters
List cases using filters, pagination and custom ordering.
Requires the following permissions:
case:Read
curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/5/cases/cases/v1 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": {
"alertFilters": {
"alertIds": [
"f56645c5-9cd4-4b9f-961f-4f852d8835a0",
"a0a08c31-0ae4-4600-928e-cb6b7da50a99"
],
"alertVersions": [
"550e8400-e29b-41d4-a716-446655440000",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
]
},
"assignees": [
{
"unassigned": {}
}
],
"breached": [
"KPI_FILTER_NOT_BREACHED"
],
"caseLabelsFilter": {
"flatLabels": [
{
"key": "region",
"value": "us-west-1"
}
]
},
"categories": [
"CASE_CATEGORY_SECURITY",
"CASE_CATEGORY_AVAILABILITY"
],
"connectorTypeFilters": [
{
"connector_type": "CONNECTOR_TYPE_SLACK"
},
{
"no_connector": {}
}
],
"groupings": [
{
"key": "service",
"values": [
"payments",
"auth"
]
}
],
"impactedEntities": [
{
"apmService": {
"name": "payments-api"
}
},
{
"apmDatabase": {
"name": "orders-db"
}
}
],
"indicatorTypes": [],
"labels": [
{
"key": "team",
"values": [
"backend"
]
}
],
"priorities": [
"CASE_PRIORITY_P1",
"CASE_PRIORITY_P2"
],
"statuses": [],
"textSearch": "Vulnerability"
},
"orderBy": {
"direction": "CASE_ORDER_BY_DIRECTION_DESCENDING",
"field": "CASE_ORDER_BY_FIELD_PRIORITY"
},
"pagination": {
"pageSize": 10,
"pageToken": "MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==",
"skip": 20
}
}
'import requests
url = "https://api.coralogix.com/mgmt/openapi/5/cases/cases/v1"
payload = {
"filters": {
"alertFilters": {
"alertIds": ["f56645c5-9cd4-4b9f-961f-4f852d8835a0", "a0a08c31-0ae4-4600-928e-cb6b7da50a99"],
"alertVersions": ["550e8400-e29b-41d4-a716-446655440000", "6ba7b810-9dad-11d1-80b4-00c04fd430c8"]
},
"assignees": [{ "unassigned": {} }],
"breached": ["KPI_FILTER_NOT_BREACHED"],
"caseLabelsFilter": { "flatLabels": [
{
"key": "region",
"value": "us-west-1"
}
] },
"categories": ["CASE_CATEGORY_SECURITY", "CASE_CATEGORY_AVAILABILITY"],
"connectorTypeFilters": [{ "connector_type": "CONNECTOR_TYPE_SLACK" }, { "no_connector": {} }],
"groupings": [
{
"key": "service",
"values": ["payments", "auth"]
}
],
"impactedEntities": [{ "apmService": { "name": "payments-api" } }, { "apmDatabase": { "name": "orders-db" } }],
"indicatorTypes": [],
"labels": [
{
"key": "team",
"values": ["backend"]
}
],
"priorities": ["CASE_PRIORITY_P1", "CASE_PRIORITY_P2"],
"statuses": [],
"textSearch": "Vulnerability"
},
"orderBy": {
"direction": "CASE_ORDER_BY_DIRECTION_DESCENDING",
"field": "CASE_ORDER_BY_FIELD_PRIORITY"
},
"pagination": {
"pageSize": 10,
"pageToken": "MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==",
"skip": 20
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filters: {
alertFilters: {
alertIds: ['f56645c5-9cd4-4b9f-961f-4f852d8835a0', 'a0a08c31-0ae4-4600-928e-cb6b7da50a99'],
alertVersions: ['550e8400-e29b-41d4-a716-446655440000', '6ba7b810-9dad-11d1-80b4-00c04fd430c8']
},
assignees: [{unassigned: {}}],
breached: ['KPI_FILTER_NOT_BREACHED'],
caseLabelsFilter: {flatLabels: [{key: 'region', value: 'us-west-1'}]},
categories: ['CASE_CATEGORY_SECURITY', 'CASE_CATEGORY_AVAILABILITY'],
connectorTypeFilters: [{connector_type: 'CONNECTOR_TYPE_SLACK'}, {no_connector: {}}],
groupings: [{key: 'service', values: ['payments', 'auth']}],
impactedEntities: [{apmService: {name: 'payments-api'}}, {apmDatabase: {name: 'orders-db'}}],
indicatorTypes: [],
labels: [{key: 'team', values: ['backend']}],
priorities: ['CASE_PRIORITY_P1', 'CASE_PRIORITY_P2'],
statuses: [],
textSearch: 'Vulnerability'
},
orderBy: {
direction: 'CASE_ORDER_BY_DIRECTION_DESCENDING',
field: 'CASE_ORDER_BY_FIELD_PRIORITY'
},
pagination: {
pageSize: 10,
pageToken: 'MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==',
skip: 20
}
})
};
fetch('https://api.coralogix.com/mgmt/openapi/5/cases/cases/v1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.coralogix.com/mgmt/openapi/5/cases/cases/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filters' => [
'alertFilters' => [
'alertIds' => [
'f56645c5-9cd4-4b9f-961f-4f852d8835a0',
'a0a08c31-0ae4-4600-928e-cb6b7da50a99'
],
'alertVersions' => [
'550e8400-e29b-41d4-a716-446655440000',
'6ba7b810-9dad-11d1-80b4-00c04fd430c8'
]
],
'assignees' => [
[
'unassigned' => [
]
]
],
'breached' => [
'KPI_FILTER_NOT_BREACHED'
],
'caseLabelsFilter' => [
'flatLabels' => [
[
'key' => 'region',
'value' => 'us-west-1'
]
]
],
'categories' => [
'CASE_CATEGORY_SECURITY',
'CASE_CATEGORY_AVAILABILITY'
],
'connectorTypeFilters' => [
[
'connector_type' => 'CONNECTOR_TYPE_SLACK'
],
[
'no_connector' => [
]
]
],
'groupings' => [
[
'key' => 'service',
'values' => [
'payments',
'auth'
]
]
],
'impactedEntities' => [
[
'apmService' => [
'name' => 'payments-api'
]
],
[
'apmDatabase' => [
'name' => 'orders-db'
]
]
],
'indicatorTypes' => [
],
'labels' => [
[
'key' => 'team',
'values' => [
'backend'
]
]
],
'priorities' => [
'CASE_PRIORITY_P1',
'CASE_PRIORITY_P2'
],
'statuses' => [
],
'textSearch' => 'Vulnerability'
],
'orderBy' => [
'direction' => 'CASE_ORDER_BY_DIRECTION_DESCENDING',
'field' => 'CASE_ORDER_BY_FIELD_PRIORITY'
],
'pagination' => [
'pageSize' => 10,
'pageToken' => 'MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==',
'skip' => 20
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.coralogix.com/mgmt/openapi/5/cases/cases/v1"
payload := strings.NewReader("{\n \"filters\": {\n \"alertFilters\": {\n \"alertIds\": [\n \"f56645c5-9cd4-4b9f-961f-4f852d8835a0\",\n \"a0a08c31-0ae4-4600-928e-cb6b7da50a99\"\n ],\n \"alertVersions\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"\n ]\n },\n \"assignees\": [\n {\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"region\",\n \"value\": \"us-west-1\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"connector_type\": \"CONNECTOR_TYPE_SLACK\"\n },\n {\n \"no_connector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\",\n \"auth\"\n ]\n }\n ],\n \"impactedEntities\": [\n {\n \"apmService\": {\n \"name\": \"payments-api\"\n }\n },\n {\n \"apmDatabase\": {\n \"name\": \"orders-db\"\n }\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"team\",\n \"values\": [\n \"backend\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n },\n \"orderBy\": {\n \"direction\": \"CASE_ORDER_BY_DIRECTION_DESCENDING\",\n \"field\": \"CASE_ORDER_BY_FIELD_PRIORITY\"\n },\n \"pagination\": {\n \"pageSize\": 10,\n \"pageToken\": \"MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==\",\n \"skip\": 20\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.coralogix.com/mgmt/openapi/5/cases/cases/v1")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"alertFilters\": {\n \"alertIds\": [\n \"f56645c5-9cd4-4b9f-961f-4f852d8835a0\",\n \"a0a08c31-0ae4-4600-928e-cb6b7da50a99\"\n ],\n \"alertVersions\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"\n ]\n },\n \"assignees\": [\n {\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"region\",\n \"value\": \"us-west-1\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"connector_type\": \"CONNECTOR_TYPE_SLACK\"\n },\n {\n \"no_connector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\",\n \"auth\"\n ]\n }\n ],\n \"impactedEntities\": [\n {\n \"apmService\": {\n \"name\": \"payments-api\"\n }\n },\n {\n \"apmDatabase\": {\n \"name\": \"orders-db\"\n }\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"team\",\n \"values\": [\n \"backend\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n },\n \"orderBy\": {\n \"direction\": \"CASE_ORDER_BY_DIRECTION_DESCENDING\",\n \"field\": \"CASE_ORDER_BY_FIELD_PRIORITY\"\n },\n \"pagination\": {\n \"pageSize\": 10,\n \"pageToken\": \"MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==\",\n \"skip\": 20\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coralogix.com/mgmt/openapi/5/cases/cases/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": {\n \"alertFilters\": {\n \"alertIds\": [\n \"f56645c5-9cd4-4b9f-961f-4f852d8835a0\",\n \"a0a08c31-0ae4-4600-928e-cb6b7da50a99\"\n ],\n \"alertVersions\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"\n ]\n },\n \"assignees\": [\n {\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"region\",\n \"value\": \"us-west-1\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"connector_type\": \"CONNECTOR_TYPE_SLACK\"\n },\n {\n \"no_connector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\",\n \"auth\"\n ]\n }\n ],\n \"impactedEntities\": [\n {\n \"apmService\": {\n \"name\": \"payments-api\"\n }\n },\n {\n \"apmDatabase\": {\n \"name\": \"orders-db\"\n }\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"team\",\n \"values\": [\n \"backend\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n },\n \"orderBy\": {\n \"direction\": \"CASE_ORDER_BY_DIRECTION_DESCENDING\",\n \"field\": \"CASE_ORDER_BY_FIELD_PRIORITY\"\n },\n \"pagination\": {\n \"pageSize\": 10,\n \"pageToken\": \"MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==\",\n \"skip\": 20\n }\n}"
response = http.request(request)
puts response.read_body{
"cases": [
{
"category": "CASE_CATEGORY_AVAILABILITY",
"createTime": "2025-09-22T10:30:00.000Z",
"groupings": [
{
"key": "service",
"value": "payments"
}
],
"id": "3f166e9f-3c88-4af2-b52e-138f339dab3e",
"impactedEntities": [
{
"apmService": {
"language": "go",
"name": "payments-api"
},
"apmDatabase": {
"name": "orders-db",
"system": "postgresql"
}
}
],
"labels": [
{
"key": "team",
"value": "backend"
}
],
"priority": "CASE_PRIORITY_P2",
"status": "CASE_STATUS_ACKNOWLEDGED",
"title": "Database outage investigation",
"acknowledgeTime": "2023-11-07T05:31:56Z",
"aiSummary": "<string>",
"assignee": {
"userId": "3af152ee-9eaf-4803-87f1-23c5fb2fbaa0"
},
"caseIndicators": {
"alertIndicators": [
{
"alertId": "f56645c5-9cd4-4b9f-961f-4f852d8835a0",
"alertVersions": [
"1eae3615-79e7-4b54-88e0-6a77def653bf",
"2fbf4726-8af8-5c65-99f1-7b88ef764c0g"
],
"groupingType": "GROUPING_TYPE_COMPOSITE_ALERT",
"latestAlertVersion": "1eae3615-79e7-4b54-88e0-6a77def653bf",
"permutations": [
{
"permutation": {
"service": "payments",
"cluster": "prod"
}
},
{
"permutation": {
"service": "billing",
"cluster": "prod"
}
}
],
"priority": "ALERT_PRIORITY_P2",
"state": "ALERT_INDICATOR_STATE_TRIGGERED",
"triggerTime": "2025-09-22T10:30:00.000Z",
"customDataprimeQueries": [
"source logs | filter $d.severity == 'ERROR'"
],
"resolveTime": "2025-09-22T11:05:00.000Z",
"resolveWithSignal": true,
"suppression": {
"activeSuppressionRules": {
"suppressionRuleIds": [
"1eae3615-79e7-4b54-88e0-6a77def653bf",
"2fbf4726-8af8-5c65-99f1-7b88ef764c0e"
]
},
"alertDefinitionMuted": {},
"suppressedTime": "2025-09-22T10:30:00.000Z"
}
}
],
"genericIndicators": [
{
"externalId": "et-issue-8827",
"id": "f56645c5-9cd4-4b9f-961f-4f852d8835a0",
"indicatorType": "GENERIC_INDICATOR_TYPE_ERROR_TRACKING",
"lastTriggeredAt": "2025-09-22T10:30:00.000Z",
"priority": "INDICATOR_PRIORITY_P2",
"status": "GENERIC_INDICATOR_STATUS_TRIGGERED",
"entityLinks": [
{
"url": "https://app.coralogix.com/error-tracking/issues/abc123"
}
],
"labels": [
{
"key": "service",
"value": "auth"
}
],
"lastResolvedAt": "2025-09-22T11:05:00.000Z"
}
],
"prometheusAlertIndicators": [
{
"alertGroupId": "5d41402abc4b2a76b9719d911017c592",
"alerts": [
{
"alertGroupId": "5d41402abc4b2a76b9719d911017c592",
"alertName": "HighRequestLatency",
"annotations": {},
"createdAt": "2025-09-22T10:30:00.000Z",
"fingerprint": "a1b2c3d4e5f6a7b8",
"generatorUrl": "https://prometheus.example.com/graph?g0.expr=...",
"labels": {},
"priority": "INDICATOR_PRIORITY_P2",
"status": {
"triggered": {
"triggeredAt": "2025-09-22T10:30:00.000Z"
},
"resolved": {
"resolvedAt": "2025-09-22T11:05:00.000Z",
"triggeredAt": "2025-09-22T10:30:00.000Z"
}
},
"updatedAt": "2025-09-22T11:05:00.000Z",
"query": {
"promql": "histogram_quantile(0.95, rate(http_request_duration_seconds_bucket[5m])) > 1"
}
}
],
"externalUrl": "https://alertmanager.example.com",
"groupLabels": {},
"priority": "INDICATOR_PRIORITY_P2",
"receivedAt": "2025-09-22T10:30:00.000Z",
"receiver": "webhook-coralogix",
"status": {
"triggered": {
"triggeredAt": "2025-09-22T10:30:00.000Z"
},
"resolved": {
"resolvedAt": "2025-09-22T11:05:00.000Z",
"triggeredAt": "2025-09-22T10:30:00.000Z"
}
},
"updatedAt": "2025-09-22T11:05:00.000Z"
}
]
},
"duration": "<string>",
"kpiBreaches": {
"breachedKpis": [
{
"kpi_type": "KPI_TYPE_TIME_TO_ACKNOWLEDGE",
"case_priority": "CASE_PRIORITY_P1",
"resolution_breached_at": "2025-09-22T11:00:00.000Z"
}
]
},
"ollyAnalysis": {
"completedAt": "2025-09-22T10:30:00.000Z",
"payload": {
"generatedAt": "2025-09-22T10:30:00.000Z",
"investigationSummary": "Latency spike on checkout-service correlates with a deploy of v1.42 and elevated DB pool saturation.",
"remediationRecommendations": [
"Roll back checkout-service to v1.41",
"Increase orders Postgres pool size to 200"
],
"rootCause": "Connection-pool exhaustion on the orders Postgres instance.",
"rootCauseConfidence": "OLLY_ANALYSIS_ROOT_CAUSE_CONFIDENCE_HIGH"
},
"status": "STATUS_OK"
},
"priorityDetails": {
"override": "CASE_PRIORITY_UNSPECIFIED",
"system": "CASE_PRIORITY_UNSPECIFIED"
},
"readableId": "CASE-123",
"resolutionDetails": {
"reason": "Case was not applicable.",
"resolveTime": "2025-09-22T11:15:00.000Z",
"resolvedBy": {
"system": {},
"apiKey": {},
"cxUser": {},
"microsoftTeams": {},
"pagerDuty": {},
"prometheusAlertManager": {},
"serviceNow": {},
"slack": {}
}
},
"updateTime": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"nextPageToken": "MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA=="
},
"pbacTruncated": true
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}Authorizations
API key authentication
Body
Request to list cases with filtering and pagination
Filters to apply when listing cases
Show child attributes
Show child attributes
Sorting parameters to control the order of returned cases. Supports single-field sorting only. Example: sort by priority in descending order to show highest priority cases first.
Show child attributes
Show child attributes
Pagination parameters
Show child attributes
Show child attributes
Response
Response containing a list of cases and pagination information
Cases matching the provided filters.
1000Show child attributes
Show child attributes
Pagination cursor for retrieving the next page of cases.
Show child attributes
Show child attributes
Indicates whether the list of cases was truncated due to PBAC (Policy-Based Access Control) restrictions. If true, the user may not have access to all cases that match the filters.
Was this page helpful?