example-data.com
Menu
Browse docs and collections

Overview

files / #453

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/files/453" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/files/453"
);
const file = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/files.d.ts https://example-data.com/types/files.d.ts
import type { File } from "./types/files";

const res = await fetch(
  "https://example-data.com/api/v1/files/453"
);
const file = (await res.json()) as File;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/files/453"
)
file = res.json()

Response

{
  "id": 453,
  "ownerUserId": 189,
  "name": "document-EOJsap.docx",
  "mimeType": "application/msword",
  "sizeBytes": 10323699,
  "url": "https://files.example.com/objects/453/document-EOJsap.docx",
  "parentFolderId": 7,
  "isFolder": false,
  "createdAt": "2025-09-12T12:26:01.923Z",
  "updatedAt": "2026-03-06T01:37:35.861Z"
}