example-data.com

files / #217

ownerUserId
45
name
image-dCg4tS.png
mimeType
image/png
sizeBytes
49077307
url
https://files.example.com/objects/217/image-dCg4tS.png
parentFolderId
38
isFolder
false
createdAt
updatedAt

Component variants

curl -sS \
  "https://example-data.com/api/v1/files/217" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/files/217"
);
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/217"
);
const file = (await res.json()) as File;
import requests

res = requests.get(
    "https://example-data.com/api/v1/files/217"
)
file = res.json()
{
  "id": 217,
  "ownerUserId": 45,
  "name": "image-dCg4tS.png",
  "mimeType": "image/png",
  "sizeBytes": 49077307,
  "url": "https://files.example.com/objects/217/image-dCg4tS.png",
  "parentFolderId": 38,
  "isFolder": false,
  "createdAt": "2025-02-18T20:32:11.497Z",
  "updatedAt": "2025-08-31T03:26:34.639Z"
}
Draftbit