Comma Routines API
Scheduled regeneration: a routine fires a webhook or runs a skill on a cron and appends the output as a new revision.
Scheduled regeneration: a routine fires a webhook or runs a skill on a cron and appends the output as a new revision.
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-routines-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 Routines API
version: 1.0.0
contact:
url: https://commareports.com/contact
description: 'Operations tagged Routines 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: Routines
description: 'Scheduled regeneration: a routine fires a webhook or runs a skill on a cron and appends the output as a new revision.'
paths:
/routines:
get:
tags:
- Routines
operationId: listRoutines
summary: List routines
description: 'The token owner''s routines, newest first (max 200). Scope: `routines`.'
responses:
'200':
description: Routines.
content:
application/json:
schema:
type: object
properties:
routines:
type: array
items:
$ref: '#/components/schemas/Routine'
required:
- routines
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
post:
tags:
- Routines
operationId: createRoutine
summary: Create a routine
description: 'Schedule regeneration of a report on a 5-field cron. Provide `trigger_url` (webhook mode — Comma calls your endpoint on each tick) and/or `skill_id` (in-Comma run mode — the skill executes and appends a revision); at least one is required. Requires edit access on `report_id`. Plan ceilings (max routines / schedule floor) return 422. Scope: `routines`.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RoutineCreateRequest'
responses:
'201':
description: Routine created.
content:
application/json:
schema:
$ref: '#/components/schemas/Routine'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
servers:
- url: https://commareports.com/api/v1
/routines/{id}:
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
get:
tags:
- Routines
operationId: getRoutine
summary: Fetch one routine
description: 'Owner-scoped. Scope: `routines`.'
responses:
'200':
description: The routine.
content:
application/json:
schema:
$ref: '#/components/schemas/Routine'
'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'
patch:
tags:
- Routines
operationId: updateRoutine
summary: Update a routine
description: 'Any subset of the create fields (except `report_id`). Changing `schedule_cron` recomputes `next_run_at`. Scope: `routines`.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RoutinePatchRequest'
responses:
'200':
description: Updated routine.
content:
application/json:
schema:
$ref: '#/components/schemas/Routine'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
delete:
tags:
- Routines
operationId: deleteRoutine
summary: Delete a routine
description: 'Also drops its run history. Scope: `routines`.'
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
/routines/{id}/run:
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
post:
tags:
- Routines
operationId: runRoutine
summary: Run a routine immediately
description: 'Executes the routine outside its schedule. Also accepts a Supabase user-session JWT (the in-app "Run now" button). Responses: 200 synchronous success, 202 accepted (skill run dispatched to a background workflow — poll `GET /routines/{id}` for the outcome), 402 AI-compute cap exceeded, 502 the run or workflow dispatch failed. Scope: `routines`.'
security:
- commaApiToken: []
- supabaseSessionJwt: []
responses:
'200':
description: Run completed.
content:
application/json:
schema:
$ref: '#/components/schemas/RoutineRunResult'
'202':
description: Run accepted; executing asynchronously.
content:
application/json:
schema:
$ref: '#/components/schemas/RoutineRunResult'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
description: Plan / prepaid-credit compute cap exceeded.
content:
application/json:
schema:
$ref: '#/components/schemas/RoutineRunResult'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
'502':
description: The run failed.
content:
application/json:
schema:
$ref: '#/components/schemas/RoutineRunResult'
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'
BadRequest:
description: Malformed body or invalid field.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
RoutineCreateRequest:
type: object
description: At least one of trigger_url or skill_id is required.
properties:
report_id:
type: string
format: uuid
name:
type: string
maxLength: 200
description: Defaults to 'Untitled routine'.
schedule_cron:
type: string
description: Valid 5-field cron expression.
trigger_url:
type: string
format: uri
maxLength: 2048
description: 'Webhook mode: Comma POSTs here on each tick.'
trigger_auth_header:
type:
- string
- 'null'
maxLength: 1024
description: Encrypted at rest; never returned.
payload:
description: JSON forwarded to trigger_url; max 8 KiB serialized.
enabled:
type: boolean
default: true
skill_id:
type:
- string
- 'null'
format: uuid
description: 'In-Comma run mode: the skill executes and appends a revision. Must be owned by you.'
connector_ids:
type: array
items:
type: string
format: uuid
description: Connectors the skill may read through. Each must be owned by you.
required:
- report_id
- schedule_cron
RoutineRunResult:
type: object
properties:
ok:
type: boolean
run_id:
type:
- string
- 'null'
format: uuid
workflow_id:
type:
- string
- 'null'
description: Set when the run was dispatched to a background workflow (202).
deferred:
type: boolean
cap_exceeded:
type: boolean
error:
type:
- string
- 'null'
routine:
oneOf:
- $ref: '#/components/schemas/Routine'
- type: 'null'
required:
- ok
- deferred
- cap_exceeded
Routine:
type: object
properties:
id:
type: string
format: uuid
report_id:
type: string
format: uuid
name:
type: string
schedule_cron:
type: string
description: 5-field cron expression.
trigger_url:
type:
- string
- 'null'
format: uri
payload:
description: Arbitrary JSON forwarded verbatim to trigger_url on each tick.
enabled:
type: boolean
last_run_at:
type:
- string
- 'null'
format: date-time
last_run_status:
type:
- string
- 'null'
last_run_error:
type:
- string
- 'null'
next_run_at:
type:
- string
- 'null'
format: date-time
skill_id:
type:
- string
- 'null'
format: uuid
connector_ids:
type: array
items:
type: string
format: uuid
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
required:
- id
- report_id
- name
- schedule_cron
- enabled
- created_at
- updated_at
RoutinePatchRequest:
type: object
description: At least one property must be present.
minProperties: 1
properties:
name:
type: string
maxLength: 200
schedule_cron:
type: string
trigger_url:
type:
- string
- 'null'
format: uri
maxLength: 2048
description: null/'' clears it (when converting to skill mode).
trigger_auth_header:
type:
- string
- 'null'
maxLength: 1024
payload: {}
enabled:
type: boolean
skill_id:
type:
- string
- 'null'
format: uuid
connector_ids:
type: array
items:
type: string
format: uuid
Error:
type: object
properties:
error:
type: string
required:
- error
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