---
title: "Query trace IDs"
method: GET
path: "/api/v1/traces/ids"
tags: ["Traces"]
---

# Query trace IDs

`GET /api/v1/traces/ids`

## Request

- Base URL: `https://dev.noveum.ai`
- URL: `https://dev.noveum.ai/api/v1/traces/ids`
- Auth: API key in cookie `apiKeyCookie` and HTTP bearer

Query only trace IDs with optional filters and pagination. More performant than full trace query when only IDs are needed. Supports comma-separated values for filters (e.g., project=proj1,proj2) and numeric comparison operators (gt/gte/lt/lte) for duration_ms, span_count, and error_count.

## Query parameters

- `organizationId` string
- `from` number
- `size` number
- `startTime` string
- `endTime` string
- `project` string
- `environment` string
- `status` string
- `userId` string
- `sessionId` string
- `tags` string[]
- `sort` 'start_time:asc' | 'start_time:desc' | 'end_time:asc' | 'end_time:desc' | 'duration_ms:asc' | 'duration_ms:desc'
- `searchTerm` string
- `includeSpans` union
  - boolean
  - 'true' | 'false'
- `trace_id_neq` string
- `name_neq` string
- `environment_neq` string
- `user_id_neq` string
- `session_id_neq` string
- `status_neq` string
- `project_neq` string
- `service_name` string
- `service_name_neq` string
- `service_version` string
- `service_version_neq` string
- `duration_ms_gt` string
- `duration_ms_gte` string
- `duration_ms_lt` string
- `duration_ms_lte` string
- `duration_ms_eq` string
- `duration_ms_neq` string
- `span_count_gt` string
- `span_count_gte` string
- `span_count_lt` string
- `span_count_lte` string
- `span_count_eq` string
- `span_count_neq` string
- `error_count_gt` string
- `error_count_gte` string
- `error_count_lt` string
- `error_count_lte` string
- `error_count_eq` string
- `error_count_neq` string

## Response `200`

Trace IDs retrieved successfully

- object
  - `success` boolean, required
  - `trace_ids` string[], required
  - `pagination` object, required
    - `total` integer, required
    - `limit` integer
    - `offset` integer, required
    - `has_more` boolean, required
  - `processing_time_ms` number, required
  - `timestamp` string, required

## Other responses

- `201`: Created
- `400`: Invalid query parameters or missing org (session)
- `401`: Unauthorized
- `403`: Forbidden (org mismatch or access denied)
- `404`: No ClickHouse plugin found for organization
- `409`: Conflict
- `422`: Unprocessable entity
- `500`: Internal server error

---

[API](https://skmtc.dev/noveum/apis/noveum-api.md) · [All operations](https://skmtc.dev/noveum/apis/noveum-api/llms.txt) · [OpenAPI document](https://skmtc.dev/noveum/apis/noveum-api/revisions/1745e27f38d0?raw)
