---
updatedAt: 2026-09-08T20:26:09.000Z
agentTools:
  projectIndex: https://docs.observeinc.com/llms.txt
---

# List APM services with RED metrics

> **Beta — may change; breaking changes are coordinated with affected
> customers. Suitable for evaluation, not production reliance.**

Lists services, one row per service, each carrying a closed RED metrics
snapshot under `redMetrics`. Filters are exact-match on `serviceName`,
`environment`, `serviceNamespace`, and `serviceType`; an omitted filter
matches every value of that dimension. Omit `serviceType` to return
every catalog type (`Service`, `Database`, `Messaging`). External
values are not catalog types (`400`).
When `serviceType` is omitted and
`serviceName` is set, the name matches `service.name` OR `peer.db.name`
OR `peer.messaging.system`.

When `expand=true`, each row's `redMetrics.series[]` additionally
carries a per-bucket time series across the query window; read the
bucket cadence from the spacing between consecutive
`series[].timestamp`. When `expand` is false or omitted, `series` is
absent (not `null`, not an empty array).

Zero matches return `200` with `services: []` and `meta.totalCount: 0`.
`meta.totalCount` is `-1` when an exact count is too expensive to
compute; in that case paginate by advancing `offset` until a page
shorter than `limit` is returned.

Response size grows with the number of rows on the page and, when
`expand=true`, with the number of series points per row. A wide window
combined with `expand=true` can therefore make a single page exceed the
server response-size limit and return `413 PayloadTooLarge`. Recover by
narrowing the time window or requesting a smaller `limit`. `limit` is
never rejected for being too large: it is clamped to its maximum
server-side, and to a lower maximum when `expand=true`.


# OpenAPI definition

````json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Observe by Snowflake API",
    "description": "# Overview\nWelcome to the Observe API Docs!\n\nThe Observe API is a RESTful API. POST bodies and responses are typically JSON-encoded.\n\n## Authentication\nRequests to the Observe API are authenticated with an API token. The token can be supplied using HTTP Bearer authentication:\n```\n// passing token as bearer token\ncurl -H \"Authorization: Bearer <customerid> <token>\" https://<customerid>.<observe-domain>.com/v1/...\n```\n",
    "version": "1.0.230307"
  },
  "servers": [
    {
      "url": "https://{customerid}.observeinc.com",
      "description": "US west server",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        }
      }
    },
    {
      "url": "https://{customerid}.{cluster}.observeinc.com",
      "description": "Specific regional cluster (prod)",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        },
        "cluster": {
          "enum": [
            "eu-1",
            "ap-1"
          ],
          "default": "eu-1",
          "description": "For regional clusters, choose one."
        }
      }
    },
    {
      "url": "https://{customerid}.{domain}.com",
      "description": "Specific Observe server",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        },
        "domain": {
          "default": "OBSERVE_DOMAIN",
          "description": "The Observe domain for your instance."
        }
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v1/apm/services": {
      "get": {
        "x-badges": [
          {
            "name": "beta",
            "position": "before",
            "color": "#FFCC00"
          }
        ],
        "tags": [
          "APM"
        ],
        "operationId": "ListApmServices",
        "summary": "List APM services with RED metrics",
        "description": "> **Beta — may change; breaking changes are coordinated with affected\n> customers. Suitable for evaluation, not production reliance.**\n\nLists services, one row per service, each carrying a closed RED metrics\nsnapshot under `redMetrics`. Filters are exact-match on `serviceName`,\n`environment`, `serviceNamespace`, and `serviceType`; an omitted filter\nmatches every value of that dimension. Omit `serviceType` to return\nevery catalog type (`Service`, `Database`, `Messaging`). External\nvalues are not catalog types (`400`).\nWhen `serviceType` is omitted and\n`serviceName` is set, the name matches `service.name` OR `peer.db.name`\nOR `peer.messaging.system`.\n\nWhen `expand=true`, each row's `redMetrics.series[]` additionally\ncarries a per-bucket time series across the query window; read the\nbucket cadence from the spacing between consecutive\n`series[].timestamp`. When `expand` is false or omitted, `series` is\nabsent (not `null`, not an empty array).\n\nZero matches return `200` with `services: []` and `meta.totalCount: 0`.\n`meta.totalCount` is `-1` when an exact count is too expensive to\ncompute; in that case paginate by advancing `offset` until a page\nshorter than `limit` is returned.\n\nResponse size grows with the number of rows on the page and, when\n`expand=true`, with the number of series points per row. A wide window\ncombined with `expand=true` can therefore make a single page exceed the\nserver response-size limit and return `413 PayloadTooLarge`. Recover by\nnarrowing the time window or requesting a smaller `limit`. `limit` is\nnever rejected for being too large: it is clamped to its maximum\nserver-side, and to a lower maximum when `expand=true`.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/Apm-ServiceNameParam"
          },
          {
            "$ref": "#/components/parameters/Apm-EnvironmentParam"
          },
          {
            "$ref": "#/components/parameters/Apm-ServiceNamespaceParam"
          },
          {
            "$ref": "#/components/parameters/Apm-CatalogServiceTypeParam"
          },
          {
            "$ref": "#/components/parameters/Apm-StartTimeParam"
          },
          {
            "$ref": "#/components/parameters/Apm-EndTimeParam"
          },
          {
            "$ref": "#/components/parameters/Apm-ExpandParam"
          },
          {
            "$ref": "#/components/parameters/Apm-LimitParam"
          },
          {
            "$ref": "#/components/parameters/Apm-OffsetParam"
          },
          {
            "$ref": "#/components/parameters/Apm-OrderByServicesParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Services listed successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Apm-ServicesListResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Apm-ErrorResponse-400"
          },
          "401": {
            "$ref": "#/components/responses/Apm-ErrorResponse-401"
          },
          "403": {
            "$ref": "#/components/responses/Apm-ErrorResponse-403"
          },
          "404": {
            "$ref": "#/components/responses/Apm-ErrorResponse-404"
          },
          "413": {
            "$ref": "#/components/responses/Apm-ErrorResponse-413"
          },
          "500": {
            "$ref": "#/components/responses/Apm-ErrorResponse-500"
          },
          "504": {
            "$ref": "#/components/responses/Apm-ErrorResponse-504"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Authorization: Bearer <customerid> <apitoken>\n"
      }
    },
    "schemas": {
      "ObjectId": {
        "type": "string",
        "format": "ObjectId"
      },
      "ErrorMessage": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "A stable, machine-readable identifier for the kind of error."
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        },
        "required": [
          "type",
          "message"
        ]
      },
      "DatasetContentType": {
        "title": "DatasetContentType",
        "type": "string",
        "description": "The type of data a dataset contains. For Resource datasets, this is\ndetermined by the dataset kind. For other kinds, it is derived from the\ndataset's interface bindings. Returns Unknown if no recognized interface\nis found.\n",
        "enum": [
          "Unknown",
          "Resource",
          "Log",
          "Metric",
          "OTelSpan",
          "OTelTrace"
        ]
      },
      "DatasetBrief": {
        "title": "DatasetBrief",
        "type": "object",
        "description": "Brief record fields for a DatasetRef (label, description, iconUrl, contentType). Field naming mirrors ObjectBrief in this same file (iconUrl, not icon) for consistency across reference-brief pairs.\n",
        "required": [
          "label",
          "description",
          "iconUrl",
          "contentType"
        ],
        "properties": {
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "iconUrl": {
            "type": "string"
          },
          "contentType": {
            "$ref": "#/components/schemas/DatasetContentType",
            "description": "The type of data the referenced dataset contains — Resource, Log,\nMetric, OTelSpan, OTelTrace, or Unknown. Derived from the dataset's\nkind and interface bindings.\n"
          }
        }
      },
      "DatasetRef": {
        "title": "DatasetRef",
        "type": "object",
        "description": "A reference to a dataset. Always carries the id; the optional `record` field carries the brief metadata, populated when expand=true. Mirrors ObjectRef (see ObjectRef / ObjectBrief in this file).\n",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ObjectId"
          },
          "record": {
            "$ref": "#/components/schemas/DatasetBrief"
          }
        }
      },
      "Apm-Interval": {
        "title": "ApmInterval",
        "type": "object",
        "description": "A `[startTime, endTime)` half-open window. Used both as the per-record\ntime slice on `MetricsRecord` and as the response-level executed-window\necho. RFC3339, startTime inclusive, endTime exclusive.\n",
        "required": [
          "startTime",
          "endTime"
        ],
        "properties": {
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Apm-ServiceType": {
        "title": "ApmServiceType",
        "type": "string",
        "description": "Kind of service. Each value selects the correlation tag that holds the\nservice name, which is the tag to filter on:\n\n- `Service` → `service.name`\n- `Database` → `peer.db.name`\n- `Messaging` → `peer.messaging.system`\n- `ExternalCall` → `peer.server.address` (uninstrumented hosts)\n\nWhen more than one key is present, precedence is `Service` >\n`Database` > `Messaging` > `ExternalCall`. When `type` is null (unknown\ncatalog type), use `service.name`.\n",
        "enum": [
          "Service",
          "Database",
          "Messaging",
          "ExternalCall"
        ]
      },
      "Apm-ServiceIdentity": {
        "title": "ApmServiceIdentity",
        "type": "object",
        "description": "Shared OTel service identity fields for APM graph nodes and invocation\nparticipants.\n",
        "required": [
          "serviceName",
          "environment",
          "serviceNamespace",
          "type",
          "language"
        ],
        "properties": {
          "serviceName": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "serviceNamespace": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Apm-ServiceType"
              },
              {
                "type": "null"
              }
            ]
          },
          "language": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Apm-MetricsRecordPoint": {
        "title": "ApmMetricsRecordPoint",
        "type": "object",
        "description": "One bucket inside MetricsRecord.series. timestamp = bucket start.",
        "required": [
          "timestamp",
          "invocationRatePerSecond",
          "errorRatePerSecond",
          "durationP95Seconds"
        ],
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "invocationRatePerSecond": {
            "type": [
              "number",
              "null"
            ]
          },
          "errorRatePerSecond": {
            "type": [
              "number",
              "null"
            ]
          },
          "durationP95Seconds": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "additionalProperties": false
      },
      "Apm-MetricsRecord": {
        "title": "ApmMetricsRecord",
        "type": "object",
        "description": "Closed RED carrier: invocationRatePerSecond, errorRatePerSecond,\ndurationP95Seconds. `series[]` is opt-in via expand=true on\n/v1/apm/services only.\n",
        "required": [
          "interval",
          "invocationRatePerSecond",
          "errorRatePerSecond",
          "durationP95Seconds"
        ],
        "properties": {
          "interval": {
            "$ref": "#/components/schemas/Apm-Interval"
          },
          "invocationRatePerSecond": {
            "type": [
              "number",
              "null"
            ]
          },
          "errorRatePerSecond": {
            "type": [
              "number",
              "null"
            ]
          },
          "durationP95Seconds": {
            "type": [
              "number",
              "null"
            ]
          },
          "series": {
            "type": "array",
            "description": "Per-bucket points over the same interval. Populated only when the\nendpoint documents an expand=true opt-in (see /v1/apm/services).\nAbsent on every other endpoint.\n",
            "items": {
              "$ref": "#/components/schemas/Apm-MetricsRecordPoint"
            }
          }
        },
        "additionalProperties": false
      },
      "Apm-MetricRef": {
        "title": "ApmMetricRef",
        "type": "object",
        "description": "One queryable metric on Service.related.metrics. Names are the RED\nmetrics used for this row (call count, error count, duration). Every\nentry shares the same `attributeMapping` as `related.correlationTags`.\nPick the `serviceName` dimension from `Service.type`: `Service` →\n`service.name`, `Database` → `peer.db.name`, `Messaging` →\n`peer.messaging.system`, `ExternalCall` → `peer.server.address`.\nPrecedence is `Service` > `Database` > `Messaging` > `ExternalCall`.\nWhen `type` is null, use `service.name`.\n",
        "required": [
          "metricName",
          "dataset",
          "attributeMapping"
        ],
        "properties": {
          "metricName": {
            "type": "string"
          },
          "dataset": {
            "$ref": "#/components/schemas/DatasetRef"
          },
          "attributeMapping": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "additionalProperties": false
      },
      "Apm-ServiceRelated": {
        "title": "ApmServiceRelated",
        "type": "object",
        "description": "Per-row correlation hints on Service. Always present; `metrics` may be\n`[]`. `correlationTags` maps Service fields to the attribute keys to\nfilter with:\n\n- `serviceName`: `service.name`, `peer.db.name`, `peer.messaging.system`,\n  `peer.server.address`\n- `environment`: `deployment.environment.name`\n- `serviceNamespace`: `service.namespace`\n\nThese are attribute keys, not dataset column names. Use `Service.type`\nto pick the `serviceName` key to filter on: `Service` →\n`service.name`, `Database` → `peer.db.name`, `Messaging` →\n`peer.messaging.system`, `ExternalCall` → `peer.server.address`.\nPrecedence is `Service` > `Database` > `Messaging` > `ExternalCall`.\nWhen `type` is null, use `service.name`. `environment` and\n`serviceNamespace` apply to every type.\n",
        "required": [
          "correlationTags",
          "metrics"
        ],
        "properties": {
          "correlationTags": {
            "type": "object",
            "description": "Service field name → attribute keys to filter with. v1 always\nreturns the three keys above. Pick `serviceName` by `Service.type`\n(see parent description).\n",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "metrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Apm-MetricRef"
            }
          }
        },
        "additionalProperties": false
      },
      "Apm-Service": {
        "title": "ApmService",
        "description": "Service identity (OTel compound key) + RED snapshot under redMetrics +\nper-row related hints. ServiceInvocation uses `metrics` (not\n`redMetrics`) for the same MetricsRecord type — intentional asymmetry.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/Apm-ServiceIdentity"
          },
          {
            "type": "object",
            "required": [
              "redMetrics",
              "related"
            ],
            "properties": {
              "serviceNamespace": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "type": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Apm-ServiceType"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "language": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "redMetrics": {
                "$ref": "#/components/schemas/Apm-MetricsRecord"
              },
              "related": {
                "$ref": "#/components/schemas/Apm-ServiceRelated"
              }
            }
          }
        ]
      },
      "Apm-Meta": {
        "title": "ApmMeta",
        "type": "object",
        "description": "APM list-response meta. Extends platform Meta (totalCount only) with\nlimit and offset echoed from the request. A totalCount of -1 means the\nexact count is unknown (too expensive to compute); in that case paginate\nby advancing offset until a short page (len(items) < limit) is returned.\n",
        "required": [
          "totalCount",
          "limit",
          "offset"
        ],
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int64"
          },
          "limit": {
            "type": "integer",
            "format": "int64"
          },
          "offset": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "Apm-ServicesListResponse": {
        "title": "ApmServicesListResponse",
        "type": "object",
        "description": "Response envelope for GET /v1/apm/services. `interval` echoes the\nserver-resolved query window. `meta.totalCount` is `-1` when unknown.\n",
        "required": [
          "interval",
          "services",
          "meta"
        ],
        "properties": {
          "interval": {
            "$ref": "#/components/schemas/Apm-Interval"
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Apm-Service"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/Apm-Meta"
          }
        },
        "additionalProperties": false
      },
      "Apm-ErrorType": {
        "title": "ApmErrorType",
        "type": "string",
        "description": "Stable, machine-readable APM error category.\n\n- `BadRequest`: the request is malformed or otherwise the caller's\n  doing (inverted time window, canceled request, invalid filter).\n- `RequiredParamMissing`: a required parameter was omitted or passed\n  empty.\n- `InvalidTimestamp`: a time bound is not a valid RFC3339 timestamp.\n- `OutOfAcceleratedRange`: the requested window starts before this\n  account's accelerated telemetry is available. `acceleratedFrom` is\n  the earliest recoverable timestamp.\n- `NotConfigured`: an account/config state, not a malformed request\n  and not a server fault. The tracing-content dataset an APM read\n  needs has not been installed (or has not yet been discovered) for\n  this account. Retrying will not help until that dataset exists.\n- `PayloadTooLarge`: the result exceeds a server-enforced size cap\n  (for example the invocation graph's edge limit). Narrow the window\n  or supply a focal identity.\n- `TimedOut`: the query exceeded its time budget.\n- `InternalError`: an unexpected server failure.\n",
        "enum": [
          "BadRequest",
          "RequiredParamMissing",
          "InvalidTimestamp",
          "OutOfAcceleratedRange",
          "NotConfigured",
          "PayloadTooLarge",
          "TimedOut",
          "InternalError"
        ]
      },
      "Apm-Error": {
        "title": "ApmError",
        "description": "APM error envelope. Extends the platform error (type + message) with a\nclosed `type` enum (see Apm-ErrorType). On OutOfAcceleratedRange,\nacceleratedFrom is the recovery timestamp.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/ErrorMessage"
          },
          {
            "type": "object",
            "required": [
              "type",
              "message"
            ],
            "properties": {
              "type": {
                "$ref": "#/components/schemas/Apm-ErrorType"
              },
              "acceleratedFrom": {
                "type": "string",
                "format": "date-time",
                "description": "Earliest moment for which telemetry is available on this account.\nPresent only on type=OutOfAcceleratedRange.\n"
              }
            }
          }
        ]
      }
    },
    "parameters": {
      "Apm-ServiceNameParam": {
        "name": "serviceName",
        "in": "query",
        "description": "OTel service.name. Single-value exact-match filter; omit (or pass an\nempty value) to match services with any service.name.\n",
        "schema": {
          "type": "string"
        }
      },
      "Apm-EnvironmentParam": {
        "name": "environment",
        "in": "query",
        "description": "OTel deployment.environment. Single-value exact-match filter; omit (or\npass an empty value) to match services in any environment.\n",
        "schema": {
          "type": "string"
        }
      },
      "Apm-ServiceNamespaceParam": {
        "name": "serviceNamespace",
        "in": "query",
        "description": "OTel service.namespace. Single-value exact-match filter; omit (or pass\nan empty value) to match services in any namespace.\n",
        "schema": {
          "type": "string"
        }
      },
      "Apm-CatalogServiceTypeParam": {
        "name": "serviceType",
        "in": "query",
        "description": "Single-value exact-match catalog type filter for health and\n`/v1/apm/services`. Omit (or pass an empty value) to match every catalog\ntype. Allowed values are `Service`, `Database`, and `Messaging`;\n`MessageBroker` and `Message Broker` are accepted as aliases for\n`Messaging`. `All`, external types, and unknown values are not accepted\n(`400`).\n",
        "schema": {
          "type": "string"
        }
      },
      "Apm-StartTimeParam": {
        "name": "startTime",
        "in": "query",
        "description": "RFC3339 window start (inclusive). The query window is `[startTime,\nendTime)`. The two bounds are independent: omit `startTime` and it\ndefaults to `endTime − 1h`; omit `endTime` and it defaults to now;\nomit both for the last hour. `startTime` must be earlier than\n`endTime`, otherwise `BadRequest`.\n",
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      },
      "Apm-EndTimeParam": {
        "name": "endTime",
        "in": "query",
        "description": "RFC3339 window end (exclusive). Defaults to now when omitted. Pairs with\n`startTime` to form the `[startTime, endTime)` window; see `startTime`\nfor the full defaulting rule.\n",
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      },
      "Apm-ExpandParam": {
        "name": "expand",
        "in": "query",
        "description": "Endpoint-specific opt-in. On /v1/apm/services, expand=true populates\nredMetrics.series[] on every row.\n",
        "schema": {
          "type": "boolean",
          "default": false
        }
      },
      "Apm-LimitParam": {
        "name": "limit",
        "in": "query",
        "description": "Max items per page. Default 100, range [1, 100000].",
        "schema": {
          "type": "integer",
          "format": "int64",
          "default": 100,
          "minimum": 1,
          "maximum": 100000
        }
      },
      "Apm-OffsetParam": {
        "name": "offset",
        "in": "query",
        "description": "Items to skip before the page starts. Default 0.",
        "schema": {
          "type": "integer",
          "format": "int64",
          "default": 0,
          "minimum": 0
        }
      },
      "Apm-OrderByServicesParam": {
        "name": "orderBy",
        "in": "query",
        "description": "Sort key (single key; leading `-` for descending).\nDefault: `serviceName`. Allowed: `serviceName`, `environment`,\n`serviceNamespace`, `invocationRatePerSecond`, `errorRatePerSecond`,\n`durationP95Seconds` (and their `-` descending forms). Sorts on\nrow-level scalars only — does not affect series order. Ties on the\nprimary key are broken by `serviceName` ascending for deterministic\npagination.\n",
        "schema": {
          "type": "string",
          "default": "serviceName",
          "enum": [
            "serviceName",
            "-serviceName",
            "environment",
            "-environment",
            "serviceNamespace",
            "-serviceNamespace",
            "invocationRatePerSecond",
            "-invocationRatePerSecond",
            "errorRatePerSecond",
            "-errorRatePerSecond",
            "durationP95Seconds",
            "-durationP95Seconds"
          ]
        }
      }
    },
    "responses": {
      "Apm-ErrorResponse-400": {
        "description": "Bad request (BadRequest, RequiredParamMissing, InvalidTimestamp, OutOfAcceleratedRange, NotConfigured).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Apm-Error"
            }
          }
        }
      },
      "Apm-ErrorResponse-401": {
        "description": "Unauthorized — missing or invalid credentials.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "Apm-ErrorResponse-403": {
        "description": "Forbidden — the caller lacks permission for this resource.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "Apm-ErrorResponse-404": {
        "description": "Not found.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "Apm-ErrorResponse-413": {
        "description": "Payload too large (PayloadTooLarge).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Apm-Error"
            }
          }
        }
      },
      "Apm-ErrorResponse-500": {
        "description": "Internal server error (InternalError).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Apm-Error"
            }
          }
        }
      },
      "Apm-ErrorResponse-504": {
        "description": "Query timed out (TimedOut).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Apm-Error"
            }
          }
        }
      }
    }
  }
}
````