v1

latestOpenAPI 3.1.02026-07-2418848.0 KB

Get a file

Retrieves a single file including its document content and canvas elements.

get/api/files/{fileId}

Path parameters

fileIdstring required

ID of the file to retrieve

Response

The file with its content

idstring required

Unique identifier for the file

fileUrlstring required

URL to view the file in Eraser

titlestring required

Title of the file

authorstring required

User ID of the file author

folderIdstring nullable required

ID of the folder containing the file, or null if not in a folder

createdAtstring date-time required

ISO 8601 timestamp of when the file was created

updatedAtstring date-time required

ISO 8601 timestamp of when the file was last updated

linkAccess'no-link-access' | 'anyone-with-link-can-edit' | 'publicly-viewable' | 'publicly-editable' | 'sso-readable' | 'sso-editable' required

Current link access setting for the file

Example response

{
  "fileUrl": "https://app.eraser.io/workspace/abc123",
  "title": "System Architecture"
}