---
title: "Get log channels"
method: GET
path: "/servers/{guild_id}/config/logging/channels"
tags: ["Log channels"]
---

# Get log channels

`GET /servers/{guild_id}/config/logging/channels`

## Request

- Base URL: `https://quark.bot/api`
- URL: `https://quark.bot/api/servers/{guild_id}/config/logging/channels`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/quark-bot-discord/apis/quark-api/docs/servers/:guild_id/config/logging/channels/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the channel each category of log is sent to.

## Path parameters

- `guild_id` string, required

## Query parameters

- `bot` 'pro'

## Response `200`

One row.

- LogChannels[]
  - `id` string: The server ID.
  - `main_channel` string, nullable: The main log channel. A channel ID, `"0"` if switched off, or null if not set.
  - `category_modlog` string, nullable: Modlogs. A channel ID, `"0"` if switched off, or null if not set.
  - `category_members` string, nullable: Members. A channel ID, `"0"` if switched off, or null if not set.
  - `category_actions` string, nullable: Actions. A channel ID, `"0"` if switched off, or null if not set.
  - `category_text` string, nullable: Messages. A channel ID, `"0"` if switched off, or null if not set.
  - `category_voice` string, nullable: Voice. A channel ID, `"0"` if switched off, or null if not set.
  - `category_files` string, nullable: Files (deleted attachments). A channel ID, or null to follow the Messages category and then the main channel.
  - `category_nsfw` string, nullable: Age-restricted. The channel for message logs from age-restricted channels. A channel ID, or null when it is not set and those logs go wherever Messages logs go.
  - `category_server` string, nullable: Server. A channel ID, `"0"` if switched off, or null if not set.
  - `category_roles` string, nullable: Roles. A channel ID, `"0"` if switched off, or null if not set.
  - `category_channels` string, nullable: Channels. A channel ID, `"0"` if switched off, or null if not set.
  - `category_quark` string, nullable: Quark Events. A channel ID, `"0"` if switched off, or null if not set.

## Other responses

- `401`: No token was sent, or the token is not valid: malformed, expired or revoked. A token sent with a scheme other than `Bearer` is refused too.
- `403`: The token belongs to a different server, or is not an Admin token.
- `404`: No log channels are stored for this server.
- `429`: Too many requests. Wait for the number of seconds in `Retry-After`.

## Changes

- **2026-10-05** `dac8d050ac15`: 1 info
  - added the optional property `items/category_nsfw` to the response with the `200` status
- **2026-10-05** `ef32257db0c5`: 1 warning
  - removed the optional property `items/category_nsfw` from the response with the `200` status
- **2026-10-05** `b252c7983e10`: 1 info
  - added the optional property `items/category_nsfw` to the response with the `200` status
- **2026-10-02** `16860ec3ac6f`: 1 breaking, 9 info
  - added the pattern `^\d{17,20}$` to the `path` request parameter `guild_id`
  - api operation id `getLogChannels` was added
  - api tag `Log channels` added
  - api tag `Config` removed
  - …6 more
- **2026-05-10** `d5ca330720b5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/quark-bot-discord/apis/quark-api/changes/servers/:guild_id/config/logging/channels/get.md)

---

[API](https://skmtc.dev/quark-bot-discord/apis/quark-api.md) - [All operations](https://skmtc.dev/quark-bot-discord/apis/quark-api/llms.txt) - [OpenAPI document](https://skmtc.dev/quark-bot-discord/apis/quark-api/revisions/53696c705ecb?raw)
