Try it free

List filter segments

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

List filter segments in Dynatrace with the Grail Filter Segments API, and add optional fields to include more details in the response.

GETSaaShttps://{your-environment-id}.apps.dynatrace.com/v1/filter-segments

Overview

You use add-fields to request additional fields when listing filter segments. The operation returns all filter segments and can include more details when needed, while the lean endpoint is available if you do not need description data.

Authentication

To execute this request, you need a platform token or OAuth access token with storage:filter-segments:read scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
add-fieldsstring[]

Add additional fields.

The element can hold these values
  • VARIABLES
  • EXTERNALID
  • RESOURCECONTEXT
queryOptional

Response

Response codes

CodeTypeDescription
200FilterSegments

Filter-segments successfully retrieved.

400ErrorEnvelope

bad request

401ErrorEnvelope

unauthorized

403ErrorEnvelope

missing permissions

Response body objects

The FilterSegments object

ElementTypeDescription
filterSegmentsFilterSegment[]

List of filter-segments.

The FilterSegment object

List of filter-segments.

ElementTypeDescription
allowedOperationsstring[]

Defines the allowed operations of the current user.

The element can hold these values
  • READ
  • WRITE
  • DELETE
  • SHARE
descriptionstring

Description of the filter-segment.

externalIdstring

Optional unique identifier of the filter-segment. Used for Dynatrace Configuration as Code

isPublicboolean

Indicates if the filter-segment is publicly accessible within the tenant.

isReadyMadeboolean

Indicates if the segment is ready-made.

namestring

Name of the filter-segment.

ownerstring

Defines the owner of the filter-segment.

uidstring

Unique identifier of the filter-segment.

variablesFilterSegmentVariables

Variables of the filter-segment.

versioninteger

Used for optimistic locking. Update requests define with this on which version the data updated is based on. This must match with the version stored, otherwise the update will fail due to concurrent modification.

The FilterSegmentVariables object

Variables of the filter-segment.

ElementTypeDescription
typestring

Type of the variable.

valuestring

Value of the variable.

The ErrorEnvelope object

ElementTypeDescription
errorExceptionalReturn-

The ExceptionalReturn object

ElementTypeDescription
codeinteger-
errorDetails(CustomValidationErrorInfo | InvalidAuditEventsErrorInfo | MediaTypeErrorInfo | ParameterErrorInfo | ProxyErrorInfo | QueryFrontendRawErrorInfo | RequestBodyErrorInfo)[]-
messagestring-

The CustomValidationErrorInfo object

The ErrorInfo object

ElementTypeDescription
messagestring-

The InvalidAuditEventsErrorInfo object

The MediaTypeErrorInfo object

The ParameterErrorInfo object

The ProxyErrorInfo object

The QueryFrontendRawErrorInfo object

The RequestBodyErrorInfo object

Response body JSON models

{
"filterSegments": [
{
"uid": "D82a1jdA23a",
"name": "dev_environment",
"description": "only includes data of the dev environment",
"isPublic": false,
"owner": "john.doe",
"version": 1
},
{
"uid": "aa2E2xA01yA",
"name": "prod_environment",
"description": "only includes data of the prod environment",
"isPublic": true,
"owner": "john.doe",
"version": 1
}
]
}
{
"error": {
"code": 400,
"message": "Missing request header",
"errorDetails": [
{
"type": "parameter",
"parameterDescriptor": "Dt-Tenant",
"message": "is required"
}
]
}
}
Related tags
Platform APIDynatrace Platform