Skip to content

Today we’re launching Basedash as code. The Basedash public API now covers the configuration behind your charts and dashboards: every chart setting, dashboard verification, and the AI context on your tables and columns.

Configuring a BI tool usually means clicking through settings panels, one chart at a time, and hoping nobody changes them later. Now you can create, read, and update that configuration from your own code, and keep Basedash in sync with it.

The line “Basedash, as code.” above the subtitle “Charts, dashboards and AI context through the public API”.

Every endpoint lives under https://charts.basedash.com/api/public/organizations/{orgId} and takes a Bearer API key that belongs to a workspace admin.

Every chart setting, from the API

A PATCH request to a chart setting numericalFormat to CURRENCY, goalLineValue to 150000, and seriesColor to PURPLE, beside a purple monthly revenue bar chart with a dashed goal line at $150K.

POST /charts and PATCH /charts/{id} now accept the fields from the chart settings panel:

  • Number format: number, currency, or percentage, plus the currency code and full numbers
  • Labels and legend: the metric label and the legend
  • Goal line and axes: a goal line and the axis minimum and maximum
  • Bars and colors: stacked or grouped bars, and series and segment colors
  • Everything else: image and text properties, the map variant, and table column widths and pins
BASE="https://charts.basedash.com/api/public/organizations/$ORG_ID"

curl -X PATCH "$BASE/charts/$CHART_ID" \
  -H "Authorization: Bearer $BASEDASH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "numericalFormat": "CURRENCY",
    "currencyCode": "USD",
    "goalLineValue": 150000,
    "seriesColor": "PURPLE"
  }'

GET /charts/{id} and GET /dashboards/{dashboardId}/charts return the same fields, so you can read a chart’s full configuration, copy it to another chart, or keep it in sync. Every new field is optional, so your existing requests behave exactly as before.

Verify dashboards with one request

A PATCH request to a dashboard with the body verified true, above the Revenue overview dashboard header showing a green Verified chip.

Verified dashboards tell your team which numbers to trust. You can now verify one from code: send verified: true to PATCH /dashboards/{id}, or verified: false to remove the verification.

{ "verified": true }

Dashboard responses include verifiedAt and verifiedByMemberId, so you can see when a dashboard was verified and by whom. The same admin rule and audit log events apply as when you verify in the app.

AI context for every column

A PATCH request to a data source catalog setting the description of the amount column on the orders table to “Order total in USD, after refunds”, beside the AI context field for orders.amount showing the same text.

The AI context on your tables and columns is what helps Basedash understand your data. GET /data-sources/{id}/catalog lists a data source’s schemas, tables, and columns with their Basedash description (the AI context), the database’s own comment (read-only), their display name, and their visibility.

PATCH /data-sources/{id}/catalog updates descriptions, display names, and visibility in batches:

{
  "changes": [
    {
      "schemaName": "public",
      "tableName": "orders",
      "columnName": "amount",
      "description": "Order total in USD, after refunds",
      "expectedDescription": "Order total in USD"
    }
  ]
}
  • Up to 1000 changes per request. A batch applies all or nothing, so if any change fails, none of them do.
  • No silent overwrites. Add an optional expectedDescription, and the write is rejected with a 409 if someone changed the text since you read it.

Getting started

Basedash as code is available today through the public API.

  1. Sign up for Basedash or log in as a workspace admin
  2. Create an API key in Settings → API keys
  3. Send your first request to https://charts.basedash.com/api/public/organizations/{orgId}

Authentication, endpoints, and request formats are covered in the API reference. For everything else the API can do, see the Basedash developer platform launch.

Basedash, as code.

Written by

Max Musing avatar

Max Musing

Founder and CEO of Basedash

Max Musing is the founder and CEO of Basedash, an AI-native business intelligence platform designed to help teams explore analytics and build dashboards without writing SQL. His work focuses on applying large language models to structured data systems, improving query reliability, and building governed analytics workflows for production environments.

View full author profile →

Basedash lets you build charts, dashboards, and reports in seconds using all your data.