Files
GET /api/orgs/{org_id}/files/{file_id}
Section titled “GET /api/orgs/{org_id}/files/{file_id}”Get File
Get a single file’s metadata by ID.
Requires membership in the organization.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| file_id | path | string (uuid) | yes | |
| org_id | path | string (uuid) | yes |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful Response | FileDetailResponse |
| 422 | Validation Error | HTTPValidationError |
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| file_id | path | string (uuid) | yes | |
| org_id | path | string (uuid) | yes |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful Response | object |
| 422 | Validation Error | HTTPValidationError |
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| file_id | path | string (uuid) | yes | |
| org_id | path | string (uuid) | yes |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful Response | object |
| 422 | Validation Error | HTTPValidationError |