photo-CJr1DQ.jpg
- ownerUserId
-
Jonathan Howe @jonathan_howe77
- name
- photo-CJr1DQ.jpg
- mimeType
- image/jpeg
- sizeBytes
- 31893214
- url
- https://files.example.com/objects/512/photo-CJr1DQ.jpg
- parentFolderId
- files/44
- isFolder
- false
- createdAt
- updatedAt
Overview
files / #512
photo-CJr1DQ.jpg
#512
Request
curl example
curl -sS \ "https://example-data.com/api/v1/files/512" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/files/512" ); 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/512"
);
const file = (await res.json()) as File; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/files/512"
)
file = res.json() Response
{
"id": 512,
"ownerUserId": 150,
"name": "photo-CJr1DQ.jpg",
"mimeType": "image/jpeg",
"sizeBytes": 31893214,
"url": "https://files.example.com/objects/512/photo-CJr1DQ.jpg",
"parentFolderId": 44,
"isFolder": false,
"createdAt": "2025-08-05T02:39:38.281Z",
"updatedAt": "2026-01-03T18:35:50.402Z"
}