Activity #638
User #114 attached image/png (45737591 bytes)
11/10/2025, 11:07:19 PM
Overview
attachments / #638
User #114 attached image/png (45737591 bytes)
11/10/2025, 11:07:19 PM
User #114 attached image/png (45737591 bytes)
11/10/2025, 11:07:19 PM
View recordUser #114 attached image/png (45737591 bytes) · 11/10/2025, 11:07:19 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/638" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/638" ); const attachment = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/attachments.d.ts https://example-data.com/types/attachments.d.ts
import type { Attachment } from "./types/attachments";
const res = await fetch(
"https://example-data.com/api/v1/attachments/638"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/638"
)
attachment = res.json() Response
{
"id": 638,
"userId": 114,
"targetType": "comment",
"targetId": 1378,
"url": "https://picsum.photos/seed/attachment-638/1200/300",
"mimeType": "image/png",
"sizeBytes": 45737591,
"createdAt": "2025-11-10T23:07:19.166Z"
}