---
title: "List all registered OTel span attribute facets."
method: GET
path: "/otel/facets"
tags: ["OTel Facets"]
---

# List all registered OTel span attribute facets.

`GET /otel/facets`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/otel/facets`
- Auth: HTTP bearer

Returns all facets registered on this platform (newest first). Since the
`spans` ClickHouse table is platform-global, facets are also platform-global.

## Response `200`

Registered facets

- FacetsResponse: Response body for facet list.
  - `data` FacetInfo[], required
    - `attribute_key` string, required: The OTel attribute key, e.g. `enduser.id` or `galachain.contract`.
    - `backend` 'clickhouse' | 'timescaledb', required: Which storage engine a facet was created against. A deployment only ever runs one backend at a time (see `plugin.rs`'s storage selection), but stamping it on each row keeps the status fields unambiguous.
    - `created_at` string, required
    - `error_message` string, nullable: Populated when `status = failed`, explaining why.
    - `rows_backfilled` integer, required: Rows backfilled so far. Only meaningful for the `timescaledb` backend — the `clickhouse` backend's mutation doesn't expose a row count until it's done, so this stays 0 there even while running.
    - `slot` integer, required: The slot column index 1..=20 (`facet_attr_N`).
    - `status` 'pending' | 'running' | 'completed' | 'failed' | 'deleting', required: Backfill/delete-clear lifecycle for a facet. See the module docs for how the poller advances a facet through these states.

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 3 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-05** `4b228ebed583`: 3 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `500` status
- **2026-10-05** `63a80791dc58`: 3 warning
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
  - removed the optional property `status` from the response with the `500` status
- **2026-09-23** `f4efc4d5c7b7`: 3 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `500` status
- **2026-09-07** `cdc1afae1752`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/otel/facets/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
