Comma Assets API

Files attached to a report (images, stylesheets, data). Limits: 25 MB per file, 250 MB and 500 files per report.

GitHub OpenAPI

Operations 3

GET /reports/{id}/assets List a report's assets #
POST /reports/{id}/assets Upload one asset #
DELETE /reports/{id}/assets/{assetId} Remove an asset #

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/commareports-com:commareports-com-assets-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

commareports-com-assets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Commareports Com Assets API
  version: 1.0.0
  contact:
    url: https://commareports.com/contact
  description: 'Operations tagged Assets across 2 of this provider''s published API definitions: commareports-com-openapi.json, commareports-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://commareports.com/api/v1
security:
- commaApiToken: []
tags:
- name: Assets
  description: 'Files attached to a report (images, stylesheets, data). Limits: 25 MB per file, 250 MB and 500 files per report.'
paths:
  /reports/{id}/assets:
    parameters:
    - $ref: '#/components/parameters/ReportId'
    get:
      tags:
      - Assets
      operationId: listAssets
      summary: List a report's assets
      description: 'Each asset has a stable public URL suitable for referencing from the report HTML. Scope: `reports:read`.'
      responses:
        '200':
          description: Assets.
          content:
            application/json:
              schema:
                type: object
                properties:
                  assets:
                    type: array
                    items:
                      $ref: '#/components/schemas/Asset'
                required:
                - assets
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    post:
      tags:
      - Assets
      operationId: uploadAsset
      summary: Upload one asset
      description: 'Binary content travels base64-encoded in `content_base64` (a `data:` URL prefix is tolerated). Re-uploading the same `relative_path` replaces the prior asset. Limits: 25 MB per file (413), 250 MB total per report (413), 500 files per report (422). Requires edit access. Scope: `reports:write`.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetUploadRequest'
      responses:
        '201':
          description: Asset stored.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Asset'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://commareports.com/api/v1
  /reports/{id}/assets/{assetId}:
    parameters:
    - $ref: '#/components/parameters/ReportId'
    - name: assetId
      in: path
      required: true
      schema:
        type: string
        format: uuid
    delete:
      tags:
      - Assets
      operationId: deleteAsset
      summary: Remove an asset
      description: 'Requires edit access. Scope: `reports:write`.'
      responses:
        '200':
          $ref: '#/components/responses/Deleted'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://commareports.com/api/v1
components:
  responses:
    UnprocessableEntity:
      description: Semantically invalid (e.g. plan ceiling exceeded, per-report asset count over 500).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, invalid, revoked, or expired token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Deleted:
      description: Deleted.
      content:
        application/json:
          schema:
            type: object
            properties:
              deleted:
                type: boolean
                const: true
            required:
            - deleted
    Forbidden:
      description: Token missing the required scope, or no access to the resource.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: 'Rate limit exceeded. Rate limit: per-token sliding window (plan-aware — Free 60 req/min, Pro 600, Team/Enterprise 6000 by default); 429 responses carry a Retry-After header.'
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait before retrying.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found (also returned instead of 403 where existence must not leak).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PayloadTooLarge:
      description: Payload exceeds a size limit (HTML > 5 MB; asset > 25 MB per file or > 250 MB per report).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Malformed body or invalid field.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    AssetUploadRequest:
      type: object
      properties:
        relative_path:
          type: string
          maxLength: 512
          description: e.g. 'images/hero.png' — no leading slash, no '.'/'..' segments, no '%', '?' or '#'.
        content_base64:
          type: string
          description: Base64 bytes ('data:' URL prefix tolerated). Max 25 MB decoded.
        content_type:
          type: string
          maxLength: 120
          description: Defaults to application/octet-stream.
      required:
      - relative_path
      - content_base64
    Asset:
      type: object
      properties:
        id:
          type: string
          format: uuid
        relative_path:
          type: string
        mime:
          type: string
        size_bytes:
          type: integer
        created_at:
          type: string
          format: date-time
        url:
          type: string
          format: uri
          description: Stable public URL.
      required:
      - id
      - relative_path
      - mime
      - size_bytes
      - created_at
      - url
    Error:
      type: object
      properties:
        error:
          type: string
      required:
      - error
  parameters:
    ReportId:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
      description: Report id.
  securitySchemes:
    commaApiToken:
      type: http
      scheme: bearer
      bearerFormat: comma_sk_…
      description: Comma personal API token (Settings → API tokens). Scoped, revocable, optionally expiring. The same token also authenticates the MCP server at /api/mcp.
    supabaseSessionJwt:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase user-session access token — the signed-in browser path. Only accepted where an operation explicitly lists it.
x-refined-from:
- commareports-com-openapi.json
- commareports-com-openapi.yml