Activity #492
User #74 attached image/png (21829886 bytes)
9/5/2025, 12:26:18 PM
Overview
attachments / #492
User #74 attached image/png (21829886 bytes)
9/5/2025, 12:26:18 PM
User #74 attached image/png (21829886 bytes)
9/5/2025, 12:26:18 PM
View recordUser #74 attached image/png (21829886 bytes) · 9/5/2025, 12:26:18 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/492" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/492" ); 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/492"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/492"
)
attachment = res.json() Response
{
"id": 492,
"userId": 74,
"targetType": "comment",
"targetId": 825,
"url": "https://picsum.photos/seed/attachment-492/1200/600",
"mimeType": "image/png",
"sizeBytes": 21829886,
"createdAt": "2025-09-05T12:26:18.831Z"
}