Triplit · Schema

Triplit Schema Response

Response from the /schema endpoint containing the database schema definition

DatabaseReal-TimeSyncLocal-FirstDeveloper ToolsTypeScriptOpen-Source

Properties

Name Type Description
type string Indicates whether the database has a defined schema or is schemaless
schema object The database schema definition (only present when type is 'schema')
View JSON Schema on GitHub

JSON Schema

triplit-schema-response-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://www.triplit.dev/schemas/schema-response",
  "title": "Triplit Schema Response",
  "description": "Response from the /schema endpoint containing the database schema definition",
  "type": "object",
  "required": ["type"],
  "properties": {
    "type": {
      "type": "string",
      "enum": ["schema", "schemaless"],
      "description": "Indicates whether the database has a defined schema or is schemaless"
    },
    "schema": {
      "type": "object",
      "description": "The database schema definition (only present when type is 'schema')",
      "properties": {
        "collections": {
          "type": "object",
          "description": "Map of collection names to their schema definitions",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "schema": {
                "type": "object",
                "description": "Collection field schema"
              },
              "rules": {
                "type": "object",
                "description": "Access control rules for this collection"
              }
            }
          }
        },
        "roles": {
          "type": "object",
          "description": "Role definitions for access control",
          "additionalProperties": true
        }
      }
    }
  },
  "additionalProperties": false
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/triplit-schema-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.