Skip to main content
Get available filter values
curl --request POST \
  --url https://api.coralogix.com/mgmt/openapi/5/cases/filter-values/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"
      }
    ],
    "breached": [
      "KPI_FILTER_NOT_BREACHED"
    ],
    "caseLabelsFilter": {
      "flatLabels": [
        {
          "key": "service",
          "value": "payments"
        }
      ]
    },
    "categories": [
      "CASE_CATEGORY_SECURITY",
      "CASE_CATEGORY_AVAILABILITY"
    ],
    "connectorTypeFilters": [
      {}
    ],
    "groupings": [
      {
        "key": "service",
        "values": [
          "payments"
        ]
      }
    ],
    "labels": [
      {
        "key": "service",
        "values": [
          "payments"
        ]
      }
    ],
    "priorities": [
      "CASE_PRIORITY_P1",
      "CASE_PRIORITY_P2"
    ],
    "statuses": [],
    "textSearch": "Vulnerability"
  }
}
'
{
  "alertIdAggregations": [
    {
      "alertId": "f56645c5-9cd4-4b9f-961f-4f852d8835a0",
      "count": 5
    }
  ],
  "categoryAggregations": [
    {
      "count": 13
    }
  ],
  "flatLabelsAggregation": [
    {
      "count": 123,
      "filter": {
        "key": "service",
        "value": "payments"
      }
    }
  ],
  "groupingAggregations": [
    {
      "valueCounts": [
        {
          "count": 8,
          "value": "service:payments"
        }
      ],
      "key": "service"
    }
  ],
  "labelAggregations": [
    {
      "valueCounts": [
        {
          "count": 8,
          "value": "service:payments"
        }
      ],
      "key": "service"
    }
  ],
  "priorityAggregations": [
    {
      "count": 17
    }
  ],
  "statusAggregations": [
    {
      "count": 123
    }
  ],
  "assigneeAggregations": {
    "assignedCounts": [
      {
        "assignee": "<string>",
        "count": 123
      }
    ],
    "unassignedCount": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.coralogix.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

Request to retrieve available filter and aggregation values for cases.

filters
Case filters · object

Filters applied when querying cases, including statuses, priorities, categories, groupings, and labels.

Response

Aggregated counts for building filters in the UI

alertIdAggregations
Alert ID aggregation · object[]
required

Aggregated case counts per alert definition ID. Only populated when alert_filters is provided in the request.

Maximum array length: 1000
categoryAggregations
Category aggregation · object[]
required

Aggregated case counts grouped by category.

Maximum array length: 1000
flatLabelsAggregation
Filter aggregation · object[]
required

Aggregated case counts grouped by individual flat label key/value pairs.

Maximum array length: 1000
groupingAggregations
Filter group aggregation · object[]
required

Aggregated case counts grouped by grouping key/value pairs.

Maximum array length: 1000
labelAggregations
Filter group aggregation · object[]
required

Aggregated case counts grouped by label key/value pairs.

Maximum array length: 1000
priorityAggregations
Priority aggregation · object[]
required

Aggregated case counts grouped by priority.

Maximum array length: 1000
statusAggregations
Status aggregation · object[]
required

Aggregated case counts grouped by status.

Maximum array length: 1000
assigneeAggregations
Assignee aggregation · object

Case counts broken down by assignee plus the count of unassigned cases.