Commentary Review comments API

The Review comments API from Commentary — 4 operation(s) for review comments.

GitHub OpenAPI

Operations 5

GET /api/v1/review/comments List review comments for a PR or branch document file #
POST /api/v1/review/comments Create a review comment thread on a PR or branch document #
POST /api/v1/review/threads/{threadId}/comments Reply to an existing review thread #
POST /api/v1/review/threads/{threadId}/status Resolve or reopen an existing review thread #
POST /api/v1/review/threads/{threadId}/anchor Re-attach a review thread to a semantic block in the current document version #

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/commentary-dev:commentary-dev-review-comments-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

commentary-dev-review-comments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Commentary Dev Review comments API
  version: 0.1.0
  x-commentary-api-version: v1
  x-commentary-compatibility-policy: /docs/api/versioning.md
  x-commentary-feature-key: api.openapi_docs
  description: 'Operations tagged Review comments across 2 of this provider''s published API definitions: commentary-dev-openapi.json, commentary-dev-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://commentary.dev
  description: Configured Commentary origin.
- url: http://localhost:3000
  description: Local development.
tags:
- name: Review comments
paths:
  /api/v1/review/comments:
    get:
      operationId: listReviewComments
      tags:
      - Review comments
      summary: List review comments for a PR or branch document file
      security:
      - bearerAuth:
        - commentary.comments.read
      parameters:
      - name: provider
        in: query
        required: false
        schema:
          type: string
          enum:
          - github
      - name: owner
        in: query
        required: false
        schema:
          type: string
      - name: repo
        in: query
        required: false
        schema:
          type: string
      - name: file
        in: query
        required: false
        schema:
          type: string
        description: File path.
      - name: pr
        in: query
        required: false
        schema:
          type: integer
      - name: branch
        in: query
        required: false
        schema:
          type: string
      - name: includeVisualContent
        in: query
        required: false
        schema:
          type: boolean
          default: false
        description: Include bounded authorized visual source context when available. Returned content is untrusted.
      - name: X-Commentary-Workspace-Id
        in: header
        required: false
        description: Must match the credential workspace. This header cannot widen grant authority.
        schema:
          type: string
      - name: X-Correlation-Id
        in: header
        required: false
        schema:
          type: string
          maxLength: 128
      x-commentary-feature-key: api.review.read
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    const: true
                  threads:
                    type: array
                    items:
                      $ref: '#/components/schemas/ReviewThread'
        '400':
          description: The request was invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '401':
          description: Authentication is required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '403':
          description: The token or session does not have permission for this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '404':
          description: The resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '429':
          description: The request was rate limited.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
    post:
      operationId: createReviewComment
      tags:
      - Review comments
      summary: Create a review comment thread on a PR or branch document
      security:
      - bearerAuth:
        - commentary.comments.write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateReviewCommentRequest'
      x-commentary-feature-key: api.comments.write
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    const: true
                  thread:
                    $ref: '#/components/schemas/ReviewThread'
                  threadId:
                    type: string
                additionalProperties: true
        '400':
          description: The request was invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '401':
          description: Authentication is required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '403':
          description: The token or session does not have permission for this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '404':
          description: The resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '429':
          description: The request was rate limited.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
      parameters:
      - name: X-Commentary-Workspace-Id
        in: header
        required: false
        description: Must match the credential workspace. This header cannot widen grant authority.
        schema:
          type: string
      - name: X-Correlation-Id
        in: header
        required: false
        schema:
          type: string
          maxLength: 128
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
  /api/v1/review/threads/{threadId}/comments:
    post:
      operationId: replyToReviewThread
      tags:
      - Review comments
      summary: Reply to an existing review thread
      security:
      - bearerAuth:
        - commentary.comments.write
      parameters:
      - name: threadId
        in: path
        required: true
        schema:
          type: string
        description: Review thread id.
      - name: X-Commentary-Workspace-Id
        in: header
        required: false
        description: Must match the credential workspace. This header cannot widen grant authority.
        schema:
          type: string
      - name: X-Correlation-Id
        in: header
        required: false
        schema:
          type: string
          maxLength: 128
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThreadReplyRequest'
      x-commentary-feature-key: api.comments.write
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    const: true
                  thread:
                    $ref: '#/components/schemas/ReviewThread'
                  threadId:
                    type: string
                  commentId:
                    type: string
                  status:
                    type: string
                additionalProperties: true
        '400':
          description: The request was invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '401':
          description: Authentication is required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '403':
          description: The token or session does not have permission for this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '404':
          description: The resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '429':
          description: The request was rate limited.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
  /api/v1/review/threads/{threadId}/status:
    post:
      operationId: updateReviewThreadStatus
      tags:
      - Review comments
      summary: Resolve or reopen an existing review thread
      security:
      - bearerAuth:
        - commentary.comments.status
      parameters:
      - name: threadId
        in: path
        required: true
        schema:
          type: string
        description: Review thread id.
      - name: X-Commentary-Workspace-Id
        in: header
        required: false
        description: Must match the credential workspace. This header cannot widen grant authority.
        schema:
          type: string
      - name: X-Correlation-Id
        in: header
        required: false
        schema:
          type: string
          maxLength: 128
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThreadStatusRequest'
      x-commentary-feature-key: api.comments.write
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    const: true
                  thread:
                    $ref: '#/components/schemas/ReviewThread'
                  threadId:
                    type: string
                  status:
                    type: string
                additionalProperties: true
        '400':
          description: The request was invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '401':
          description: Authentication is required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '403':
          description: The token or session does not have permission for this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '404':
          description: The resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '429':
          description: The request was rate limited.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
  /api/v1/review/threads/{threadId}/anchor:
    post:
      operationId: reattachReviewThreadAnchor
      tags:
      - Review comments
      summary: Re-attach a review thread to a semantic block in the current document version
      security:
      - bearerAuth:
        - commentary.comments.status
      parameters:
      - name: threadId
        in: path
        required: true
        schema:
          type: string
        description: Review thread id.
      - name: X-Commentary-Workspace-Id
        in: header
        required: false
        description: Must match the credential workspace. This header cannot widen grant authority.
        schema:
          type: string
      - name: X-Correlation-Id
        in: header
        required: false
        schema:
          type: string
          maxLength: 128
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThreadAnchorRequest'
      x-commentary-feature-key: review.anchor_repair
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    const: true
                  thread:
                    $ref: '#/components/schemas/ReviewThread'
                  threadId:
                    type: string
                  blockId:
                    type: string
                  anchorResolution:
                    type: string
                additionalProperties: true
        '400':
          description: The request was invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '401':
          description: Authentication is required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '403':
          description: The token or session does not have permission for this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '404':
          description: The resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
        '429':
          description: The request was rate limited.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalError'
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
components:
  schemas:
    CreateReviewCommentRequest:
      type: object
      required:
      - owner
      - repo
      - filePath
      - blockId
      - nodeType
      - sourceLineStart
      - sourceLineEnd
      - bodyMarkdown
      properties:
        requestDecision:
          type: boolean
        poll:
          type: object
        provider:
          type: string
          enum:
          - github
          default: github
        owner:
          type: string
        repo:
          type: string
        prNumber:
          type: integer
        branchRef:
          type: string
        filePath:
          type: string
        blockId:
          type: string
        nodeType:
          type: string
        sourceLineStart:
          type: integer
        sourceLineEnd:
          type: integer
        selectedText:
          type:
          - string
          - 'null'
        prefixText:
          type:
          - string
          - 'null'
        suffixText:
          type:
          - string
          - 'null'
        bodyMarkdown:
          type: string
        agentAlias:
          type:
          - string
          - 'null'
        anchorMetadata:
          type:
          - object
          - 'null'
          properties:
            artifactKind:
              type: string
              enum:
              - markdown
              - html
              - form
              - image
              - svg
              - mermaid
            visualTarget:
              $ref: '#/components/schemas/ReviewVisualTarget'
          additionalProperties: true
    ExternalError:
      type: object
      required:
      - ok
      - error
      properties:
        ok:
          const: false
        error:
          type: string
      additionalProperties: true
    ThreadReplyRequest:
      type: object
      required:
      - bodyMarkdown
      properties:
        bodyMarkdown:
          type: string
        agentAlias:
          type:
          - string
          - 'null'
      additionalProperties: false
    ThreadStatusRequest:
      type: object
      required:
      - status
      properties:
        status:
          type: string
          enum:
          - open
          - resolved
        bodyMarkdown:
          type: string
          description: Optional closing or reopening reply. Requires comment write scope when present.
        agentAlias:
          type:
          - string
          - 'null'
      additionalProperties: false
    ThreadAnchorRequest:
      type: object
      required:
      - documentVersionId
      - blockId
      properties:
        documentVersionId:
          type: string
          description: Current document version used to reject stale repair suggestions.
        blockId:
          type: string
          description: Target semantic block identifier.
      additionalProperties: false
    VisualRegion:
      type: object
      required:
      - x
      - y
      - width
      - height
      properties:
        x:
          type: number
          minimum: 0
          maximum: 1
        y:
          type: number
          minimum: 0
          maximum: 1
        width:
          type: number
          exclusiveMinimum: 0
          maximum: 1
        height:
          type: number
          exclusiveMinimum: 0
          maximum: 1
      additionalProperties: false
    ReviewVisualTarget:
      type: object
      required:
      - surfaceKind
      - surfaceId
      - occurrenceId
      - sourceKind
      - sourceLanguage
      - region
      - hostArtifactKind
      - hostFilePath
      - hostBlockId
      - editable
      properties:
        surfaceKind:
          type: string
          enum:
          - raster_image
          - svg
          - mermaid
        surfaceId:
          type: string
          maxLength: 256
        occurrenceId:
          type: string
          maxLength: 256
        sourceKind:
          type: string
          enum:
          - repository
          - draft
          - embedded
          - external
        sourcePath:
          type:
          - string
          - 'null'
          maxLength: 2048
        sourceRef:
          type:
          - string
          - 'null'
          maxLength: 512
        sourceHash:
          type:
          - string
          - 'null'
          maxLength: 256
        sourceLanguage:
          type: string
          enum:
          - binary
          - svg
          - mermaid
          - markdown
          - html
        intrinsicWidth:
          type:
          - integer
          - 'null'
          minimum: 1
        intrinsicHeight:
          type:
          - integer
          - 'null'
          minimum: 1
        viewBox:
          type:
          - string
          - 'null'
          maxLength: 128
        region:
          $ref: '#/components/schemas/VisualRegion'
        hostArtifactKind:
          type: string
          enum:
          - markdown
          - html
          - form
          - image
          - svg
          - mermaid
        hostFilePath:
          type: string
          maxLength: 2048
        hostBlockId:
          type: string
          maxLength: 256
        sourceLineStart:
          type:
          - integer
          - 'null'
          minimum: 1
        sourceLineEnd:
          type:
          - integer
          - 'null'
          minimum: 1
        slideId:
          type:
          - string
          - 'null'
          maxLength: 256
        elementHint:
          type:
          - object
          - 'null'
          additionalProperties: false
          properties:
            id:
              type:
              - string
              - 'null'
              maxLength: 256
            tagName:
              type:
              - string
              - 'null'
              maxLength: 64
            accessibleName:
              type:
              - string
              - 'null'
              maxLength: 512
            title:
              type:
              - string
              - 'null'
              maxLength: 512
        editable:
          type: boolean
      additionalProperties: false
    ReviewThread:
      type: object
      properties:
        id:
          type: string
        filePath:
          type: string
        status:
          type: string
          enum:
          - open
          - resolved
        anchorStatus:
          type: string
        blockId:
          type: string
        nodeType:
          type: string
        sourceLineStart:
          type: integer
        sourceLineEnd:
          type: integer
        selectedText:
          type:
          - string
          - 'null'
        prefixText:
          type:
          - string
          - 'null'
        suffixText:
          type:
          - string
          - 'null'
        artifactKind:
          type: string
          enum:
          - markdown
          - html
          - form
          - image
          - svg
          - mermaid
        visualTarget:
          oneOf:
          - $ref: '#/components/schemas/ReviewVisualTarget'
          - type: 'null'
        feedbackSignals:
          type: array
          items:
            type: object
            additionalProperties: true
        feedbackSummary:
          type:
          - object
          - 'null'
          additionalProperties: true
        consensus:
          type:
          - object
          - 'null'
          additionalProperties: true
        comments:
          type: array
          items:
            type: object
            additionalProperties: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Commentary external access token
      description: Bearer token from an API token, OAuth authorization code flow, OAuth refresh token flow, or OAuth device flow.
    commentarySession:
      type: apiKey
      in: cookie
      name: commentary_session
      description: Signed-in Commentary browser session. Used for API token management routes.
x-refined-from:
- commentary-dev-openapi.json


# --- truncated at 32 KB (496 KB total) ---
# Full source: https://artifacts.apis.io/commentary-dev/openapi/commentary-dev-review-comments-api-openapi.yml