Commentary Workspaces API

The Workspaces API from Commentary — 5 operation(s) for workspaces.

GitHub OpenAPI

Operations 7

GET /api/v1/workspaces list Agent Workspaces #
GET /api/v1/workspaces/{workspaceId} get Agent Workspace #
GET /api/v1/workspaces/{workspaceId}/resources list Agent Workspace Resources #
POST /api/v1/workspaces/{workspaceId}/resources link Agent Workspace Resource #
GET /api/v1/workspaces/{workspaceId}/resources/{resourceType}/{resourceId} get Agent Workspace Resource #
PATCH /api/v1/workspaces/{workspaceId}/resources/{resourceType}/{resourceId} rename Agent Workspace Resource #
GET /api/v1/workspaces/{workspaceId}/queue list Agent Workspace Queue #

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-workspaces-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-workspaces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Commentary Dev Workspaces 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 Workspaces 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: Workspaces
paths:
  /api/v1/workspaces:
    get:
      operationId: listAgentWorkspaces
      tags:
      - Workspaces
      summary: list Agent Workspaces
      description: Account-scoped HTTP v1 agent operation within the credential's fixed workspace and current owner/source authority. Workspace selection never changes browser preferences. Policies cannot be activated by an agent. Insights require a 20-observation cohort; delivery history omits titles and app paths.
      security:
      - bearerAuth:
        - commentary.workspaces.read
      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
      x-commentary-feature-key: inbox.basic
      responses:
        '200':
          description: Authorized response. Reads never mark recipient state or apply policy effects. Proposals are disabled and pending human approval.
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: object
        '400':
          description: Invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InteractionApiError'
        '401':
          description: A valid bearer token is required.
        '403':
          description: The grant, workspace, membership, scope, feature, or source authority does not authorize this action.
        '404':
          description: Authorized resource or item was not found.
        '409':
          description: The version, retry key, or proposal limit conflicts.
        '500':
          description: The request could not be completed.
        '503':
          description: Source access or projection is temporarily unavailable.
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
  /api/v1/workspaces/{workspaceId}:
    get:
      operationId: getAgentWorkspace
      tags:
      - Workspaces
      summary: get Agent Workspace
      description: Account-scoped HTTP v1 agent operation within the credential's fixed workspace and current owner/source authority. Workspace selection never changes browser preferences. Policies cannot be activated by an agent. Insights require a 20-observation cohort; delivery history omits titles and app paths.
      security:
      - bearerAuth:
        - commentary.workspaces.read
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
      - 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: inbox.basic
      responses:
        '200':
          description: Authorized response. Reads never mark recipient state or apply policy effects. Proposals are disabled and pending human approval.
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: object
        '400':
          description: Invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InteractionApiError'
        '401':
          description: A valid bearer token is required.
        '403':
          description: The grant, workspace, membership, scope, feature, or source authority does not authorize this action.
        '404':
          description: Authorized resource or item was not found.
        '409':
          description: The version, retry key, or proposal limit conflicts.
        '500':
          description: The request could not be completed.
        '503':
          description: Source access or projection is temporarily unavailable.
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
  /api/v1/workspaces/{workspaceId}/resources:
    get:
      operationId: listAgentWorkspaceResources
      tags:
      - Workspaces
      summary: list Agent Workspace Resources
      description: Account-scoped HTTP v1 agent operation within the credential's fixed workspace and current owner/source authority. Workspace selection never changes browser preferences. Policies cannot be activated by an agent. Insights require a 20-observation cohort; delivery history omits titles and app paths.
      security:
      - bearerAuth:
        - commentary.workspaces.read
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
      - name: section
        in: query
        required: false
        schema:
          type: string
          enum:
          - reviews
          - forms
          - research
          - brain
          - sources
          default: reviews
      - name: q
        in: query
        required: false
        schema:
          type: string
      - name: filters
        in: query
        required: false
        schema:
          type: string
          description: JSON object of string arrays using this collection's browser filter vocabulary.
      - name: sort
        in: query
        required: false
        schema:
          type: string
      - name: sourceId
        in: query
        required: false
        schema:
          type: string
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          enum:
          - 25
          default: 25
      - 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: inbox.basic
      responses:
        '200':
          description: Authorized response. Reads never mark recipient state or apply policy effects. Proposals are disabled and pending human approval.
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: object
        '400':
          description: Invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InteractionApiError'
        '401':
          description: A valid bearer token is required.
        '403':
          description: The grant, workspace, membership, scope, feature, or source authority does not authorize this action.
        '404':
          description: Authorized resource or item was not found.
        '409':
          description: The version, retry key, or proposal limit conflicts.
        '500':
          description: The request could not be completed.
        '503':
          description: Source access or projection is temporarily unavailable.
    post:
      operationId: linkAgentWorkspaceResource
      tags:
      - Workspaces
      summary: link Agent Workspace Resource
      description: Account-scoped HTTP v1 agent operation within the credential's fixed workspace and current owner/source authority. Workspace selection never changes browser preferences. Policies cannot be activated by an agent. Insights require a 20-observation cohort; delivery history omits titles and app paths.
      security:
      - bearerAuth:
        - commentary.workspaces.resources.write
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
      - name: Idempotency-Key
        in: header
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 200
      - 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: inbox.basic
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentWorkspaceResourceLink'
      responses:
        '201':
          description: Authorized response. Reads never mark recipient state or apply policy effects. Proposals are disabled and pending human approval.
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: object
        '400':
          description: Invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InteractionApiError'
        '401':
          description: A valid bearer token is required.
        '403':
          description: The grant, workspace, membership, scope, feature, or source authority does not authorize this action.
        '404':
          description: Authorized resource or item was not found.
        '409':
          description: The version, retry key, or proposal limit conflicts.
        '500':
          description: The request could not be completed.
        '503':
          description: Source access or projection is temporarily unavailable.
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
  /api/v1/workspaces/{workspaceId}/resources/{resourceType}/{resourceId}:
    get:
      operationId: getAgentWorkspaceResource
      tags:
      - Workspaces
      summary: get Agent Workspace Resource
      description: Account-scoped HTTP v1 agent operation within the credential's fixed workspace and current owner/source authority. Workspace selection never changes browser preferences. Policies cannot be activated by an agent. Insights require a 20-observation cohort; delivery history omits titles and app paths.
      security:
      - bearerAuth:
        - commentary.workspaces.read
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
      - name: resourceType
        in: path
        required: true
        schema:
          type: string
      - name: resourceId
        in: path
        required: true
        schema:
          type: string
      - 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: inbox.basic
      responses:
        '200':
          description: Authorized response. Reads never mark recipient state or apply policy effects. Proposals are disabled and pending human approval.
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: object
        '400':
          description: Invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InteractionApiError'
        '401':
          description: A valid bearer token is required.
        '403':
          description: The grant, workspace, membership, scope, feature, or source authority does not authorize this action.
        '404':
          description: Authorized resource or item was not found.
        '409':
          description: The version, retry key, or proposal limit conflicts.
        '500':
          description: The request could not be completed.
        '503':
          description: Source access or projection is temporarily unavailable.
    patch:
      operationId: renameAgentWorkspaceResource
      tags:
      - Workspaces
      summary: rename Agent Workspace Resource
      description: Account-scoped HTTP v1 agent operation within the credential's fixed workspace and current owner/source authority. Workspace selection never changes browser preferences. Policies cannot be activated by an agent. Insights require a 20-observation cohort; delivery history omits titles and app paths.
      security:
      - bearerAuth:
        - commentary.workspaces.resources.write
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
      - name: resourceType
        in: path
        required: true
        schema:
          type: string
      - name: resourceId
        in: path
        required: true
        schema:
          type: string
      - 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: inbox.basic
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentWorkspaceResourceRename'
      responses:
        '200':
          description: Authorized response. Reads never mark recipient state or apply policy effects. Proposals are disabled and pending human approval.
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: object
        '400':
          description: Invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InteractionApiError'
        '401':
          description: A valid bearer token is required.
        '403':
          description: The grant, workspace, membership, scope, feature, or source authority does not authorize this action.
        '404':
          description: Authorized resource or item was not found.
        '409':
          description: The version, retry key, or proposal limit conflicts.
        '500':
          description: The request could not be completed.
        '503':
          description: Source access or projection is temporarily unavailable.
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
  /api/v1/workspaces/{workspaceId}/queue:
    get:
      operationId: listAgentWorkspaceQueue
      tags:
      - Workspaces
      summary: list Agent Workspace Queue
      description: Account-scoped HTTP v1 agent operation within the credential's fixed workspace and current owner/source authority. Workspace selection never changes browser preferences. Policies cannot be activated by an agent. Insights require a 20-observation cohort; delivery history omits titles and app paths.
      security:
      - bearerAuth:
        - commentary.workspaces.read
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
      - name: queueName
        in: query
        required: false
        schema:
          type: string
      - name: assignment
        in: query
        required: false
        schema:
          type: string
          enum:
          - any
          - me
          - unassigned
          default: any
      - 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: inbox.basic
      responses:
        '200':
          description: Authorized response. Reads never mark recipient state or apply policy effects. Proposals are disabled and pending human approval.
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: object
        '400':
          description: Invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InteractionApiError'
        '401':
          description: A valid bearer token is required.
        '403':
          description: The grant, workspace, membership, scope, feature, or source authority does not authorize this action.
        '404':
          description: Authorized resource or item was not found.
        '409':
          description: The version, retry key, or proposal limit conflicts.
        '500':
          description: The request could not be completed.
        '503':
          description: Source access or projection is temporarily unavailable.
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
components:
  schemas:
    InteractionApiError:
      type: object
      required:
      - error
      additionalProperties: false
      properties:
        error:
          type: object
          required:
          - version
          - code
          - message
          - correlationId
          additionalProperties: false
          properties:
            version:
              const: '1'
            code:
              type: string
            message:
              type: string
            correlationId:
              type: string
            details:
              type: array
              items:
                type: object
                required:
                - field
                - issue
                properties:
                  field:
                    type: string
                  issue:
                    type: string
              retryable:
                type: boolean
    AgentWorkspaceResourceLink:
      type: object
      additionalProperties: false
      required:
      - type
      - id
      properties:
        type:
          type: string
          enum:
          - repository
          - pull_request
          - document
          - draft_review
          - form
          - research_study
          - knowledge_brain
          - web_app_review
          - project
          - tracker
          - review_package
          - project_review_session
          - source_snapshot
        id:
          type: string
          minLength: 1
          maxLength: 512
    AgentWorkspaceResourceRename:
      type: object
      additionalProperties: false
      required:
      - title
      - expectedUpdatedAt
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 200
        expectedUpdatedAt:
          type: string
          format: date-time
  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 (495 KB total) ---
# Full source: https://artifacts.apis.io/commentary-dev/openapi/commentary-dev-workspaces-api-openapi.yml