example-data.com

files / #158

ownerUserId
242
name
script-tC0aOV.txt
mimeType
text/plain
sizeBytes
11427845
url
https://files.example.com/objects/158/script-tC0aOV.txt
parentFolderId
27
isFolder
false
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/files/158"
)
file = res.json()
{
  "id": 158,
  "ownerUserId": 242,
  "name": "script-tC0aOV.txt",
  "mimeType": "text/plain",
  "sizeBytes": 11427845,
  "url": "https://files.example.com/objects/158/script-tC0aOV.txt",
  "parentFolderId": 27,
  "isFolder": false,
  "createdAt": "2024-10-28T23:11:15.229Z",
  "updatedAt": "2026-03-10T13:41:06.284Z"
}
Draftbit