example-data.com

files / #169

ownerUserId
218
name
report-5J9GHD.pdf
mimeType
application/pdf
sizeBytes
50243604
url
https://files.example.com/objects/169/report-5J9GHD.pdf
parentFolderId
isFolder
false
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/files/169"
)
file = res.json()
{
  "id": 169,
  "ownerUserId": 218,
  "name": "report-5J9GHD.pdf",
  "mimeType": "application/pdf",
  "sizeBytes": 50243604,
  "url": "https://files.example.com/objects/169/report-5J9GHD.pdf",
  "parentFolderId": null,
  "isFolder": false,
  "createdAt": "2024-12-30T06:57:00.352Z",
  "updatedAt": "2025-03-30T23:06:16.677Z"
}
Draftbit