Modly Modules API

The Modules API from Modly — 3 operation(s) for modules.

GitHub OpenAPI

Operations 4

GET /modules Modules with status #
GET /modules/{moduleId}/schema Get module configuration JSON Schema #
GET /modules/{moduleId}/config Get a module config #
PUT /modules/{moduleId}/config Replace a module config #

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-modules-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-modules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Modly Developer Modules 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: Modules
paths:
  /modules:
    get:
      summary: Modules with status
      description: Requires the `read:modules` scope.
      security:
      - apiKey: []
      x-required-scope: read:modules
      operationId: listModules
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ModuleSummary'
                  error:
                    type: 'null'
                  meta:
                    type: 'null'
                required:
                - success
                - data
                - error
                - meta
                additionalProperties: false
        '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:
      - Modules
  /modules/{moduleId}/schema:
    get:
      summary: Get module configuration JSON Schema
      description: Requires the `read:config` scope.
      security:
      - apiKey: []
      x-required-scope: read:config
      operationId: getModuleSchema
      parameters:
      - in: path
        name: moduleId
        schema:
          type: string
          pattern: ^[a-z][a-z0-9-]{1,30}$
          example: leveling
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    $ref: '#/components/schemas/ModuleSchema'
                  error:
                    type: 'null'
                  meta:
                    type: 'null'
                required:
                - success
                - data
                - error
                - meta
                additionalProperties: false
        '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: Unknown module (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:
      - Modules
  /modules/{moduleId}/config:
    get:
      summary: Get a module config
      description: Requires the `read:config` scope.
      security:
      - apiKey: []
      x-required-scope: read:config
      operationId: getModuleConfig
      parameters:
      - in: path
        name: moduleId
        schema:
          type: string
          pattern: ^[a-z][a-z0-9-]{1,30}$
          example: leveling
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    $ref: '#/components/schemas/ModuleConfig'
                  error:
                    type: 'null'
                  meta:
                    type: 'null'
                required:
                - success
                - data
                - error
                - meta
                additionalProperties: false
        '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: Unknown module (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:
      - Modules
    put:
      summary: Replace a module config
      description: Requires the `write:config` scope. Validates against the module's config schema, stores a new revision, writes the audit log (source `api`) and reloads the config in the bot immediately.
      security:
      - apiKey: []
      x-required-scope: write:config
      operationId: updateModuleConfig
      parameters:
      - in: path
        name: moduleId
        schema:
          type: string
          pattern: ^[a-z][a-z0-9-]{1,30}$
          example: leveling
        required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfigUpdate'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    $ref: '#/components/schemas/ModuleConfig'
                  error:
                    type: 'null'
                  meta:
                    type: 'null'
                required:
                - success
                - data
                - error
                - meta
                additionalProperties: false
        '400':
          description: Invalid JSON, invalid body or config does not match the schema (invalid_json, validation_error, invalid_config)
          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) key issuer/reference authorization failed (forbidden), or enabling a Premium module on a free server (premium_required)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Unknown module (not_found)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: expectedRevision is outdated (conflict)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '413':
          description: Body larger than 64 KiB (payload_too_large)
          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:
      - Modules
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
    ModuleSummary:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        tier:
          type: string
          enum:
          - free
          - premium
          description: Minimum tier to enable the module
        enabled:
          type: boolean
          description: Switched on (stored or default)
        availability:
          type: string
          enum:
          - enabled
          - disabled
          - premium_required
      required:
      - id
      - name
      - tier
      - enabled
      - availability
      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
    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
    ModuleSchema:
      type: object
      properties:
        moduleId:
          type: string
        schemaVersion:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        schema:
          type: object
          propertyNames:
            type: string
          additionalProperties: {}
      required:
      - moduleId
      - schemaVersion
      - schema
      additionalProperties: false
      description: JSON Schema for config input; runtime validation additionally enforces refinements
    ModuleConfig:
      type: object
      properties:
        moduleId:
          type: string
        enabled:
          type: boolean
        revision:
          type: integer
          minimum: 0
          maximum: 9007199254740991
          description: 0 = never saved; pass as expectedRevision
        schemaVersion:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        config:
          type: object
          propertyNames:
            type: string
          additionalProperties: {}
          description: Validated; missing fields filled with defaults
        valid:
          type: boolean
          description: false = stored config is invalid, defaults are active
      required:
      - moduleId
      - enabled
      - revision
      - schemaVersion
      - config
      - valid
      additionalProperties: false
    ConfigUpdate:
      type: object
      properties:
        config:
          type: object
          propertyNames:
            type: string
          additionalProperties: {}
          description: Complete config; validated against the module's config schema
        enabled:
          type: boolean
        expectedRevision:
          type: integer
          minimum: 0
          maximum: 9007199254740991
          description: 'Optimistic locking: the revision you read (0 for a never-saved config)'
      required:
      - config
      - expectedRevision
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'Authorization: Bearer mdly_…'