Skip to main content
GET
List Files

Authorizations

Authorization
string
header
required

JWT token from Stytch B2B authentication (magic link, SSO, or M2M)

Query Parameters

statusFilter
string | null
resourceType
string | null

Filter by resource type: chat, dataset

resourceId
string | null

Filter by resource ID (requires resourceType)

limit
integer
default:20
Required range: 1 <= x <= 100
cursor
string | null

Opaque cursor

Response

Paginated list of files

Paginated file list response. Uses cursor-based pagination for scalability.

items
FileOut · object[]
required

List of files

hasMore
boolean
required

Whether more results are available

Example:

true

nextCursor
string | null

Cursor for next page (null if no more results)

Example:

"file_xyz789"