List Files
POST
/api/v1/files/list
const url = 'https://aura.strangeworks.com/api/v1/files/list';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"deployment_name":"example","limit":50,"offset":0,"path_prefix":"example","project_id":"example","snapshot_id":"example","source":"deployment"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://aura.strangeworks.com/api/v1/files/list \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "deployment_name": "example", "limit": 50, "offset": 0, "path_prefix": "example", "project_id": "example", "snapshot_id": "example", "source": "deployment" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
FileListResponse
object
files
required
Files
Array<object>
FileEntryOne file in a container.
content_type/modified/source are populated where the container
can supply them: the workspace reads them from its ProjectFile index;
deployments and snapshots list straight from storage, so source is null
and content_type is derived from the extension.
limit
required
Limit
integer
offset
required
Offset
integer
total
required
Total
integer
Examplegenerated
{ "files": [ { "content_type": "example", "modified": "2026-04-15T12:00:00Z", "path": "example", "size": 1, "source": "example" } ], "limit": 1, "offset": 1, "total": 1}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}