Skip to main content
GET
List files in a session mount

Authorizations

x-api-key
string
header
default:your-project-api-key
required

Your Composio project API key. Create or copy it from the Composio dashboard.

Path Parameters

session_id
string<toolRouterSessionId>
required

The unique identifier of the tool router session

Example:

"trs_1a2b3c4d5e6f"

mount_id
string
required

ID of the storage mount

Minimum string length: 1
Example:

"files"

Query Parameters

cursor
string

Pagination cursor from the previous response next_cursor field

limit
number
default:100

Maximum number of files to return per page (1-500)

Required range: 1 <= x <= 500
mount_relative_prefix
string

Relative path prefix within the mount for filtering Filter results to files under this mount-relative path prefix (e.g. "data/" lists only files in the data/ subdirectory)

Minimum string length: 1
Example:

"data/"

Response

Files listed successfully

items
object[]
required

List of files in the mount

next_cursor
string

Cursor for the next page of results. If absent, there are no more pages.