---
title: "Toggle Slow Request Log"
method: POST
path: "/config"
tags: ["operations"]
---

# Toggle Slow Request Log

`POST /config`

Enable logging of requests that take over a defined threshold of time. Default is `-1` which disables slow request logging. Slow requests are logged to the primary log file, with the prefix SLOW REQUEST.

## Request body

- object
  - `log-slow-requests-time-ms` integer, required

## Response `200`

Toggle Slow Request Log database succeeded.

- SuccessStatus
  - `success` boolean, required

## Changes

- **2025-10-14** `3bc6fc9b6132` — 1 info
  - endpoint added
- **2022-08-04** `6c2fe01b69bc` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/typesense/apis/typesense-api/changes/config/post.md)

---

[API](https://skmtc.dev/typesense/apis/typesense-api.md) · [All operations](https://skmtc.dev/typesense/apis/typesense-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/typesense/typesense-api/revisions/1d9b3b61638e/schema)
