# File

This document describes how to upload and download a file from a Flow API V1.

**Upload file**

```bash
curl --location 'https://api.flow.gl/v1/files' \
--form 'file=@"/path/to/file.csv"' \
--form 'flow_id="43"' \
--requests POST
```

Example response

```json
{
  "data": {
    "id": 177,
    "flow_id": 179,
    "ext": "csv",
    "created_at": "2024-03-14T07:55:33.754Z",
    "updated_at": "2024-03-14T07:55:33.754Z",
    "tag": "a42cf913cfe95ed0efb0ac84510200754cc4572b"
  }
}
```

**Get file**

```bash
curl --location 'https://api.flow.gl/v1/files/177'
```

Response with the file stream.