---
title: "Start Trace"
method: POST
path: "/api/admin/sql-traces"
tags: ["admin", "sql-traces"]
---

# Start Trace

`POST /api/admin/sql-traces`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/admin/sql-traces`
- Auth: none declared

## Request body

- StartSqlTraceBody
  - `name` string, nullable
  - `filter_path_pattern` string, nullable
  - `filter_min_duration_ms` integer, nullable
  - `explain_threshold_ms` integer, nullable
  - `max_queries` integer
  - `max_duration_seconds` integer

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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