Skip to content

Files

List Files

List files in the organization, newest first.

Mirrors the detail endpoint’s scoping: org membership is sufficient, since org_id is a direct column on every file — this surfaces exactly what GET /{file_id} already lets a member read one at a time, it does not widen access.

Parameters

NameInTypeRequiredDescription
limitqueryintegernoMax rows to return (1-100). Omit to return every row.
offsetqueryintegernoRows to skip — pass the previous response’s next_offset.
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponsePage_FileDetailResponse_
422Validation ErrorHTTPValidationError

Get File

Get a single file’s metadata by ID.

Requires membership in the organization.

Parameters

NameInTypeRequiredDescription
file_idpathstring (uuid)yes
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseFileDetailResponse
422Validation ErrorHTTPValidationError

GET /api/orgs/{org_id}/files/{file_id}/download

Section titled “GET /api/orgs/{org_id}/files/{file_id}/download”

Download File

Download a file (forces a native browser download).

Requires membership in the organization.

Parameters

NameInTypeRequiredDescription
file_idpathstring (uuid)yes
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/orgs/{org_id}/files/{file_id}/view

Section titled “GET /api/orgs/{org_id}/files/{file_id}/view”

View File

Serve a file inline so it renders in a browser tab / iframe / img.

Identical to /download but uses Content-Disposition: inline.

Requires membership in the organization.

Parameters

NameInTypeRequiredDescription
file_idpathstring (uuid)yes
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful Responseobject
422Validation ErrorHTTPValidationError