Folders

List files in a folder

Changed on

Lists the folder's files, most recently added first. This endpoint has no tool, kind, search or favorites filters; use GET /files with the workspace query parameter for those.

get/workspaces/{id}/files

Request

  • Base URL: https://api.varg.ai/v2
  • URL: https://api.varg.ai/v2/workspaces/{id}/files
  • Auth: HTTP bearer

Path parameters

idstring required

Folder id (uuid) or slug.

Query parameters

limitinteger
cursorinteger

Offset returned as nextCursor by the previous page.

Response

Page of files

nextCursorinteger nullable required

Example response

{
  "data": [
    {
      "id": "file_abc123"
    }
  ]
}

Changes