---
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-09-02** `cfc35d5f05e2` — 2 info
  - the `endDate` request property default value changed from `1788009018605` to `1788009104663`
  - the `startDate` request property default value changed from `1787317818605` to `1787317904663`
- **2026-08-31** `9090613b9446` — 2 info
  - the `endDate` request property default value changed from `1788009019191` to `1788009018605`
  - the `startDate` request property default value changed from `1787317819191` to `1787317818605`
- **2026-08-31** `6e16a27951c3` — 2 info
  - the `endDate` request property default value changed from `1788009103760` to `1788009019191`
  - the `startDate` request property default value changed from `1787317903760` to `1787317819191`
- **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`

[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/cfc35d5f05e2/schema)
