Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Eraser Diagram Elements API

Manage diagram elements within files

Eraser Diagram Elements API is one of 7 APIs that Eraser publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Diagram Elements. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and a getting-started guide.

This API exposes 5 operations across 2 paths, and defines 6 schemas. It is described by OpenAPI 3.0.3, at version v1.0.

Requests are made against a single base URL, https://app.eraser.io.

5 operations 2 paths 6 schemas 1 DELETE2 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
v1.0
Base URL
https://app.eraser.io
Authentication
HTTP Bearer, API Key
Terms of Service
Resource Areas
1

Authentication & Security 2

Eraser Diagram Elements API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). An API key is passed in the header as Authorization (auditApiKey). By default, every request must be authenticated.

  • bearerAuth — Team-specific API bearer token from Eraser settings
  • auditApiKey — Audit-specific API key for accessing audit log endpoints

Paths & Operations 5

Across 2 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Diagram Elements 5

Manage diagram elements within files

POST
/api/files/{fileId}/diagrams
Create a diagram in a file
createDiagram 1 param body → 200400401403404500
GET
/api/files/{fileId}/diagrams
List diagrams in a file
listDiagrams 1 param → 200400401403404500
GET
/api/files/{fileId}/diagrams/{diagramId}
Get a diagram
getDiagram 2 params → 200400401403404500
PUT
/api/files/{fileId}/diagrams/{diagramId}
Update a diagram
updateDiagram 2 params body → 200400401403404500
DELETE
/api/files/{fileId}/diagrams/{diagramId}
Delete a diagram
deleteDiagram 2 params → 200400401403404500

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are Diagram (5 properties), CreateDiagramRequest (2 properties), DeleteDiagramResponse (2 properties), Error (1 property). Each schema is shown below with its type and property counts.

Diagram
object
5 properties 5 required
UpdateDiagramRequest
object
1 property 1 required
DeleteDiagramResponse
object
2 properties 2 required
DiagramType
string
Type of Eraser diagram
Error
object
1 property
CreateDiagramRequest
object
2 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

eraser-diagram-elements-api-openapi.yml Raw ↑

Other APIs Eraser publishes across the network.

Eraser AI Requests API
Eraser Audit Logs API
Eraser Diagrams (AI) API
Eraser Files API
Eraser Folders API
Eraser Usage Metrics API