# Files

File management operations

## GET /api/file/{id}

> Get file by ID

```json
{"openapi":"3.0.0","info":{"title":"Formflow API","version":"1.0"},"tags":[{"name":"Files","description":"File management operations"}],"security":[{"access-token":[]}],"components":{"securitySchemes":{},"schemas":{"FileDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the file"},"name":{"type":"string","description":"Name of the file"},"fileName":{"type":"string","description":"Original file name"},"fileType":{"type":"string","description":"Type of the file (e.g., MIME type)"},"fileSize":{"type":"number","description":"Size of the file in bytes"},"url":{"type":"string","description":"Public URL of the file"},"createdAt":{"format":"date-time","type":"string","description":"Timestamp when the file was created"},"updatedAt":{"format":"date-time","type":"string","description":"Timestamp when the file was last updated"}},"required":["id","fileName","fileType","fileSize","url","createdAt","updatedAt"]}}},"paths":{"/api/file/{id}":{"get":{"operationId":"FileController_getFileById","parameters":[{"name":"id","required":true,"in":"path","description":"File ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Returns the file details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDto"}}}},"404":{"description":"File not found"}},"summary":"Get file by ID","tags":["Files"]}}}}
```

## DELETE /api/file/{id}

> Delete a file

```json
{"openapi":"3.0.0","info":{"title":"Formflow API","version":"1.0"},"tags":[{"name":"Files","description":"File management operations"}],"security":[{"access-token":[]}],"components":{"securitySchemes":{}},"paths":{"/api/file/{id}":{"delete":{"operationId":"FileController_deleteFile","parameters":[{"name":"id","required":true,"in":"path","description":"File ID","schema":{"type":"string"}}],"responses":{"204":{"description":"The file has been successfully deleted"},"404":{"description":"File not found"}},"summary":"Delete a file","tags":["Files"]}}}}
```

## GET /api/file/{id}/view

> View/download file directly

```json
{"openapi":"3.0.0","info":{"title":"Formflow API","version":"1.0"},"tags":[{"name":"Files","description":"File management operations"}],"security":[{"access-token":[]}],"components":{"securitySchemes":{}},"paths":{"/api/file/{id}/view":{"get":{"operationId":"FileController_viewFile","parameters":[{"name":"id","required":true,"in":"path","description":"File ID","schema":{"type":"string"}}],"responses":{"302":{"description":"Redirects to file download"},"404":{"description":"File not found"}},"summary":"View/download file directly","tags":["Files"]}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ai.insly.com/nora/api-documentation/files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
