Commentary Review collaboration API

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

GitHub OpenAPI

Operations 7

GET /api/v1/review/gate Compute authoritative readiness for an exact current revision, including… #
GET /api/v1/review/settings Read effective settings, permissions, version, revision, and provider-sync… #
PATCH /api/v1/review/settings Configure optional Polls and Consensus. #
GET /api/v1/review/threads/{threadId}/decision Read an authorized thread's decision and participant stances #
POST /api/v1/review/threads/{threadId}/decision Request a decision, set a stance, decide, clear a blocker, or record exact… #
GET /api/v1/review/polls Read polls, filter outcomes, or serialize a readable snapshot with a… #
POST /api/v1/review/polls Create, edit, vote, close, reopen, or archive a poll. #

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-collaboration-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-collaboration-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Commentary Dev Review collaboration 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 collaboration 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 collaboration
paths:
  /api/v1/review/gate:
    get:
      operationId: getReviewGateStatus
      tags:
      - Review collaboration
      summary: Compute authoritative readiness for an exact current revision, including…
      security:
      - bearerAuth:
        - commentary.review.read
      parameters:
      - name: review
        in: query
        required: true
        schema:
          type: string
        description: JSON encoded ReviewRef. Revision identity is supplied separately.
      - name: revision
        in: query
        required: true
        schema:
          type: string
      x-commentary-feature-key: review.consensus
      responses:
        '200':
          description: Authorized review state or durable mutation receipt.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    const: true
                required:
                - ok
                additionalProperties: true
        '400':
          description: Invalid request.
        '401':
          description: Authentication required.
        '403':
          description: Current source, workspace, role or grant authority is required.
        '404':
          description: Review or exact target is unavailable.
        '409':
          description: Feature paused, stale version, or conflicting retry key. Refresh before creating a new intent.
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
  /api/v1/review/settings:
    get:
      operationId: getReviewSettings
      tags:
      - Review collaboration
      summary: Read effective settings, permissions, version, revision, and provider-sync…
      security:
      - bearerAuth:
        - commentary.review.read
      parameters:
      - name: review
        in: query
        required: true
        schema:
          type: string
        description: JSON encoded ReviewRef. Revision identity is supplied separately.
      x-commentary-feature-key: review.consensus
      responses:
        '200':
          description: Authorized review state or durable mutation receipt.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    const: true
                required:
                - ok
                additionalProperties: true
        '400':
          description: Invalid request.
        '401':
          description: Authentication required.
        '403':
          description: Current source, workspace, role or grant authority is required.
        '404':
          description: Review or exact target is unavailable.
        '409':
          description: Feature paused, stale version, or conflicting retry key. Refresh before creating a new intent.
    patch:
      operationId: updateReviewSettings
      tags:
      - Review collaboration
      summary: Configure optional Polls and Consensus.
      security:
      - bearerAuth:
        - commentary.review.settings.write
      parameters: []
      x-commentary-feature-key: review.consensus
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
              - review
              - collaboration
              - expectedVersion
              - operationKey
              properties:
                review:
                  oneOf:
                  - type: object
                    properties:
                      kind:
                        const: draft
                      id:
                        type: string
                        minLength: 1
                        maxLength: 1000
                    required:
                    - kind
                    - id
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        const: package
                      id:
                        type: string
                        minLength: 1
                        maxLength: 1000
                    required:
                    - kind
                    - id
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        const: guide
                      id:
                        type: string
                        minLength: 1
                        maxLength: 1000
                    required:
                    - kind
                    - id
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        const: snapshot
                      id:
                        type: string
                        minLength: 1
                        maxLength: 1000
                    required:
                    - kind
                    - id
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        const: preview
                      id:
                        type: string
                        minLength: 1
                        maxLength: 1000
                    required:
                    - kind
                    - id
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        const: pr
                      provider:
                        enum:
                        - github
                        - azure_devops
                      owner:
                        type: string
                      repo:
                        type: string
                      projectName:
                        type:
                        - string
                        - 'null'
                      prNumber:
                        type: integer
                        minimum: 1
                    required:
                    - kind
                    - provider
                    - owner
                    - repo
                    - prNumber
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        const: branch
                      provider:
                        enum:
                        - github
                        - azure_devops
                      owner:
                        type: string
                      repo:
                        type: string
                      projectName:
                        type:
                        - string
                        - 'null'
                      branchRef:
                        type: string
                    required:
                    - kind
                    - provider
                    - owner
                    - repo
                    - branchRef
                    additionalProperties: false
                collaboration:
                  type: object
                  additionalProperties: false
                  properties:
                    polls:
                      type: boolean
                      default: false
                    consensus:
                      type: object
                      additionalProperties: false
                      properties:
                        enabled:
                          type: boolean
                          default: false
                        rule:
                          type: object
                          additionalProperties: false
                          properties:
                            mode:
                              enum:
                              - owner_decides
                              - no_open_blockers
                              - n_of_m
                              - required_reviewers
                            agreementThreshold:
                              type: integer
                              minimum: 1
                              maximum: 1000
                            minResponseCount:
                              type: integer
                              minimum: 1
                              maximum: 1000
                            requiredReviewerIds:
                              type: array
                              maxItems: 1000
                              uniqueItems: true
                              items:
                                type: string
                            delegatedOwnerAgentParticipantId:
                              type:
                              - string
                              - 'null'
                            requiredReviewerCondition:
                              enum:
                              - all_required_agree
                              - no_required_objects
                              - owner_plus_one_required_agrees
                              - threshold_no_blockers
                            objectionPolicy:
                              enum:
                              - block
                              - owner_decision
                              - ignore
                            countOwnerAgreement:
                              type: boolean
                            countAgentSignals:
                              type: boolean
                              default: false
                            decisionPollCompletion:
                              enum:
                              - closed
                              - threshold
                              default: closed
                        gate:
                          type: object
                          additionalProperties: false
                          properties:
                            minimumHumanApprovals:
                              type: integer
                              minimum: 0
                              maximum: 1000
                            requiredReviewerIds:
                              type: array
                              uniqueItems: true
                              maxItems: 1000
                              items:
                                type: string
                            quorum:
                              anyOf:
                              - type: 'null'
                              - type: object
                                properties:
                                  group:
                                    enum:
                                    - owner
                                    - invited_reviewers
                                    - all_human_reviewers
                                  minimum:
                                    type: integer
                                    minimum: 1
                                    maximum: 1000
                                required:
                                - group
                                - minimum
                                additionalProperties: false
                            fileRequirement:
                              oneOf:
                              - type: object
                                properties:
                                  mode:
                                    enum:
                                    - none
                                    - all
                                required:
                                - mode
                                additionalProperties: false
                              - type: object
                                properties:
                                  mode:
                                    const: selected
                                  filePaths:
                                    type: array
                                    maxItems: 10000
                                    uniqueItems: true
                                    items:
                                      type: string
                                required:
                                - mode
                                - filePaths
                                additionalProperties: false
                            agentMode:
                              enum:
                              - prepare_only
                              - wait_before_implementation
                expectedVersion:
                  type: integer
                  minimum: 0
                operationKey:
                  type: string
                  minLength: 8
                  maxLength: 128
      responses:
        '200':
          description: Authorized review state or durable mutation receipt.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    const: true
                required:
                - ok
                additionalProperties: true
        '400':
          description: Invalid request.
        '401':
          description: Authentication required.
        '403':
          description: Current source, workspace, role or grant authority is required.
        '404':
          description: Review or exact target is unavailable.
        '409':
          description: Feature paused, stale version, or conflicting retry key. Refresh before creating a new intent.
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
  /api/v1/review/threads/{threadId}/decision:
    get:
      operationId: getReviewThreadDecision
      tags:
      - Review collaboration
      summary: Read an authorized thread's decision and participant stances
      security:
      - bearerAuth:
        - commentary.review.read
      parameters:
      - name: threadId
        in: path
        required: true
        schema:
          type: string
      x-commentary-feature-key: review.consensus
      responses:
        '200':
          description: Authorized review state or durable mutation receipt.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    const: true
                required:
                - ok
                additionalProperties: true
        '400':
          description: Invalid request.
        '401':
          description: Authentication required.
        '403':
          description: Current source, workspace, role or grant authority is required.
        '404':
          description: Review or exact target is unavailable.
        '409':
          description: Feature paused, stale version, or conflicting retry key. Refresh before creating a new intent.
    post:
      operationId: mutateReviewThreadDecision
      tags:
      - Review collaboration
      summary: Request a decision, set a stance, decide, clear a blocker, or record exact…
      security:
      - bearerAuth:
        - commentary.comments.write
      parameters:
      - name: threadId
        in: path
        required: true
        schema:
          type: string
      x-commentary-feature-key: review.consensus
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
              - action
              - expectedVersion
              - operationKey
              properties:
                expectedVersion:
                  type: integer
                  minimum: 0
                operationKey:
                  type: string
                  minLength: 8
                  maxLength: 128
                blockerActorKey:
                  type: string
                resultingRevision:
                  type: string
                requestDecision:
                  type: boolean
                action:
                  enum:
                  - request_decision
                  - signal
                  - decide
                  - clear_blocker
                  - record_application
                signal:
                  enum:
                  - agree
                  - object
                  - needs_clarification
                  - blocker
                active:
                  type: boolean
                decision:
                  enum:
                  - accepted_for_change
                  - rejected
                  - out_of_scope
                  - clear
                reason:
                  type: string
                  maxLength: 1000
      responses:
        '200':
          description: Authorized review state or durable mutation receipt.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    const: true
                required:
                - ok
                additionalProperties: true
        '400':
          description: Invalid request.
        '401':
          description: Authentication required.
        '403':
          description: Current source, workspace, role or grant authority is required.
        '404':
          description: Review or exact target is unavailable.
        '409':
          description: Feature paused, stale version, or conflicting retry key. Refresh before creating a new intent.
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
  /api/v1/review/polls:
    get:
      operationId: getReviewPolls
      tags:
      - Review collaboration
      summary: Read polls, filter outcomes, or serialize a readable snapshot with a…
      security:
      - bearerAuth:
        - commentary.comments.read
      parameters:
      - name: review
        in: query
        required: false
        schema:
          type: string
      - name: threadId
        in: query
        required: false
        schema:
          type: string
      - name: pollId
        in: query
        required: false
        schema:
          type: string
      - name: action
        in: query
        required: false
        schema:
          type: string
      - name: outcome
        in: query
        required: false
        schema:
          type: string
      - name: after
        in: query
        required: false
        schema:
          type: string
      x-commentary-feature-key: review.poll_comments
      responses:
        '200':
          description: Authorized review state or durable mutation receipt.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    const: true
                required:
                - ok
                additionalProperties: true
        '400':
          description: Invalid request.
        '401':
          description: Authentication required.
        '403':
          description: Current source, workspace, role or grant authority is required.
        '404':
          description: Review or exact target is unavailable.
        '409':
          description: Feature paused, stale version, or conflicting retry key. Refresh before creating a new intent.
    post:
      operationId: mutateReviewPoll
      tags:
      - Review collaboration
      summary: Create, edit, vote, close, reopen, or archive a poll.
      security:
      - bearerAuth:
        - commentary.comments.write
      parameters: []
      x-commentary-feature-key: review.poll_comments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - action
              properties:
                action:
                  enum:
                  - create
                  - edit
                  - vote
                  - clear_vote
                  - close
                  - reopen
                  - archive
                review:
                  oneOf:
                  - type: object
                    properties:
                      kind:
                        const: draft
                      id:
                        type: string
                        minLength: 1
                        maxLength: 1000
                    required:
                    - kind
                    - id
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        const: package
                      id:
                        type: string
                        minLength: 1
                        maxLength: 1000
                    required:
                    - kind
                    - id
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        const: guide
                      id:
                        type: string
                        minLength: 1
                        maxLength: 1000
                    required:
                    - kind
                    - id
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        const: snapshot
                      id:
                        type: string
                        minLength: 1
                        maxLength: 1000
                    required:
                    - kind
                    - id
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        const: preview
                      id:
                        type: string
                        minLength: 1
                        maxLength: 1000
                    required:
                    - kind
                    - id
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        const: pr
                      provider:
                        enum:
                        - github
                        - azure_devops
                      owner:
                        type: string
                      repo:
                        type: string
                      projectName:
                        type:
                        - string
                        - 'null'
                      prNumber:
                        type: integer
                        minimum: 1
                    required:
                    - kind
                    - provider
                    - owner
                    - repo
                    - prNumber
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        const: branch
                      provider:
                        enum:
                        - github
                        - azure_devops
                      owner:
                        type: string
                      repo:
                        type: string
                      projectName:
                        type:
                        - string
                        - 'null'
                      branchRef:
                        type: string
                    required:
                    - kind
                    - provider
                    - owner
                    - repo
                    - branchRef
                    additionalProperties: false
                threadId:
                  type: string
                commentId:
                  type: string
                pollId:
                  type: string
                poll:
                  type: object
                selectedOptionIds:
                  type: array
                  maxItems: 20
                  items:
                    type: string
                reason:
                  type: string
              additionalProperties: false
      responses:
        '200':
          description: Authorized review state or durable mutation receipt.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    const: true
                required:
                - ok
                additionalProperties: true
        '400':
          description: Invalid request.
        '401':
          description: Authentication required.
        '403':
          description: Current source, workspace, role or grant authority is required.
        '404':
          description: Review or exact target is unavailable.
        '409':
          description: Feature paused, stale version, or conflicting retry key. Refresh before creating a new intent.
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
components:
  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 (500 KB total) ---
# Full source: https://artifacts.apis.io/commentary-dev/openapi/commentary-dev-review-collaboration-api-openapi.yml