example-data.com

files / #240

ownerUserId
220
name
image-tye6PT.png
mimeType
image/png
sizeBytes
35465471
url
https://files.example.com/objects/240/image-tye6PT.png
parentFolderId
13
isFolder
false
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/files/240"
)
file = res.json()
{
  "id": 240,
  "ownerUserId": 220,
  "name": "image-tye6PT.png",
  "mimeType": "image/png",
  "sizeBytes": 35465471,
  "url": "https://files.example.com/objects/240/image-tye6PT.png",
  "parentFolderId": 13,
  "isFolder": false,
  "createdAt": "2025-04-02T04:01:12.969Z",
  "updatedAt": "2026-03-20T21:12:28.190Z"
}
Draftbit