get
https://app.eraser.io/api/files//diagrams/
Retrieves a specific diagram from a file.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
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"
} 400Invalid file ID or diagram ID
401Missing or invalid bearer token
403Unauthorized
404File or diagram not found
500Internal server error