EpicDirectories comments (admin) API

The comments (admin) API from EpicDirectories — 5 operation(s) for comments (admin).

Operations 5

GET /v1/directories/{directoryId}/comments List the comment queue #
GET /v1/directories/{directoryId}/comments/{commentId} Get one comment, including its abuse metadata #
POST /v1/directories/{directoryId}/comments/{commentId}/approve Approve a comment — this publishes it #
POST /v1/directories/{directoryId}/comments/{commentId}/reject Reject a comment, or unpublish an approved one #
PUT /v1/directories/{directoryId}/comments/{commentId}/reply Set or clear the editors' public reply #

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/epicdirectories:epicdirectories-comments-admin-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

epicdirectories-comments-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: EpicDirectories comments (admin) API
  description: API-first directory data platform.
  version: '1.0'
  contact: {}
servers:
- url: https://api.epicdirectories.com
  description: Production
- url: http://localhost:3333
  description: Local development
tags:
- name: comments (admin)
paths:
  /v1/directories/{directoryId}/comments:
    get:
      operationId: CommentsAdminController_list
      summary: List the comment queue
      description: 'Defaults to `status=pending`. Optional `path` narrows to one page. Also returns `countsByStatus` across the whole directory.


        Each row carries `sameSourceOnPath`: how many OTHER comments on the same page arrived from the same (hashed) source address. A hint, not a verdict.'
      parameters:
      - name: directoryId
        required: true
        in: path
        schema:
          type: string
      - name: status
        required: false
        in: query
        description: Defaults to `pending`
        schema:
          enum:
          - pending
          - approved
          - rejected
          - spam
          type: string
      - name: path
        required: false
        in: query
        description: Only comments on this page. Normalised exactly as on write.
        schema:
          type: string
      - name: limit
        required: false
        in: query
        description: Default 50, max 200
        schema:
          type: string
      - name: offset
        required: false
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Paginated comments + counts by status
        '404':
          description: Directory not found or not yours
      tags:
      - comments (admin)
      security:
      - bearer: []
  /v1/directories/{directoryId}/comments/{commentId}:
    get:
      operationId: CommentsAdminController_get
      summary: Get one comment, including its abuse metadata
      description: Includes the hashed source address, user agent, Turnstile verdict and the submitter email — none of which any public read returns.
      parameters:
      - name: directoryId
        required: true
        in: path
        schema:
          type: string
      - name: commentId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: The comment
        '404':
          description: Not found
      tags:
      - comments (admin)
      security:
      - bearer: []
  /v1/directories/{directoryId}/comments/{commentId}/approve:
    post:
      operationId: CommentsAdminController_approve
      summary: Approve a comment — this publishes it
      description: Makes a stranger's text publicly readable, immediately. There is no draft state to catch a mistake. Returns 409 if the comment is already approved.
      parameters:
      - name: directoryId
        required: true
        in: path
        schema:
          type: string
      - name: commentId
        required: true
        in: path
        schema:
          type: string
      responses:
        '201':
          description: Approved and published
        '404':
          description: Not found
        '409':
          description: Already approved
      tags:
      - comments (admin)
      security:
      - bearer: []
  /v1/directories/{directoryId}/comments/{commentId}/reject:
    post:
      operationId: CommentsAdminController_reject
      summary: Reject a comment, or unpublish an approved one
      description: 'Pass `{ "spam": true }` to file it as spam instead of merely rejected. Reversible — the row is retained and its status can flip back.'
      parameters:
      - name: directoryId
        required: true
        in: path
        schema:
          type: string
      - name: commentId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RejectCommentDto'
      responses:
        '201':
          description: Rejected
        '404':
          description: Not found
      tags:
      - comments (admin)
      security:
      - bearer: []
  /v1/directories/{directoryId}/comments/{commentId}/reply:
    put:
      operationId: CommentsAdminController_reply
      summary: Set or clear the editors' public reply
      description: '`{ "reply": "…", "replyAuthor": "The editors" }`; `reply: null` or `""` clears it. Published only once (and while) the comment is approved.'
      parameters:
      - name: directoryId
        required: true
        in: path
        schema:
          type: string
      - name: commentId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReplyToCommentDto'
      responses:
        '200':
          description: The updated comment
        '404':
          description: Not found
      tags:
      - comments (admin)
      security:
      - bearer: []
components:
  schemas:
    ReplyToCommentDto:
      type: object
      properties:
        reply:
          type:
          - string
          - 'null'
          description: The editors' public reply, shown beneath the comment once it is approved. `null` or an empty string clears it.
          maxLength: 4000
        replyAuthor:
          type: string
          description: Who the reply is from, as readers should see it, e.g. "The editors".
          maxLength: 80
      required:
      - reply
    RejectCommentDto:
      type: object
      properties:
        spam:
          type: boolean
          description: Mark as spam rather than merely rejected, so abuse triage can separate the two.
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
    apiKey:
      type: apiKey
      in: header
      name: x-api-key