---
title: "Get Trails"
method: POST
path: "/trails"
tags: ["traces", "trails"]
---

# Get Trails

`POST /trails`

## Request body

- TrailSearchPayloadSchema
  - `limit` integer
  - `page` integer
  - `startDate` integer
  - `endDate` integer
  - `userId` integer, nullable
  - `query` string, nullable
  - `action` string, nullable
  - `order` 'ASC' | 'DESC'

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-28** `34fa89a60a82` — 2 info
  - the `endDate` request property default value changed from `1787658977503` to `1788009103760`
  - the `startDate` request property default value changed from `1786967777503` to `1787317903760`
- **2026-08-25** `2fa91997c4c7` — 2 info
  - the `endDate` request property default value changed from `1787658640648` to `1787658977503`
  - the `startDate` request property default value changed from `1786967440648` to `1786967777503`
- **2026-08-24** `583196462c6d` — 2 info
  - the `endDate` request property default value changed from `1786720556620` to `1787658640648`
  - the `startDate` request property default value changed from `1786029356620` to `1786967440648`
- **2026-08-22** `427a6245315a` — 2 info
  - the `endDate` request property default value changed from `1786720539103` to `1786720556620`
  - the `startDate` request property default value changed from `1786029339102` to `1786029356620`
- **2026-08-18** `f5c2169e1add` — 2 info
  - the `endDate` request property default value changed from `1786720539885` to `1786720539103`
  - the `startDate` request property default value changed from `1786029339885` to `1786029339102`

[Full history](https://skmtc.dev/openreplay/apis/fastapi/changes/trails/post.md)

---

[API](https://skmtc.dev/openreplay/apis/fastapi.md) · [All operations](https://skmtc.dev/openreplay/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openreplay/fastapi/revisions/34fa89a60a82/schema)
