Files API (to be deprecated)
NOTE:
Files & Video API are migrating to different subdomain
https://dev.files.iambig.ai
To be deprecated public endpoints
@ https://dev.iambig.ai
Uploading file
POST /public/upload
Upload a file as FormData.
| name |
type |
data type |
description |
| file |
required |
blob |
file data |
Responses
| http code |
content-type |
response |
200 |
application/json |
{"url":"https://dev.iambig.ai/public/zAE2h2mPSKjWwnxw8qxp4"} |
400 |
application/json |
{"error": "No file uploaded","timestamp": 1737195610743,"status": 400} |
500 |
application/json |
{"error": "Failed to upload video","timestamp": 1737195610743,"status": 500} |
Example cURL
Example Response
{
"url": "https://dev.iambig.ai/public/zAE2h2mPSKjWwnxw8qxp4"
}
Retrieving file
GET /public/{id}
Get file.
Parameters
| name |
type |
data type |
description |
| id |
required |
string |
internal file id |
Responses
| http code |
content-type |
response |
200 |
binary |
file |
404 |
application/json |
{"code":"404","message":"File not found"} |
Example cURL
curl -X GET -H "Content-Type: application/json" http://localhost:8787/public/zAE2h2mPSKjWwnxw8qxp4
Deleting file
DELETE /public/{id}
Parameters
| name |
type |
data type |
description |
| id |
required |
string |
internal file id |
Responses
| http code |
content-type |
response |
200 |
application/json |
{} |
404 |
application/json |
{"code":"404","message":"File not found"} |
Example cURL
curl -X DELETE http://localhost:8787/public/zAE2h2mPSKjWwnxw8qxp4
Example Response