Get a diagram

Retrieves a specific diagram from a file.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Example request

curl --location 'https://app.eraser.io/api/files/abc123/diagrams/diag1' \
--header 'Authorization: Bearer $YOUR-TOKEN-HERE'

Example response

{
  "id": "diag1",
  "diagramUrl": "https://app.eraser.io/workspace/abc123?diagram=diag1&layout=canvas",
  "diagramType": "sequence-diagram",
  "code": "A > B: Hello",
  "updatedAt": "2025-07-15T09:30:00.000Z"
}
Path Params
string
required

ID of the file containing the diagram

string
required

ID of the diagram to retrieve

Responses

400

Invalid file ID or diagram ID

401

Missing or invalid bearer token

403

Unauthorized

404

File or diagram not found

500

Internal server error

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json