image-75rsn1.png
- ownerUserId
-
Ryan Conroy @ryan_conroy
- name
- image-75rsn1.png
- mimeType
- image/png
- sizeBytes
- 20432618
- url
- https://files.example.com/objects/242/image-75rsn1.png
- parentFolderId
- —
- isFolder
- false
- createdAt
- updatedAt
Overview
files / #242
image-75rsn1.png
#242
Request
curl example
curl -sS \ "https://example-data.com/api/v1/files/242" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/files/242" ); 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/242"
);
const file = (await res.json()) as File; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/files/242"
)
file = res.json() Response
{
"id": 242,
"ownerUserId": 73,
"name": "image-75rsn1.png",
"mimeType": "image/png",
"sizeBytes": 20432618,
"url": "https://files.example.com/objects/242/image-75rsn1.png",
"parentFolderId": null,
"isFolder": false,
"createdAt": "2024-10-01T00:48:12.311Z",
"updatedAt": "2025-04-25T07:23:39.676Z"
}