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

# List APM environments

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

Lists environments and the service namespaces with active telemetry in
the `[startTime, endTime)` window. `environment` is an optional
exact-match filter (omit to return all environments). This endpoint
does not bucket metrics, so it accepts only `startTime`/`endTime` (no
series bucketing) and returns no `redMetrics` and no `related`.

Each row's `serviceNamespaces` is the set observed for that environment,
capped at a server limit; when the full set exceeds the cap, the array
is truncated and `truncated` is true. The list is never paged separately
— pagination is on the environments axis. Services emitting no
`service.namespace` contribute nothing; the array never contains null.


# 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/environments": {
      "get": {
        "x-badges": [
          {
            "name": "beta",
            "position": "before",
            "color": "#FFCC00"
          }
        ],
        "tags": [
          "APM"
        ],
        "operationId": "ListApmEnvironments",
        "summary": "List APM environments",
        "description": "> **Beta — may change; breaking changes are coordinated with affected\n> customers. Suitable for evaluation, not production reliance.**\n\nLists environments and the service namespaces with active telemetry in\nthe `[startTime, endTime)` window. `environment` is an optional\nexact-match filter (omit to return all environments). This endpoint\ndoes not bucket metrics, so it accepts only `startTime`/`endTime` (no\nseries bucketing) and returns no `redMetrics` and no `related`.\n\nEach row's `serviceNamespaces` is the set observed for that environment,\ncapped at a server limit; when the full set exceeds the cap, the array\nis truncated and `truncated` is true. The list is never paged separately\n— pagination is on the environments axis. Services emitting no\n`service.namespace` contribute nothing; the array never contains null.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/Apm-EnvironmentParam"
          },
          {
            "$ref": "#/components/parameters/Apm-StartTimeParam"
          },
          {
            "$ref": "#/components/parameters/Apm-EndTimeParam"
          },
          {
            "$ref": "#/components/parameters/Apm-LimitParam"
          },
          {
            "$ref": "#/components/parameters/Apm-OffsetParam"
          },
          {
            "$ref": "#/components/parameters/Apm-OrderByEnvironmentsParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Environments listed successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Apm-EnvironmentsListResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Apm-ErrorResponse-400"
          },
          "401": {
            "description": "Unauthorized — missing or invalid credentials (platform auth layer; body conforms to Apm-Error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Apm-Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden — caller lacks permission for this resource (body conforms to Apm-Error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Apm-Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found — unrecognized route (body conforms to Apm-Error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Apm-Error"
                }
              }
            }
          },
          "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": {
      "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"
        ]
      },
      "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-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-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"
              }
            }
          }
        ]
      },
      "Apm-EnvironmentEntry": {
        "title": "ApmEnvironmentEntry",
        "type": "object",
        "description": "One environment + the service namespaces observed in it.",
        "required": [
          "environment",
          "serviceNamespaces",
          "truncated"
        ],
        "properties": {
          "environment": {
            "type": "string"
          },
          "serviceNamespaces": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "truncated": {
            "type": "boolean",
            "description": "True when serviceNamespaces was capped at the server limit and the\nfull set for this environment is larger than the array returned.\nserviceNamespaces is never paged; this flag signals truncation.\n"
          }
        },
        "additionalProperties": false
      },
      "Apm-EnvironmentsListResponse": {
        "title": "ApmEnvironmentsListResponse",
        "type": "object",
        "description": "Response envelope for GET /v1/apm/environments. `interval` echoes the\nserver-resolved query window. Pagination is on the environments axis\n— `serviceNamespaces` is the complete list per environment, never paged.\n",
        "required": [
          "interval",
          "environments",
          "meta"
        ],
        "properties": {
          "interval": {
            "$ref": "#/components/schemas/Apm-Interval"
          },
          "environments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Apm-EnvironmentEntry"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/Apm-Meta"
          }
        },
        "additionalProperties": false
      }
    },
    "parameters": {
      "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-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-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-OrderByEnvironmentsParam": {
        "name": "orderBy",
        "in": "query",
        "description": "Sort key (single key; leading `-` for descending).\nDefault: `environment`. Allowed: `environment` (and `-environment`).\nTies are broken by `environment` ascending (the primary key, so ties\nacross rows are impossible — each environment appears once).\n",
        "schema": {
          "type": "string",
          "default": "environment",
          "enum": [
            "environment",
            "-environment"
          ]
        }
      }
    },
    "responses": {
      "Apm-ErrorResponse-400": {
        "description": "Bad request (BadRequest, RequiredParamMissing, InvalidTimestamp, OutOfAcceleratedRange, NotConfigured).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Apm-Error"
            }
          }
        }
      },
      "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"
            }
          }
        }
      }
    }
  }
}
````