Stable Baseline Data API
CSV / JSON / TSV uploads for Vega/Vega-Lite charts.
CSV / JSON / TSV uploads for Vega/Vega-Lite charts.
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/stablebaseline-io:stablebaseline-io-data-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: Stable Baseline REST Data API
version: 0.4.0
description: 'REST adapter over the Stable Baseline MCP tool catalogue. Every operation maps 1:1 to an MCP tool; the same handlers serve both surfaces. Auth: OAuth 2.1 (Bearer) or API key with prefix `sta_*` (also Bearer). The full tool catalogue and per-category guides live at https://stablebaseline.io/docs/mcp.'
contact:
name: Stable Baseline
url: https://stablebaseline.io/contact
license:
name: Proprietary SaaS, see Terms
url: https://stablebaseline.io/terms
servers:
- url: https://api.stablebaseline.io/functions/v1/cloud-serve/api/v1
description: Production
security:
- bearerAuth: []
tags:
- name: Data
description: CSV / JSON / TSV uploads for Vega/Vega-Lite charts.
paths:
/tools/createVegaDataUploadSession:
post:
summary: createVegaDataUploadSession
description: Create a PUT upload URL for a Vega/Vega-Lite data file. Use returned assetUrl in your Vega spec.
operationId: createVegaDataUploadSession
tags:
- Data
parameters:
- name: Idempotency-Key
in: header
required: false
description: 'Optional. Any 1 to 255 visible characters, new for each request you mean to make once (a UUID works). Kept 24 hours for your API key and organisation: the same key with the same request again returns the first answer (with the header Idempotent-Replayed: true) and does nothing twice; while the first call is still running, 409 with code idempotency_key_in_use and Retry-After; the same key with a different request, 422 with code idempotency_key_reused. A call that answered with an error frees its key, so the retry runs again.'
schema:
type: string
minLength: 1
maxLength: 255
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
projectId:
type: string
description: 'Optional. Narrows a friendly-id lookup to one project. Only needed when a friendly id is ambiguous: TAS-/IMP-/PLN- ids are numbered per PROJECT, so the same id can exist in several. Ignored when the id is a UUID.'
documentId:
type: string
fileName:
type: string
description: Original filename (e.g. sales-data.csv). Extension auto-detects content type.
contentType:
type: string
description: MIME type override. Auto-detected from extension if omitted.
required:
- documentId
- fileName
responses:
'200':
description: 'Tool result (shape varies per tool: refer to the tool''s docs for the exact return value).'
headers:
Idempotent-Replayed:
description: 'true when this is the first answer for the same Idempotency-Key, replayed: nothing was done again.'
schema:
type: string
enum:
- 'true'
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
description: Validation error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid credentials.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Authenticated but lacking the required permission or feature flag.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: 'Conflict: the record changed since you read it, or one with that name already exists. Read it again, then retry. With the code `idempotency_key_in_use`, a call with the same Idempotency-Key is still running: nothing new was started; send the same request again after the Retry-After header''s seconds.'
headers:
Retry-After:
description: Whole seconds to wait before sending the same request again. Sent with the code `idempotency_key_in_use`.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: 'Body did not match the tool''s input schema. With the code `idempotency_key_reused`, the Idempotency-Key was already used for a different request: send a new key.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'423':
description: 'The credential is valid but its organisation''s own database is locked (code `org_locked`, details.action `contact_admin`). Not a sign-in problem: signing in again does not help.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: 'Too many requests. With the code `rate_limited`, the organisation is past its request limit: wait the number of seconds in the Retry-After header, then try again. Any other code is a limit of the tool itself.'
headers:
Retry-After:
description: Whole seconds to wait before trying again. Sent with the code `rate_limited`.
schema:
type: integer
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/RateLimitedResponse'
- $ref: '#/components/schemas/ErrorResponse'
'500':
description: Server error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: 'Not available for a moment. Either the credential is valid but its organisation''s own database cannot be reached right now (code `org_unavailable`), or the credential could not be checked right now for a reason of ours (code `service_unavailable`: it was not judged, so keep it and do not sign in again). Either way details.action is `retry_later`: try again after the Retry-After header''s seconds.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/tools/deleteVegaDataFile:
post:
summary: deleteVegaDataFile
description: Delete a data file attachment from a document.
operationId: deleteVegaDataFile
tags:
- Data
parameters:
- name: Idempotency-Key
in: header
required: false
description: 'Optional. Any 1 to 255 visible characters, new for each request you mean to make once (a UUID works). Kept 24 hours for your API key and organisation: the same key with the same request again returns the first answer (with the header Idempotent-Replayed: true) and does nothing twice; while the first call is still running, 409 with code idempotency_key_in_use and Retry-After; the same key with a different request, 422 with code idempotency_key_reused. A call that answered with an error frees its key, so the retry runs again.'
schema:
type: string
minLength: 1
maxLength: 255
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
projectId:
type: string
description: 'Optional. Narrows a friendly-id lookup to one project. Only needed when a friendly id is ambiguous: TAS-/IMP-/PLN- ids are numbered per PROJECT, so the same id can exist in several. Ignored when the id is a UUID.'
documentId:
type: string
attachmentId:
type: string
description: Attachment ID to delete.
required:
- documentId
- attachmentId
responses:
'200':
description: 'Tool result (shape varies per tool: refer to the tool''s docs for the exact return value).'
headers:
Idempotent-Replayed:
description: 'true when this is the first answer for the same Idempotency-Key, replayed: nothing was done again.'
schema:
type: string
enum:
- 'true'
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
description: Validation error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid credentials.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Authenticated but lacking the required permission or feature flag.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: 'Conflict: the record changed since you read it, or one with that name already exists. Read it again, then retry. With the code `idempotency_key_in_use`, a call with the same Idempotency-Key is still running: nothing new was started; send the same request again after the Retry-After header''s seconds.'
headers:
Retry-After:
description: Whole seconds to wait before sending the same request again. Sent with the code `idempotency_key_in_use`.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: 'Body did not match the tool''s input schema. With the code `idempotency_key_reused`, the Idempotency-Key was already used for a different request: send a new key.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'423':
description: 'The credential is valid but its organisation''s own database is locked (code `org_locked`, details.action `contact_admin`). Not a sign-in problem: signing in again does not help.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: 'Too many requests. With the code `rate_limited`, the organisation is past its request limit: wait the number of seconds in the Retry-After header, then try again. Any other code is a limit of the tool itself.'
headers:
Retry-After:
description: Whole seconds to wait before trying again. Sent with the code `rate_limited`.
schema:
type: integer
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/RateLimitedResponse'
- $ref: '#/components/schemas/ErrorResponse'
'500':
description: Server error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: 'Not available for a moment. Either the credential is valid but its organisation''s own database cannot be reached right now (code `org_unavailable`), or the credential could not be checked right now for a reason of ours (code `service_unavailable`: it was not judged, so keep it and do not sign in again). Either way details.action is `retry_later`: try again after the Retry-After header''s seconds.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ErrorResponse:
type: object
properties:
error:
type: object
properties:
code:
type: string
description: Stable error code (e.g. `permission_denied`, `not_found`, `validation_failed`).
message:
type: string
description: Human-readable explanation.
details:
type: object
additionalProperties: true
description: Optional context.
required:
- code
- message
required:
- error
RateLimitedResponse:
type: object
properties:
error:
type: object
properties:
code:
type: string
description: Always `rate_limited`.
message:
type: string
description: One sentence saying the organisation is past its limit and how long to wait.
retry_after:
type: integer
description: Whole seconds to wait before trying again. The same value as the Retry-After header.
rate:
type: number
description: How many requests a second the organisation may send, across all its API keys and connections.
burst:
type: number
description: How many requests it may send at once after a quiet spell.
required:
- code
- message
- retry_after
- rate
- burst
required:
- error
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Either an MCP API key (prefix `sta_`, mint at https://app.stablebaseline.io/settings/developers) or an OAuth 2.1 access token. Every OAuth endpoint lives under this function, and the authoritative list is at https://api.stablebaseline.io/functions/v1/cloud-serve/.well-known/oauth-authorization-server: authorise at https://api.stablebaseline.io/functions/v1/cloud-serve/oauth/authorize, exchange at https://api.stablebaseline.io/functions/v1/cloud-serve/oauth/token.'