Lochless Dashboards API

The Dashboards API from Lochless — 4 operation(s) for dashboards.

GitHub OpenAPI

Operations 7

GET /dashboards List dashboards (scope: dashboards:read) #
POST /dashboards Create a dashboard (scope: dashboards:write) #
GET /dashboards/{id} Fetch a dashboard (scope: dashboards:read) #
PATCH /dashboards/{id} Replace name/widgets/dateControl (scope: dashboards:write) #
DELETE /dashboards/{id} Delete a dashboard (scope: dashboards:write) #
POST /dashboards/{id}/render Compute all widgets over one snapshot (scope: dashboards:read) #
POST /dashboards/{id}/render/stream SSE per-widget render for slow canvases (scope: dashboards:read) #

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/lochless-io:lochless-io-dashboards-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

lochless-io-dashboards-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Synoptic Customer Dashboards API
  version: 1.0.0
  description: 'Token-authenticated programmatic surface for Synoptic: dashboards (CRUD + widgets + preview + render), ask and direct context retrieval. Authenticate with an org-scoped API key (Settings → API Keys) as a bearer token. A key carries scopes — the access grant — and is org-scoped: every request derives its org ONLY from the key, and sees every record of the workspace''s workspace connections, and none of anyone''s personal connections.


    Rate limits (per organization, per minute): 120 reads, 120 writes, 1,000 ingest calls, 10 pipeline-backed calls (ask / preview / render). Over the limit returns 429 with Retry-After. These are FLOORS, not exact ceilings: counters are held per web task and requests are not pinned to a task, so a caller is always allowed at least the stated number per minute and may in practice be allowed a small multiple of it. Do not build a client that depends on the extra headroom — it varies with how the service is scaled. Honour Retry-After instead.


    Per-key query limits (exact, shared across the service): each key may make 600 context searches plus asks per minute and run 20 at once. Over the rate returns 429 rate_limited; a 21st call while 20 run returns 429 concurrency_limited. Both carry Retry-After. A workspace can ask for higher limits.'
servers:
- url: /api/v1
security:
- ApiKey: []
tags:
- name: Dashboards
paths:
  /dashboards:
    get:
      summary: 'List dashboards (scope: dashboards:read)'
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          maximum: 100
          default: 25
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: '{ data: Dashboard[], next_cursor: string|null }'
        '401': {}
        '403': {}
        '429': {}
      tags:
      - Dashboards
      operationId: getDashboards
      x-operation-id-source: derived
    post:
      summary: 'Create a dashboard (scope: dashboards:write)'
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Dashboard'
      responses:
        '201':
          description: '{ id }'
        '400':
          description: invalid body
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401': {}
        '403': {}
        '409':
          description: 'idempotency_conflict: Idempotency-Key reused with a different body'
        '429': {}
      tags:
      - Dashboards
      operationId: postDashboards
      x-operation-id-source: derived
  /dashboards/{id}:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
    get:
      summary: 'Fetch a dashboard (scope: dashboards:read)'
      responses:
        '200': {}
        '404': {}
      tags:
      - Dashboards
      operationId: getDashboardsById
      x-operation-id-source: derived
    patch:
      summary: 'Replace name/widgets/dateControl (scope: dashboards:write)'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Dashboard'
      responses:
        '200':
          description: '{ ok: true }'
        '400': {}
        '404': {}
      tags:
      - Dashboards
      operationId: patchDashboardsById
      x-operation-id-source: derived
    delete:
      summary: 'Delete a dashboard (scope: dashboards:write)'
      responses:
        '200':
          description: '{ ok: true }'
      tags:
      - Dashboards
      operationId: deleteDashboardsById
      x-operation-id-source: derived
  /dashboards/{id}/render:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
    post:
      summary: 'Compute all widgets over one snapshot (scope: dashboards:read)'
      description: 'Long renders keep the connection warm: the 200 body may begin with whitespace keepalives (newlines, one every ~20s) before the single JSON document — insignificant leading whitespace per RFC 8259, skipped by every standard JSON parser, so res.json()/jq work unchanged. A failure after the response has started arrives as the standard error envelope ({ error: { code, message, request_id } }) in that body; check for an `error` key, not only the HTTP status.'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                asOf:
                  type: string
                  format: date
      responses:
        '200':
          description: '{ widgetResults, layouts, status, ... }'
        '404': {}
      tags:
      - Dashboards
      operationId: postDashboardsByIdRender
      x-operation-id-source: derived
  /dashboards/{id}/render/stream:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
    post:
      summary: 'SSE per-widget render for slow canvases (scope: dashboards:read)'
      responses:
        '200':
          description: text/event-stream of meta / widget / done frames
        '404': {}
      tags:
      - Dashboards
      operationId: postDashboardsByIdRenderStream
      x-operation-id-source: derived
components:
  schemas:
    Dashboard:
      type: object
      required:
      - name
      properties:
        name:
          type: string
        widgets:
          type: array
          maxItems: 50
          items:
            $ref: '#/components/schemas/Widget'
        dateControl:
          type: object
    Widget:
      type: object
      required:
      - type
      - prompt
      properties:
        type:
          type: string
          enum:
          - number
          - over_time
          - breakdown
          - share
          - over_time_by_group
          - table
          - narrative
          - status_kpi
          - before_after
          - timeline
          - quote
          - checklist
          - param_block
        prompt:
          type: string
          description: The widget's NL subject. Untrusted free text — stored, never interpreted.
        title:
          type: string
          maxLength: 80
          description: Optional short heading for the card. Omit and the heading is derived from the subject. Display-only — never compiled or executed, so it cannot change what the widget computes.
        spec:
          type: object
          description: Deliverable widgets only (status_kpi/timeline/checklist/...). Display-only labels, never executed.
        params:
          type: object
          properties:
            metric:
              type: string
            dimension:
              type: string
            time_bucket:
              type: string
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Stable machine code. 400 invalid_request; 409 conflict (idempotency_conflict when an Idempotency-Key or call id is reused with different content); 413 payload_too_large.
            message:
              type: string
            request_id:
              type: string
          required:
          - code
          - message
          - request_id
      required:
      - error
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: sk_synoptic_*