Commentary Package uploads API

The Package uploads API from Commentary — 4 operation(s) for package uploads.

GitHub OpenAPI

Operations 5

POST /api/v1/review-packages/uploads preparePackageUpload #
GET /api/v1/review-packages/uploads/{uploadId} getPackageUpload #
DELETE /api/v1/review-packages/uploads/{uploadId} cancelPackageUpload #
POST /api/v1/review-packages/uploads/{uploadId}/chunks transferPackageChunk #
POST /api/v1/review-packages/uploads/{uploadId}/finalize finalizePackageUpload #

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-package-uploads-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-package-uploads-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Commentary Dev Package uploads 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 Package uploads 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: Package uploads
paths:
  /api/v1/review-packages/uploads:
    post:
      operationId: preparePackageUpload
      tags:
      - Package uploads
      summary: preparePackageUpload
      description: Actor/workspace-bound private byte transfer. Completed upload bundles are not published packages. Chunk offsets use a fixed 4 MiB grid; exact retries preserve the original bytes. Current membership and credential scope are checked on every operation. No content or Blob credentials are served by these routes.
      security:
      - bearerAuth:
        - commentary.review_packages.write
      x-commentary-feature-key: review_packages.agent_api
      x-commentary-additional-feature-keys:
      - review_packages.basic
      parameters:
      - name: Idempotency-Key
        in: header
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 200
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                workspaceId:
                  type: string
                  minLength: 1
                  maxLength: 512
                  pattern: ^[^\s]+$
                packageId:
                  type: string
                  minLength: 1
                  maxLength: 512
                  pattern: ^[^\s]+$
                bytes:
                  type: integer
                  minimum: 1
                  maximum: 262144000
                sha256:
                  type: string
                  pattern: ^[a-f0-9]{64}$
                manifest:
                  $ref: '#/components/schemas/ProjectAgentUploadManifest'
              required:
              - workspaceId
              - bytes
              - sha256
              - manifest
      responses:
        '200':
          description: Private upload status or immutable package revision result.
          headers:
            ETag:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectAgentpreparePackageUploadOutput'
        '400':
          description: Invalid manifest/chunk/checksum or missing retry key.
        '401':
          description: Authentication required.
        '403':
          description: Current actor/workspace/grant access denied.
        '409':
          description: Expired/canceled upload, missing chunks, or conflicting retry.
        '413':
          description: Actual request bytes exceed the bound.
        '429':
          description: Rate limit exceeded.
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
  /api/v1/review-packages/uploads/{uploadId}:
    get:
      operationId: getPackageUpload
      tags:
      - Package uploads
      summary: getPackageUpload
      description: Actor/workspace-bound private byte transfer. Completed upload bundles are not published packages. Chunk offsets use a fixed 4 MiB grid; exact retries preserve the original bytes. Current membership and credential scope are checked on every operation. No content or Blob credentials are served by these routes.
      security:
      - bearerAuth:
        - commentary.review_packages.read
      x-commentary-feature-key: review_packages.agent_api
      x-commentary-additional-feature-keys:
      - review_packages.basic
      parameters:
      - name: uploadId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Private upload status or immutable package revision result.
          headers:
            ETag:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectAgentgetPackageUploadOutput'
        '400':
          description: Invalid manifest/chunk/checksum or missing retry key.
        '401':
          description: Authentication required.
        '403':
          description: Current actor/workspace/grant access denied.
        '409':
          description: Expired/canceled upload, missing chunks, or conflicting retry.
        '413':
          description: Actual request bytes exceed the bound.
        '429':
          description: Rate limit exceeded.
    delete:
      operationId: cancelPackageUpload
      tags:
      - Package uploads
      summary: cancelPackageUpload
      description: Actor/workspace-bound private byte transfer. Completed upload bundles are not published packages. Chunk offsets use a fixed 4 MiB grid; exact retries preserve the original bytes. Current membership and credential scope are checked on every operation. No content or Blob credentials are served by these routes.
      security:
      - bearerAuth:
        - commentary.review_packages.write
      x-commentary-feature-key: review_packages.agent_api
      x-commentary-additional-feature-keys:
      - review_packages.basic
      parameters:
      - name: uploadId
        in: path
        required: true
        schema:
          type: string
      - name: Idempotency-Key
        in: header
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 200
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties: {}
              required: []
      responses:
        '200':
          description: Private upload status or immutable package revision result.
          headers:
            ETag:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectAgentcancelPackageUploadOutput'
        '400':
          description: Invalid manifest/chunk/checksum or missing retry key.
        '401':
          description: Authentication required.
        '403':
          description: Current actor/workspace/grant access denied.
        '409':
          description: Expired/canceled upload, missing chunks, or conflicting retry.
        '413':
          description: Actual request bytes exceed the bound.
        '429':
          description: Rate limit exceeded.
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
  /api/v1/review-packages/uploads/{uploadId}/chunks:
    post:
      operationId: transferPackageChunk
      tags:
      - Package uploads
      summary: transferPackageChunk
      description: Actor/workspace-bound private byte transfer. Completed upload bundles are not published packages. Chunk offsets use a fixed 4 MiB grid; exact retries preserve the original bytes. Current membership and credential scope are checked on every operation. No content or Blob credentials are served by these routes.
      security:
      - bearerAuth:
        - commentary.review_packages.write
      x-commentary-feature-key: review_packages.agent_api
      x-commentary-additional-feature-keys:
      - review_packages.basic
      parameters:
      - name: uploadId
        in: path
        required: true
        schema:
          type: string
      - name: Idempotency-Key
        in: header
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 200
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                offset:
                  type: integer
                  minimum: 0
                  maximum: 262144000
                sha256:
                  type: string
                  pattern: ^[a-f0-9]{64}$
                contentBase64:
                  type: string
                  maxLength: 5592408
                  pattern: ^[A-Za-z0-9+/]*={0,2}$
              required:
              - offset
              - sha256
              - contentBase64
      responses:
        '200':
          description: Private upload status or immutable package revision result.
          headers:
            ETag:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectAgenttransferPackageChunkOutput'
        '400':
          description: Invalid manifest/chunk/checksum or missing retry key.
        '401':
          description: Authentication required.
        '403':
          description: Current actor/workspace/grant access denied.
        '409':
          description: Expired/canceled upload, missing chunks, or conflicting retry.
        '413':
          description: Actual request bytes exceed the bound.
        '429':
          description: Rate limit exceeded.
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
  /api/v1/review-packages/uploads/{uploadId}/finalize:
    post:
      operationId: finalizePackageUpload
      tags:
      - Package uploads
      summary: finalizePackageUpload
      description: Actor/workspace-bound private byte transfer. Completed upload bundles are not published packages. Chunk offsets use a fixed 4 MiB grid; exact retries preserve the original bytes. Current membership and credential scope are checked on every operation. No content or Blob credentials are served by these routes.
      security:
      - bearerAuth:
        - commentary.review_packages.write
      x-commentary-feature-key: review_packages.agent_api
      x-commentary-additional-feature-keys:
      - review_packages.basic
      parameters:
      - name: uploadId
        in: path
        required: true
        schema:
          type: string
      - name: Idempotency-Key
        in: header
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 200
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties: {}
              required: []
      responses:
        '200':
          description: Private upload status or immutable package revision result.
          headers:
            ETag:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectAgentfinalizePackageUploadOutput'
        '400':
          description: Invalid manifest/chunk/checksum or missing retry key.
        '401':
          description: Authentication required.
        '403':
          description: Current actor/workspace/grant access denied.
        '409':
          description: Expired/canceled upload, missing chunks, or conflicting retry.
        '413':
          description: Actual request bytes exceed the bound.
        '429':
          description: Rate limit exceeded.
    servers:
    - url: https://commentary.dev
      description: Configured Commentary origin.
    - url: http://localhost:3000
      description: Local development.
components:
  schemas:
    ProjectAgentUpload:
      type: object
      additionalProperties: false
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 512
          pattern: ^[^\s]+$
        workspaceId:
          type: string
          minLength: 1
          maxLength: 512
          pattern: ^[^\s]+$
        bytes:
          type: integer
          minimum: 0
          maximum: 262144000
        receivedBytes:
          type: integer
          minimum: 0
          maximum: 262144000
        maxChunkBytes:
          type: integer
          minimum: 1
          maximum: 4194304
        sha256:
          type: string
          pattern: ^[a-f0-9]{64}$
        state:
          type: string
          enum:
          - uploading
          - validating
          - complete
          - expired
          - failed
          - canceled
        expiresAt:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$
        manifestSha256:
          type: string
          pattern: ^[a-f0-9]{64}$
        receivedChunks:
          type: array
          items:
            type: object
            additionalProperties: false
            properties:
              offset:
                type: integer
                minimum: 0
                maximum: 262144000
              bytes:
                type: integer
                minimum: 1
                maximum: 4194304
              sha256:
                type: string
                pattern: ^[a-f0-9]{64}$
            required:
            - offset
            - bytes
            - sha256
          maxItems: 63
          minItems: 0
        bundle:
          anyOf:
          - $ref: '#/components/schemas/ProjectAgentUploadBundle'
          - type: 'null'
      required:
      - id
      - workspaceId
      - bytes
      - receivedBytes
      - maxChunkBytes
      - sha256
      - state
      - expiresAt
      - manifestSha256
      - receivedChunks
      - bundle
    ProjectAgentUploadFile:
      type: object
      additionalProperties: false
      properties:
        path:
          type: string
          minLength: 1
          maxLength: 1024
          pattern: ^(?!/)(?!.*(?:^|/)\.\.?(?:/|$))[^\\\u0000]+$
        bytes:
          type: integer
          minimum: 0
          maximum: 26214400
        sha256:
          type: string
          pattern: ^[a-f0-9]{64}$
        mime:
          type: string
          maxLength: 200
      required:
      - path
      - bytes
      - sha256
      - mime
    ProjectAgentgetPackageUploadOutput:
      type: object
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/ProjectAgentUpload'
        idempotencyReplayed:
          type: boolean
      required:
      - data
    ProjectAgentcancelPackageUploadOutput:
      type: object
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/ProjectAgentUpload'
        idempotencyReplayed:
          type: boolean
      required:
      - data
    ProjectAgentpreparePackageUploadOutput:
      type: object
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/ProjectAgentUpload'
        idempotencyReplayed:
          type: boolean
      required:
      - data
    ProjectAgentUploadManifest:
      type: object
      additionalProperties: false
      properties:
        files:
          type: array
          items:
            $ref: '#/components/schemas/ProjectAgentUploadFile'
          maxItems: 10000
          minItems: 1
      required:
      - files
    ProjectAgenttransferPackageChunkOutput:
      type: object
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/ProjectAgentUpload'
        idempotencyReplayed:
          type: boolean
      required:
      - data
    ProjectAgentfinalizePackageUploadOutput:
      type: object
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/ProjectAgentUploadBundle'
        idempotencyReplayed:
          type: boolean
      required:
      - data
    ProjectAgentUploadBundle:
      type: object
      additionalProperties: false
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 512
          pattern: ^[^\s]+$
        workspaceId:
          type: string
          minLength: 1
          maxLength: 512
          pattern: ^[^\s]+$
        manifestSha256:
          type: string
          pattern: ^[a-f0-9]{64}$
        sha256:
          type: string
          pattern: ^[a-f0-9]{64}$
        bytes:
          type: integer
          minimum: 0
          maximum: 262144000
        files:
          type: array
          items:
            type: object
            additionalProperties: false
            properties:
              key:
                type: string
                minLength: 1
                maxLength: 1024
                pattern: ^(?!/)(?!.*(?:^|/)\.\.?(?:/|$))[^\\\u0000]+$
              sha256:
                type: string
                pattern: ^[a-f0-9]{64}$
              etag:
                type: string
                pattern: ^[a-f0-9]{64}$
              sizeBytes:
                type: integer
                minimum: 0
                maximum: 26214400
              contentType:
                const: application/octet-stream
              path:
                type: string
                minLength: 1
                maxLength: 1024
                pattern: ^(?!/)(?!.*(?:^|/)\.\.?(?:/|$))[^\\\u0000]+$
              detectedMime:
                type: string
                maxLength: 200
            required:
            - key
            - sha256
            - etag
            - sizeBytes
            - contentType
            - path
            - detectedMime
          maxItems: 10000
          minItems: 1
      required:
      - id
      - workspaceId
      - manifestSha256
      - sha256
      - bytes
      - files
  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 (492 KB total) ---
# Full source: https://artifacts.apis.io/commentary-dev/openapi/commentary-dev-package-uploads-api-openapi.yml