get
https://app.eraser.io/api/files/
Retrieves a single file including its document content and canvas elements.
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' \
--header 'Authorization: Bearer $YOUR-TOKEN-HERE'
Example response
{
"id": "abc123",
"fileUrl": "https://app.eraser.io/workspace/abc123",
"title": "My File",
"author": "user-id-1",
"folderId": null,
"createdAt": "2025-07-01T12:00:00.000Z",
"updatedAt": "2025-07-15T09:30:00.000Z",
"linkAccess": "no-link-access",
"content": {
"elements": [
{
"id": "elem1",
"type": "diagram",
"diagramType": "sequence-diagram",
"code": "A > B: Hello",
"x": 0,
"y": 0,
"width": 400,
"height": 300
}
],
"document": "# Hello\n\nThis is a test."
}
} 400Invalid file ID
401Missing or invalid bearer token
403Unauthorized
404File not found (or file is private, archived, a template, or belongs to a different team)
500Internal server error