Comma Sharing API
Visibility and link permissions for the public share view (/p/:id).
Visibility and link permissions for the public share view (/p/:id).
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/commareports-com:commareports-com-sharing-api"
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.
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: 3.2.0
info:
title: Commareports Com Sharing API
version: 1.0.0
contact:
url: https://commareports.com/contact
description: 'Operations tagged Sharing 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: Sharing
description: Visibility and link permissions for the public share view (/p/:id).
paths:
/reports/{id}/share:
parameters:
- $ref: '#/components/parameters/ReportId'
get:
tags:
- Sharing
operationId: getShareSettings
summary: Read share settings
description: 'Current visibility, link permission, whether a link password is set, staged-publishing state, and embed settings. Scope: `reports:read`.'
responses:
'200':
description: Share settings.
content:
application/json:
schema:
$ref: '#/components/schemas/ShareSettings'
'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'
put:
tags:
- Sharing
operationId: updateShareSettings
summary: Publish / unpublish and set the link audience
description: 'Change `visibility` (`private`, `team`, `registered`, `domain`, `public`), `public_permission` (`none`, `view`, `comment`, `edit`), `show_approved_only` (staged publishing: view-only audiences see the last approved revision), and/or `allowed_embed_origins` (the origins allowed to iframe the report via `/embed/{id}`; `[]` or `null` turns embedding off). `domain` (anyone signed in with a verified email on a listed domain) requires `allowed_email_domains`, e.g. `["acme.com"]`; send it again with the full list to change it. Requires manage access (`can_manage_report`: owner or admin) — an editor cannot flip a private report public. Scope: `sharing`.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SharePutRequest'
responses:
'200':
description: Updated share settings.
content:
application/json:
schema:
$ref: '#/components/schemas/ShareUpdated'
'400':
$ref: '#/components/responses/BadRequest'
'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
/reports/{id}/password:
parameters:
- $ref: '#/components/parameters/ReportId'
post:
tags:
- Sharing
operationId: setSharePassword
summary: Set or change the share-link password
description: 'Owner only. NOTE: unlike the rest of this API, the password endpoints authenticate with a Supabase user-session JWT (the signed-in browser path), not a `comma_sk_…` API token — an API token gets 401 here.'
security:
- supabaseSessionJwt: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
password:
type: string
description: Minimum length enforced server-side.
required:
- password
responses:
'200':
description: Password set.
content:
application/json:
schema:
$ref: '#/components/schemas/PasswordResult'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/ServerError'
delete:
tags:
- Sharing
operationId: clearSharePassword
summary: Clear the share-link password
description: Owner only; authenticates with a Supabase user-session JWT (see POST).
security:
- supabaseSessionJwt: []
responses:
'200':
description: Password cleared.
content:
application/json:
schema:
$ref: '#/components/schemas/PasswordResult'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/ServerError'
servers:
- url: https://commareports.com/api/v1
components:
schemas:
PasswordResult:
type: object
properties:
ok:
type: boolean
password_set:
type: boolean
required:
- ok
- password_set
ShareUpdated:
type: object
properties:
id:
type: string
format: uuid
visibility:
type: string
public_permission:
type: string
allowed_email_domains:
type: array
items:
type: string
show_approved_only:
type: boolean
allowed_embed_origins:
type: array
items:
type: string
embed_url:
type:
- string
- 'null'
description: '`/embed/{id}`, or null when embedding is off.'
embed_snippet:
type:
- string
- 'null'
description: Markup to paste into the host page, or null when embedding is off. Renders only while the report is public, its link permission isn't `none`, and it has no share password.
updated_at:
type: string
format: date-time
share_url:
type: string
required:
- id
- visibility
- public_permission
- show_approved_only
- allowed_embed_origins
- embed_url
- embed_snippet
- updated_at
- share_url
ShareSettings:
type: object
properties:
id:
type: string
format: uuid
visibility:
type: string
enum:
- private
- team
- registered
- public
- domain
public_permission:
type: string
enum:
- none
- view
- comment
- edit
allowed_email_domains:
type: array
items:
type: string
description: Email domains allowed to view. Empty unless visibility is 'domain'.
password_set:
type: boolean
show_approved_only:
type: boolean
approved_revision_id:
type:
- string
- 'null'
format: uuid
allowed_embed_origins:
type: array
items:
type: string
embed_url:
type:
- string
- 'null'
description: '`/embed/{id}`, or null when embedding is off.'
embed_snippet:
type:
- string
- 'null'
description: Markup to paste into the host page, or null when embedding is off. Renders only while the report is public, its link permission isn't `none`, and it has no share password.
updated_at:
type: string
format: date-time
share_url:
type: string
required:
- id
- visibility
- public_permission
- password_set
- show_approved_only
- allowed_embed_origins
- embed_url
- embed_snippet
- updated_at
- share_url
Error:
type: object
properties:
error:
type: string
required:
- error
SharePutRequest:
type: object
description: At least one property must be present.
minProperties: 1
properties:
visibility:
type: string
enum:
- private
- team
- registered
- domain
- public
allowed_email_domains:
type: array
items:
type: string
minItems: 1
description: Required with, and only accepted with, visibility 'domain'. Bare domains (e.g. 'acme.com'); lowercased and de-duplicated. Replaces the existing list.
public_permission:
type: string
enum:
- none
- view
- comment
- edit
show_approved_only:
type: boolean
allowed_embed_origins:
type:
- array
- 'null'
maxItems: 20
items:
type: string
pattern: ^(https:\/\/([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z]{2,}|http:\/\/localhost|http:\/\/127\.0\.0\.1)(:\d{1,5})?$
description: Bare origins (scheme + host + optional port, no path) allowed to iframe the report via `/embed/{id}`. https is required except for http://localhost and http://127.0.0.1. `[]` or `null` turns embedding off.
responses:
BadRequest:
description: Malformed body or invalid field.
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'
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'
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