Files API
5 operations from the external ASIRI OpenAPI surface.
Public endpoint
GET/v1/files
List tenant files visible to the caller
Requires
files:readSecurity
bearer
Authorization: Bearer <ASIRI_API_KEY>Parameters
| Name | In | Required | Schema | Description |
|---|---|---|---|---|
module | query | no | string | - |
resourceId | query | no | string | - |
cursor | query | no | string | - |
limit | query | no | integer | - |
Request body
No request body.
Responses
Public endpoint
GET/v1/files/{id}
Fetch file metadata (with download URL when scan is clean)
Requires
files:readSecurity
bearer
Authorization: Bearer <ASIRI_API_KEY>Parameters
| Name | In | Required | Schema | Description |
|---|---|---|---|---|
id | path | yes | string | - |
Request body
No request body.
Responses
Public endpoint
DELETE/v1/files/{id}
Soft-delete a file and schedule the S3 purge
Requires
files:writeSecurity
bearer
Authorization: Bearer <ASIRI_API_KEY>Parameters
| Name | In | Required | Schema | Description |
|---|---|---|---|---|
id | path | yes | string | - |
Request body
No request body.
Responses
Public endpoint
POST/v1/files/{id}/complete
Mark a presigned upload as complete and enqueue the virus scan
Requires
files:writeSecurity
bearer
Authorization: Bearer <ASIRI_API_KEY>Parameters
| Name | In | Required | Schema | Description |
|---|---|---|---|---|
id | path | yes | string | - |
Request body
application/jsonobjectResponses
Public endpoint
POST/v1/files/presign
Presign an S3 upload URL for a new file
Requires
files:writeSecurity
bearer
Authorization: Bearer <ASIRI_API_KEY>Parameters
No path or query parameters.
Request body
application/jsonobject