example-data.com

files / #154

ownerUserId
57
name
spreadsheet-8oEdkJ.xlsx
mimeType
application/vnd.ms-excel
sizeBytes
16889946
url
https://files.example.com/objects/154/spreadsheet-8oEdkJ.xlsx
parentFolderId
62
isFolder
false
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/files/154"
)
file = res.json()
{
  "id": 154,
  "ownerUserId": 57,
  "name": "spreadsheet-8oEdkJ.xlsx",
  "mimeType": "application/vnd.ms-excel",
  "sizeBytes": 16889946,
  "url": "https://files.example.com/objects/154/spreadsheet-8oEdkJ.xlsx",
  "parentFolderId": 62,
  "isFolder": false,
  "createdAt": "2024-11-23T05:27:28.324Z",
  "updatedAt": "2025-06-01T12:30:21.847Z"
}
Draftbit