> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quark.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# Get settings for log types

> Returns the settings of every log type that has been customised on this server, not only `log_id`. Pick the row whose `log_type` you want.

The response includes webhook credentials for log types that have their own channel. Treat it as sensitive.



## OpenAPI

````yaml /api-reference/openapi.json get /servers/{guild_id}/config/logging/settings/{log_id}
openapi: 3.1.0
info:
  title: Quark API
  version: 2.0.0
  description: Configure Quark and read your server's logs from your own code.
servers:
  - url: https://quark.bot/api
security:
  - bearerAuth: []
tags:
  - name: Configuration
    description: Read the configuration and change server settings.
  - name: Log channels
    description: Where each category of log is sent.
  - name: Logging settings
    description: Server-wide options and settings for individual log types.
  - name: Ignore options
    description: Channels, members, roles and message content left out of the logs.
  - name: Tags
    description: Saved messages posted with /tags send.
  - name: Logs
    description: Read and export the server's logs.
  - name: Notifications
    description: Recent changes to Quark's configuration.
  - name: Troubleshooting
    description: Find out why logs are missing, and fix it.
  - name: Search
    description: Look up members and channels.
  - name: Tokens
    description: List and revoke API tokens.
  - name: Server
    description: Reset the server.
paths:
  /servers/{guild_id}/config/logging/settings/{log_id}:
    get:
      tags:
        - Logging settings
      summary: Get settings for log types
      description: >-
        Returns the settings of every log type that has been customised on this
        server, not only `log_id`. Pick the row whose `log_type` you want.


        The response includes webhook credentials for log types that have their
        own channel. Treat it as sensitive.
      operationId: getLogTypeSettings
      parameters:
        - $ref: '#/components/parameters/GuildId'
        - name: log_id
          in: path
          required: true
          schema:
            type: integer
            minimum: 0
            maximum: 100
          description: A log type ID. See the log types page.
        - $ref: '#/components/parameters/Bot'
      responses:
        '200':
          description: One row per customised log type.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LogTypeSettings'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: No log type has been customised on this server.
          content:
            application/json:
              schema:
                type: object
                description: An empty object.
                example: {}
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    GuildId:
      name: guild_id
      in: path
      required: true
      schema:
        type: string
        pattern: ^\d{17,20}$
        example: '301655085954367490'
      description: The server's ID. Must be the server the token was created for.
    Bot:
      name: bot
      in: query
      required: false
      schema:
        type: string
        enum:
          - pro
      description: >-
        Set to `pro` to act on the Quark Pro bot's configuration. Leave out for
        the main Quark bot.
  schemas:
    LogTypeSettings:
      type: object
      description: >-
        Settings for one log type. A log type only has a row once one of its
        settings has been changed.
      properties:
        id:
          type: string
          pattern: ^\d{17,20}$
          example: '301655085954367490'
          description: The server ID.
        log_type:
          type: integer
          minimum: 0
          maximum: 100
          description: The log type ID. See the log types page.
        enabled:
          type: integer
          enum:
            - 0
            - 1
          description: 0 if this log type is switched off.
        log_channel:
          type:
            - string
            - 'null'
          description: >-
            The channel this log type is sent to, or null to follow its
            category.
        format_type:
          type:
            - integer
            - 'null'
          enum:
            - 0
            - 2
            - null
          description: Format override, or null to use the server-wide format.
        color:
          type:
            - integer
            - 'null'
          description: Embed colour as an integer RGB value, or null for the default.
          example: 16711748
        ignore_bot_executors:
          type:
            - integer
            - 'null'
          enum:
            - 0
            - 1
            - null
          description: >-
            1 or 0 to override the server-wide Bot Executors setting for this
            type, or null to follow it.
        ignore_bot_targets:
          type:
            - integer
            - 'null'
          enum:
            - 0
            - 1
            - null
          description: >-
            1 or 0 to override the server-wide Bot Targets setting for this
            type, or null to follow it.
        active_ignore:
          type:
            - integer
            - 'null'
          enum:
            - 0
            - 1
            - null
          description: Reserved.
        log_channel_webhook_id:
          type:
            - string
            - 'null'
          description: ID of the webhook Quark uses for this log type's own channel.
        log_channel_webhook_token:
          type:
            - string
            - 'null'
          description: Token of that webhook. Treat it as a secret.
  responses:
    Unauthorized:
      description: No token was sent.
      content:
        application/json:
          schema:
            type: object
            description: An empty object.
            example: {}
    Forbidden:
      description: The token belongs to a different server, or is not an Admin token.
      content:
        application/json:
          schema:
            type: object
            description: An empty object.
            example: {}
    RateLimited:
      description: Too many requests. Wait for the number of seconds in `Retry-After`.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait.
        X-RateLimit-Limit:
          schema:
            type: integer
        X-RateLimit-Remaining:
          schema:
            type: integer
      content:
        application/json:
          schema:
            type: object
            description: An empty object.
            example: {}
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.