Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body for POST /v3/sessions/query. Unknown fields are rejected with a 400.

application_id
string<uuid>
required

UUID of the Fiddler GenAI application.

Example:

"c688de46-2054-49ab-b85f-0f0178cb44d7"

start_time
string<date-time>
required

Start of the time range (inclusive, UTC). Must be timezone-aware and strictly before end_time. Matched against span start timestamps, so a session that began before this bound appears only if it also has spans inside the window.

Example:

"2026-03-01T00:00:00Z"

end_time
string<date-time>
required

End of the time range (exclusive, UTC). Must be timezone-aware.

Example:

"2026-03-02T00:00:00Z"

session_ids
string[] | null

Optional allow-list of session IDs. Omit or pass null to return all sessions in the window. An empty array is treated as omitted. Empty-string entries are rejected — spans with no session context are excluded from this endpoint, so "" can never match. The cap matches DELETE /v3/sessions, so the same ID list works against either endpoint; a list longer than page_size simply spans several pages.

Maximum array length: 1000

Session ID grouping related traces

Minimum string length: 1
Example:
ordering
enum<string>
default:-start_time

Sort field with an optional leading - for descending. Only start_time is supported; any other field is rejected with a 400.

Available options:
start_time,
-start_time
page_size
integer
default:50

Number of sessions per page.

Required range: 1 <= x <= 200
Example:

50

offset
integer
default:0

Zero-based offset into the result set. Deep pagination re-scans the window through a GROUP BY, so the offset is capped. Because of this cap, data.page_count in the response can advertise pages beyond what this endpoint will actually serve: page_count is ceil(total / page_size) with no awareness of the offset limit, so a large total with a small page_size can put the last page's offset past 10000. Requesting such a page returns 400, not an empty result. A client walking pages by index should stop once its next offset would exceed 10000, not once it reaches page_count.

Required range: 0 <= x <= 10000
Example:

0

Response

A paginated list of sessions matching the query

Response object for paginated API responses.

api_version
enum<string>
default:3.0

API version of the response.

Available options:
2.0,
3.0
kind
enum<string>
default:PAGINATED

Type of response, indicating a paginated response.

Available options:
PAGINATED
data
object