Modly Moderation API

The Moderation API from Modly — 1 operation(s) for moderation.

GitHub OpenAPI

Operations 1

GET /moderation/cases Moderation cases, newest first #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/modly-cc:modly-cc-moderation-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

modly-cc-moderation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Modly Developer Moderation API
  version: 1.0.0
  description: Per-server API. A server admin creates keys in the dashboard under “Developer API”; every key belongs to exactly one server. MCP is available separately at /api/mcp. All responses use the envelope `{ success, data, error, meta }`. Rate limit per key and minute (headers `X-RateLimit-*`).
servers:
- url: /api/v1
tags:
- name: Moderation
paths:
  /moderation/cases:
    get:
      summary: Moderation cases, newest first
      description: Requires the `read:moderation` scope.
      security:
      - apiKey: []
      x-required-scope: read:moderation
      operationId: getModerationCases
      parameters:
      - in: query
        name: page
        schema:
          default: 1
          type: integer
          minimum: 1
          maximum: 10000
      - in: query
        name: limit
        schema:
          default: 25
          type: integer
          minimum: 1
          maximum: 100
      - in: query
        name: targetId
        schema:
          type: string
          pattern: ^\d{17,20}$
      - in: query
        name: action
        schema:
          type: string
          enum:
          - warn
          - timeout
          - untimeout
          - kick
          - ban
          - unban
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ModerationCase'
                  error:
                    type: 'null'
                  meta:
                    $ref: '#/components/schemas/PageMeta'
                required:
                - success
                - data
                - error
                - meta
                additionalProperties: false
        '400':
          description: Invalid query (validation_error)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: Missing or invalid API key (unauthorized, invalid_key)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '403':
          description: Missing scope (insufficient_scope)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Server or module not found (not_found)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limit exceeded – per key, or per IP for requests without a valid key (rate_limited); see Retry-After
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '500':
          description: Internal error (internal)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Moderation
components:
  schemas:
    ApiError:
      type: object
      properties:
        code:
          $ref: '#/components/schemas/ApiErrorCode'
        message:
          type: string
        details:
          description: e.g. validation issues for validation_error/invalid_config
      required:
      - code
      - message
      additionalProperties: false
    ModerationCase:
      type: object
      properties:
        caseNumber:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        action:
          type: string
          enum:
          - warn
          - timeout
          - untimeout
          - kick
          - ban
          - unban
        targetId:
          type: string
        moderatorId:
          type: string
        reason:
          type:
          - string
          - 'null'
        durationSeconds:
          anyOf:
          - type: integer
            minimum: -9007199254740991
            maximum: 9007199254740991
          - type: 'null'
        expiresAt:
          anyOf:
          - type: string
            format: date-time
            pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
          - type: 'null'
        createdAt:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
        revokedAt:
          anyOf:
          - type: string
            format: date-time
            pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
          - type: 'null'
      required:
      - caseNumber
      - action
      - targetId
      - moderatorId
      - reason
      - durationSeconds
      - expiresAt
      - createdAt
      - revokedAt
      additionalProperties: false
    ApiErrorCode:
      type: string
      enum:
      - unauthorized
      - forbidden_origin
      - forbidden
      - invalid_key
      - insufficient_scope
      - rate_limited
      - not_found
      - invalid_json
      - validation_error
      - invalid_config
      - payload_too_large
      - premium_required
      - conflict
      - internal
    PageMeta:
      type: object
      properties:
        page:
          type: integer
          minimum: 1
          maximum: 9007199254740991
        limit:
          type: integer
          minimum: 1
          maximum: 9007199254740991
        total:
          type: integer
          minimum: 0
          maximum: 9007199254740991
      required:
      - page
      - limit
      - total
      additionalProperties: false
    ErrorEnvelope:
      type: object
      properties:
        success:
          type: boolean
          const: false
        data:
          type: 'null'
        error:
          $ref: '#/components/schemas/ApiError'
        meta:
          type: 'null'
      required:
      - success
      - data
      - error
      - meta
      additionalProperties: false
      description: Uniform error response
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'Authorization: Bearer mdly_…'