Skip to main content
GET
List files
Lists the files stored in a workspace, newest first. Pass desktopId to filter to a single computer.

Query parameters

string
required
Workspace ID. Omitting it returns 400.
string
Computer ID to filter by. When omitted, every file in the workspace is returned, whichever computer it belongs to.

Response

array
File objects, ordered by created_at descending, newest first. An empty array when the workspace holds no files.
string
File ID. Pass it as id to the download and delete endpoints.
string
Original file name.
integer | null
Size in bytes, or null when no size was recorded.
string | null
MIME type, or null when none was recorded.
string
How the file entered the workspace: upload or export. Rows stored before this field existed are reported as export when they carry a desktop_id, and upload otherwise.
string | null
Computer the file is associated with, or null when it is not tied to one.
string
ISO 8601 creation timestamp.

Example

Response

Errors

Every error carries the shape {"error": "<message>"}.

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Query Parameters

workspaceId
string
required

Workspace ID. Required; omitting it is a 400.

desktopId
string

Restrict the list to files attached to one computer. Omitted, every file in the workspace is returned.

Response

List of files

files
object[]