---
title: "Toggle voice debug logging"
method: PUT
path: "/channels/{channel_id}/voice-debug-logging/session"
tags: ["Channels"]
---

# Toggle voice debug logging

`PUT /channels/{channel_id}/voice-debug-logging/session`

Allows staff to start or stop a channel-scoped voice debug logging session. Non-staff users cannot activate or stop sessions.

## Path parameters

- `channel_id` string, snowflake, required

## Request body

- VoiceDebugLoggingToggleBodySchema
  - `enabled` boolean, required — Whether voice debug logging should be active for this channel
  - `duration_ms` integer — Optional activation duration in milliseconds. Defaults to one hour and is capped at four hours.

## Response `200`

Success

- VoiceDebugLoggingStatusResponse
  - `active` boolean, required — Whether clients in this channel should currently send voice diagnostics
  - `session_id` string, nullable, required — Current debug logging session id, if active
  - `activated_by_user_id` string, snowflake, required
  - `started_at_ms` integer, nullable, required — Session start Unix timestamp in milliseconds
  - `expires_at_ms` integer, nullable, required — Session expiration Unix timestamp in milliseconds
  - `poll_interval_ms` integer, required — Recommended client polling interval in milliseconds
  - `upload_interval_ms` integer, required — Recommended client telemetry batch upload interval in milliseconds

## Other responses

- `400` — Bad Request - The request was malformed or contained invalid data
- `401` — Unauthorized - Authentication is required or the token is invalid
- `403` — Forbidden - You do not have permission to perform this action
- `429` — Too Many Requests - You are being rate limited
- `500` — Internal Server Error - An unexpected error occurred

---

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