Sessions

List workspace files

Read immediate file metadata under a normalized /workspace path. This is a read-only directory listing, not an attachment or artifact download. Use next as page with the same path, order and limit; restart from the first page if the cursor expires.

get/v1/agents/sessions/{session_id}/workspace-files

Request

  • Base URL: https://api.sandbase.ai
  • URL: https://api.sandbase.ai/v1/agents/sessions/{session_id}/workspace-files
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Query parameters

pathstring

Normalized absolute directory path under /workspace. No traversal, backslashes, or trailing slash.

limitinteger

Page size.

order'asc' | 'desc'

Sort by path.

pagestring

Opaque next cursor; omit for the first page.

Response

List workspace files

object'page' required
nextstring nullable required
has_moreboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.