Files

Get a file

GET

Path parameters

fileIdstringRequired

Response

This endpoint returns an object
data
object
Any uploaded file of any type

Errors

GET
$curl https://api.x.flatfile.com/v1/files/us_fl_YOUR_ID \
> -H "Authorization: Bearer <token>"
Response
1{
2 "data": {
3 "id": "us_fl_YOUR_ID",
4 "name": "Test File",
5 "ext": "png",
6 "mimetype": "image/png",
7 "encoding": "7bit",
8 "status": "partial",
9 "size": 81953,
10 "bytesReceived": 81593,
11 "createdAt": "2023-11-15T19:31:33.015Z",
12 "updatedAt": "2023-11-15T19:31:33.015Z",
13 "spaceId": "us_sp_YOUR_ID",
14 "mode": "import"
15 }
16}