List cases with filters
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": [
{
"assignee": "e07db42e-eb1c-4c14-ab68-e4d245ae63a5",
"unassigned": {}
}
],
"breached": [
"KPI_FILTER_NOT_BREACHED"
],
"caseLabelsFilter": {
"flatLabels": [
{
"key": "service",
"value": "payments"
}
]
},
"categories": [
"CASE_CATEGORY_SECURITY",
"CASE_CATEGORY_AVAILABILITY"
],
"connectorTypeFilters": [
{
"noConnector": {}
}
],
"groupings": [
{
"key": "service",
"values": [
"payments"
]
}
],
"indicatorTypes": [],
"labels": [
{
"key": "service",
"values": [
"payments"
]
}
],
"priorities": [
"CASE_PRIORITY_P1",
"CASE_PRIORITY_P2"
],
"statuses": [],
"textSearch": "Vulnerability"
},
"orderBy": {},
"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": [
{
"assignee": "e07db42e-eb1c-4c14-ab68-e4d245ae63a5",
"unassigned": {}
}
],
"breached": ["KPI_FILTER_NOT_BREACHED"],
"caseLabelsFilter": { "flatLabels": [
{
"key": "service",
"value": "payments"
}
] },
"categories": ["CASE_CATEGORY_SECURITY", "CASE_CATEGORY_AVAILABILITY"],
"connectorTypeFilters": [{ "noConnector": {} }],
"groupings": [
{
"key": "service",
"values": ["payments"]
}
],
"indicatorTypes": [],
"labels": [
{
"key": "service",
"values": ["payments"]
}
],
"priorities": ["CASE_PRIORITY_P1", "CASE_PRIORITY_P2"],
"statuses": [],
"textSearch": "Vulnerability"
},
"orderBy": {},
"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: [{assignee: 'e07db42e-eb1c-4c14-ab68-e4d245ae63a5', unassigned: {}}],
breached: ['KPI_FILTER_NOT_BREACHED'],
caseLabelsFilter: {flatLabels: [{key: 'service', value: 'payments'}]},
categories: ['CASE_CATEGORY_SECURITY', 'CASE_CATEGORY_AVAILABILITY'],
connectorTypeFilters: [{noConnector: {}}],
groupings: [{key: 'service', values: ['payments']}],
indicatorTypes: [],
labels: [{key: 'service', values: ['payments']}],
priorities: ['CASE_PRIORITY_P1', 'CASE_PRIORITY_P2'],
statuses: [],
textSearch: 'Vulnerability'
},
orderBy: {},
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' => [
[
'assignee' => 'e07db42e-eb1c-4c14-ab68-e4d245ae63a5',
'unassigned' => [
]
]
],
'breached' => [
'KPI_FILTER_NOT_BREACHED'
],
'caseLabelsFilter' => [
'flatLabels' => [
[
'key' => 'service',
'value' => 'payments'
]
]
],
'categories' => [
'CASE_CATEGORY_SECURITY',
'CASE_CATEGORY_AVAILABILITY'
],
'connectorTypeFilters' => [
[
'noConnector' => [
]
]
],
'groupings' => [
[
'key' => 'service',
'values' => [
'payments'
]
]
],
'indicatorTypes' => [
],
'labels' => [
[
'key' => 'service',
'values' => [
'payments'
]
]
],
'priorities' => [
'CASE_PRIORITY_P1',
'CASE_PRIORITY_P2'
],
'statuses' => [
],
'textSearch' => 'Vulnerability'
],
'orderBy' => [
],
'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 \"assignee\": \"e07db42e-eb1c-4c14-ab68-e4d245ae63a5\",\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"service\",\n \"value\": \"payments\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"noConnector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n },\n \"orderBy\": {},\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 \"assignee\": \"e07db42e-eb1c-4c14-ab68-e4d245ae63a5\",\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"service\",\n \"value\": \"payments\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"noConnector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n },\n \"orderBy\": {},\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 \"assignee\": \"e07db42e-eb1c-4c14-ab68-e4d245ae63a5\",\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"service\",\n \"value\": \"payments\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"noConnector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n },\n \"orderBy\": {},\n \"pagination\": {\n \"pageSize\": 10,\n \"pageToken\": \"MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==\",\n \"skip\": 20\n }\n}"
response = http.request(request)
puts response.read_body{
"cases": [
{
"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": "service",
"value": "payments"
}
],
"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"
],
"latestAlertVersion": "1eae3615-79e7-4b54-88e0-6a77def653bf",
"permutations": [
{
"permutation": {}
}
],
"triggerTime": "2025-09-22T10:30:00.000Z",
"resolveTime": "2025-09-22T11:05:00.000Z",
"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",
"lastTriggeredAt": "2025-09-22T10:30:00.000Z",
"entityLinks": [
{
"url": "https://app.coralogix.com/error-tracking/issues/abc123"
}
],
"labels": [
{
"key": "service",
"value": "payments"
}
],
"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": {},
"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": {},
"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": [
{
"breachedAt": "2025-09-22T11:00:00.000Z",
"createdAt": "2025-09-22T11:00:00.000Z",
"id": "3f166e9f-3c88-4af2-b52e-138f339dab3e"
}
]
},
"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."
}
},
"priorityDetails": {},
"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=="
}
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}Cases Service
List cases with filters
List cases using filters, pagination and custom ordering.
Requires the following permissions:
case:Read
List cases with filters
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": [
{
"assignee": "e07db42e-eb1c-4c14-ab68-e4d245ae63a5",
"unassigned": {}
}
],
"breached": [
"KPI_FILTER_NOT_BREACHED"
],
"caseLabelsFilter": {
"flatLabels": [
{
"key": "service",
"value": "payments"
}
]
},
"categories": [
"CASE_CATEGORY_SECURITY",
"CASE_CATEGORY_AVAILABILITY"
],
"connectorTypeFilters": [
{
"noConnector": {}
}
],
"groupings": [
{
"key": "service",
"values": [
"payments"
]
}
],
"indicatorTypes": [],
"labels": [
{
"key": "service",
"values": [
"payments"
]
}
],
"priorities": [
"CASE_PRIORITY_P1",
"CASE_PRIORITY_P2"
],
"statuses": [],
"textSearch": "Vulnerability"
},
"orderBy": {},
"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": [
{
"assignee": "e07db42e-eb1c-4c14-ab68-e4d245ae63a5",
"unassigned": {}
}
],
"breached": ["KPI_FILTER_NOT_BREACHED"],
"caseLabelsFilter": { "flatLabels": [
{
"key": "service",
"value": "payments"
}
] },
"categories": ["CASE_CATEGORY_SECURITY", "CASE_CATEGORY_AVAILABILITY"],
"connectorTypeFilters": [{ "noConnector": {} }],
"groupings": [
{
"key": "service",
"values": ["payments"]
}
],
"indicatorTypes": [],
"labels": [
{
"key": "service",
"values": ["payments"]
}
],
"priorities": ["CASE_PRIORITY_P1", "CASE_PRIORITY_P2"],
"statuses": [],
"textSearch": "Vulnerability"
},
"orderBy": {},
"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: [{assignee: 'e07db42e-eb1c-4c14-ab68-e4d245ae63a5', unassigned: {}}],
breached: ['KPI_FILTER_NOT_BREACHED'],
caseLabelsFilter: {flatLabels: [{key: 'service', value: 'payments'}]},
categories: ['CASE_CATEGORY_SECURITY', 'CASE_CATEGORY_AVAILABILITY'],
connectorTypeFilters: [{noConnector: {}}],
groupings: [{key: 'service', values: ['payments']}],
indicatorTypes: [],
labels: [{key: 'service', values: ['payments']}],
priorities: ['CASE_PRIORITY_P1', 'CASE_PRIORITY_P2'],
statuses: [],
textSearch: 'Vulnerability'
},
orderBy: {},
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' => [
[
'assignee' => 'e07db42e-eb1c-4c14-ab68-e4d245ae63a5',
'unassigned' => [
]
]
],
'breached' => [
'KPI_FILTER_NOT_BREACHED'
],
'caseLabelsFilter' => [
'flatLabels' => [
[
'key' => 'service',
'value' => 'payments'
]
]
],
'categories' => [
'CASE_CATEGORY_SECURITY',
'CASE_CATEGORY_AVAILABILITY'
],
'connectorTypeFilters' => [
[
'noConnector' => [
]
]
],
'groupings' => [
[
'key' => 'service',
'values' => [
'payments'
]
]
],
'indicatorTypes' => [
],
'labels' => [
[
'key' => 'service',
'values' => [
'payments'
]
]
],
'priorities' => [
'CASE_PRIORITY_P1',
'CASE_PRIORITY_P2'
],
'statuses' => [
],
'textSearch' => 'Vulnerability'
],
'orderBy' => [
],
'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 \"assignee\": \"e07db42e-eb1c-4c14-ab68-e4d245ae63a5\",\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"service\",\n \"value\": \"payments\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"noConnector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n },\n \"orderBy\": {},\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 \"assignee\": \"e07db42e-eb1c-4c14-ab68-e4d245ae63a5\",\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"service\",\n \"value\": \"payments\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"noConnector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n },\n \"orderBy\": {},\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 \"assignee\": \"e07db42e-eb1c-4c14-ab68-e4d245ae63a5\",\n \"unassigned\": {}\n }\n ],\n \"breached\": [\n \"KPI_FILTER_NOT_BREACHED\"\n ],\n \"caseLabelsFilter\": {\n \"flatLabels\": [\n {\n \"key\": \"service\",\n \"value\": \"payments\"\n }\n ]\n },\n \"categories\": [\n \"CASE_CATEGORY_SECURITY\",\n \"CASE_CATEGORY_AVAILABILITY\"\n ],\n \"connectorTypeFilters\": [\n {\n \"noConnector\": {}\n }\n ],\n \"groupings\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"indicatorTypes\": [],\n \"labels\": [\n {\n \"key\": \"service\",\n \"values\": [\n \"payments\"\n ]\n }\n ],\n \"priorities\": [\n \"CASE_PRIORITY_P1\",\n \"CASE_PRIORITY_P2\"\n ],\n \"statuses\": [],\n \"textSearch\": \"Vulnerability\"\n },\n \"orderBy\": {},\n \"pagination\": {\n \"pageSize\": 10,\n \"pageToken\": \"MjAyNS0wOS0yM1QxMjoxMTo0MC43ODcwODVaLDY5YmIxYmFiLWE1NzAtNGU5Ny04MzE2LWFkYzQxYjk2Y2QyNA==\",\n \"skip\": 20\n }\n}"
response = http.request(request)
puts response.read_body{
"cases": [
{
"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": "service",
"value": "payments"
}
],
"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"
],
"latestAlertVersion": "1eae3615-79e7-4b54-88e0-6a77def653bf",
"permutations": [
{
"permutation": {}
}
],
"triggerTime": "2025-09-22T10:30:00.000Z",
"resolveTime": "2025-09-22T11:05:00.000Z",
"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",
"lastTriggeredAt": "2025-09-22T10:30:00.000Z",
"entityLinks": [
{
"url": "https://app.coralogix.com/error-tracking/issues/abc123"
}
],
"labels": [
{
"key": "service",
"value": "payments"
}
],
"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": {},
"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": {},
"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": [
{
"breachedAt": "2025-09-22T11:00:00.000Z",
"createdAt": "2025-09-22T11:00:00.000Z",
"id": "3f166e9f-3c88-4af2-b52e-138f339dab3e"
}
]
},
"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."
}
},
"priorityDetails": {},
"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=="
}
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}Authorizations
API key authentication
Body
application/json
Request to list cases with filtering and pagination
Filters applied when querying cases, including statuses, priorities, categories, groupings, and labels.
Show child attributes
Show child attributes
Defines how cases should be sorted in the response. By default, cases are sorted by creation time and id in descending order. With this field, one can specify the primary sorting field and direction.
Show child attributes
Show child attributes
Pagination parameters for list requests.
Show child attributes
Show child attributes
Was this page helpful?
⌘I