example-data.com

files / #235

ownerUserId
235
name
photo-iJy76d.jpg
mimeType
image/jpeg
sizeBytes
28277304
url
https://files.example.com/objects/235/photo-iJy76d.jpg
parentFolderId
76
isFolder
false
createdAt
updatedAt

Component variants

curl -sS \
  "https://example-data.com/api/v1/files/235" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/files/235"
);
const file = await res.json();
import type { File } from "https://example-data.com/types/files.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/files/235"
);
const file = (await res.json()) as File;
import requests

res = requests.get(
    "https://example-data.com/api/v1/files/235"
)
file = res.json()
{
  "id": 235,
  "ownerUserId": 235,
  "name": "photo-iJy76d.jpg",
  "mimeType": "image/jpeg",
  "sizeBytes": 28277304,
  "url": "https://files.example.com/objects/235/photo-iJy76d.jpg",
  "parentFolderId": 76,
  "isFolder": false,
  "createdAt": "2024-10-30T15:42:27.893Z",
  "updatedAt": "2025-12-24T10:39:13.927Z"
}
Draftbit