image-EAkRnd.png
- ownerUserId
-
Ruben Terry @ruben.terry
- name
- image-EAkRnd.png
- mimeType
- image/png
- sizeBytes
- 4101362
- url
- https://files.example.com/objects/254/image-EAkRnd.png
- parentFolderId
- —
- isFolder
- false
- createdAt
- updatedAt
Overview
files / #254
image-EAkRnd.png
#254
Request
curl example
curl -sS \ "https://example-data.com/api/v1/files/254" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/files/254" ); const file = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/files.d.ts https://example-data.com/types/files.d.ts
import type { File } from "./types/files";
const res = await fetch(
"https://example-data.com/api/v1/files/254"
);
const file = (await res.json()) as File; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/files/254"
)
file = res.json() Response
{
"id": 254,
"ownerUserId": 91,
"name": "image-EAkRnd.png",
"mimeType": "image/png",
"sizeBytes": 4101362,
"url": "https://files.example.com/objects/254/image-EAkRnd.png",
"parentFolderId": null,
"isFolder": false,
"createdAt": "2024-09-08T20:43:09.998Z",
"updatedAt": "2025-03-11T19:26:44.179Z"
}