photo-d8Yh2I.jpg
- ownerUserId
-
Matilde Beahan @matilde_beahan
- name
- photo-d8Yh2I.jpg
- mimeType
- image/jpeg
- sizeBytes
- 7932735
- url
- https://files.example.com/objects/373/photo-d8Yh2I.jpg
- parentFolderId
- files/138
- isFolder
- false
- createdAt
- updatedAt
Overview
files / #373
photo-d8Yh2I.jpg
#373
Request
curl example
curl -sS \ "https://example-data.com/api/v1/files/373" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/files/373" ); 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/373"
);
const file = (await res.json()) as File; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/files/373"
)
file = res.json() Response
{
"id": 373,
"ownerUserId": 96,
"name": "photo-d8Yh2I.jpg",
"mimeType": "image/jpeg",
"sizeBytes": 7932735,
"url": "https://files.example.com/objects/373/photo-d8Yh2I.jpg",
"parentFolderId": 138,
"isFolder": false,
"createdAt": "2024-11-10T14:43:20.129Z",
"updatedAt": "2026-05-08T00:38:56.418Z"
}