List files
GET
https://app.eraser.io/api/files Example request
curl --location 'https://app.eraser.io/api/files?limit=2&sort=-updatedAt' \
--header 'Authorization: Bearer $YOUR-TOKEN-HERE' Example response
{
"files": [
{
"id": "abc123",
"fileUrl": "https://app.eraser.io/workspace/abc123",
"title": "System Architecture",
"author": "user-id-1",
"folderId": null,
"createdAt": "2025-07-01T12:00:00.000Z",
"updatedAt": "2025-07-15T09:30:00.000Z",
"linkAccess": "no-link-access"
}
],
"nextCursor": "abc123"
} Query parameters
limit integer queryMaximum number of files to return (1-500). Defaults to 100.
cursor string queryCursor for pagination. Use `nextCursor` from a previous response.
folderId string queryFilter files by folder ID
sort string querySort field with optional `-` prefix for descending order. Defaults to `-updatedAt`.
createdAt-createdAtupdatedAt-updatedAt
author string queryFilter by author (user ID or email address)
Responses
200 – A paginated list of files
files object[] required8 fields Array of files in the current page
files object[] required8 fieldsid string requiredUnique identifier for the file
fileUrl string requiredURL to view the file in Eraser
title string requiredTitle of the file
author string requiredUser ID of the file author
folderId string | null requiredID of the folder containing the file, or null if not in a folder
createdAt string requiredISO 8601 timestamp of when the file was created
updatedAt string requiredISO 8601 timestamp of when the file was last updated
linkAccess string requiredCurrent link access setting for the file
no-link-accessanyone-with-link-can-editpublicly-viewablepublicly-editablesso-readablesso-editable
nextCursor string | null requiredCursor for the next page of results, or null if there are no more results
{
"files": [
{
"id": "string",
"fileUrl": "https://app.eraser.io/workspace/abc123",
"title": "System Architecture",
"author": "string",
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z",
"linkAccess": "no-link-access"
}
]
}