---
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

> 21 revisions in range; 15 could not be searched.

- **2026-07-31** `2b06ffce4e8d` — 2 info
  - the `endDate` request property default value changed from `1785233797467` to `1785404416524`
  - the `startDate` request property default value changed from `1784542597467` to `1784713216524`
- **2026-07-27** `3083934c152b` — 2 info
  - the `endDate` request property default value changed from `1784730369954` to `1785233797467`
  - the `startDate` request property default value changed from `1784039169954` to `1784542597467`
- **2026-07-26** `52ec5c7aff63` — 2 info
  - the `endDate` request property default value changed from `1784730396937` to `1784730369954`
  - the `startDate` request property default value changed from `1784039196937` to `1784039169954`
- **2026-07-26** `96207fe0b09c` — 2 info
  - the `endDate` request property default value changed from `1783941061374` to `1784730396937`
  - the `startDate` request property default value changed from `1783249861374` to `1784039196937`
- **2026-07-13** `1d1a98045a9e` — 2 info
  - the `endDate` request property default value changed from `1783941066130` to `1783941061374`
  - the `startDate` request property default value changed from `1783249866130` to `1783249861374`

[Change 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)
