> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squasher.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Dimensions API

> Find services, environments, and recent hosts and containers from project telemetry.

The Dimensions API lists values seen in logs, metrics, or traces. Both operations need the `errors:read` scope.

| Operation | Method and path |
| - | - |
| `dimensions.list` | `GET /v1/projects/{project_id}/dimensions` |
| `dimensions.values` | `GET /v1/projects/{project_id}/dimensions/{key}/values` |

The available keys are `service`, `environment`, `host`, and `container`. Values are project-wide.
Service and environment use the full window. Host and container choices use the last two
effective hours at most. Hosts come from `system.memory.utilization` and containers come from
`container.memory.usage.total`. The sample checks resource attributes first, then point attributes.
A host or container can have data in the dashboard window and still be absent from this sample.
Kubernetes discovery is unavailable.

Both endpoints accept ISO 8601 `from` and `to` timestamps. The default window is the last 24 hours, and the maximum window is 30 days. `limit` is the maximum number of values per key, from 1 to 200 (default 100). The values endpoint also accepts `q`, a case-insensitive substring of up to 200 characters.

The list response has one array per key in `data` and an array of keys with more values in `truncated`. The values response has a single `data` array and a boolean `truncated`. Both responses include the effective `from` and `to`. Discovery uses hour buckets: the bounds round out to include partial hours, and the end bound is exclusive. The host and container samples appear in `partial` on the list or as `partial: true` on the values response. A missing source appears in `unavailable` on the list or as `available: false` on the values response. Each row contains `value`, the observed `signals` (`logs`, `metrics`, or `traces`), and the latest observed timestamp, `last_seen`.

```bash theme={null}
squasher dimensions list --project "$SQUASHER_PROJECT_ID"
squasher dimensions values host --project "$SQUASHER_PROJECT_ID" --query web
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.