Eraser · Schema

Eraser File

Schema for an Eraser file object with metadata and optional content

DiagramsDocumentationArtificial IntelligenceTechnical DocumentationDiagrammingArchitectureDeveloper Tools

Properties

Name Type Description
id string Unique file identifier
fileUrl string URL to view the file in Eraser
title string File name
author string Creator's user ID
folderId stringnull Parent folder ID, or null if at root
createdAt string ISO 8601 creation timestamp
updatedAt string ISO 8601 last modification timestamp
linkAccess string File link access permission level
content object File content (present in single-file responses)
View JSON Schema on GitHub

JSON Schema

eraser-file-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/eraser/main/json-schema/eraser-file-schema.json",
  "title": "Eraser File",
  "description": "Schema for an Eraser file object with metadata and optional content",
  "type": "object",
  "required": ["id", "fileUrl", "title", "author", "createdAt", "updatedAt", "linkAccess"],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique file identifier"
    },
    "fileUrl": {
      "type": "string",
      "format": "uri",
      "description": "URL to view the file in Eraser"
    },
    "title": {
      "type": "string",
      "description": "File name"
    },
    "author": {
      "type": "string",
      "description": "Creator's user ID"
    },
    "folderId": {
      "type": ["string", "null"],
      "description": "Parent folder ID, or null if at root"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 creation timestamp"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 last modification timestamp"
    },
    "linkAccess": {
      "type": "string",
      "enum": [
        "no-link-access",
        "anyone-with-link-can-edit",
        "publicly-viewable",
        "publicly-editable",
        "sso-readable",
        "sso-editable"
      ],
      "description": "File link access permission level"
    },
    "content": {
      "type": "object",
      "description": "File content (present in single-file responses)",
      "properties": {
        "document": {
          "type": "string",
          "description": "Markdown content of the file's document"
        },
        "elements": {
          "type": "array",
          "description": "Canvas elements in the file",
          "items": {
            "$ref": "#/$defs/CanvasElement"
          }
        }
      }
    }
  },
  "$defs": {
    "CanvasElement": {
      "type": "object",
      "required": ["id", "type"],
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique element identifier"
        },
        "type": {
          "type": "string",
          "description": "Element category (e.g., diagram, rectangle, ellipse)"
        },
        "diagramType": {
          "type": "string",
          "enum": [
            "sequence-diagram",
            "entity-relationship-diagram",
            "cloud-architecture-diagram",
            "flowchart-diagram",
            "bpmn-diagram"
          ],
          "description": "Diagram type (required when type is 'diagram')"
        },
        "code": {
          "type": "string",
          "description": "Eraser DSL code for the diagram element"
        },
        "x": {
          "type": "number",
          "description": "Horizontal canvas position"
        },
        "y": {
          "type": "number",
          "description": "Vertical canvas position"
        },
        "width": {
          "type": "number",
          "description": "Element width in canvas units"
        },
        "height": {
          "type": "number",
          "description": "Element height in canvas units"
        }
      }
    }
  }
}

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/eraser-file"
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 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. See our Privacy Policy and Terms.

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