Activity #50
User #79 attached image/png (35133515 bytes)
9/6/2025, 3:10:36 PM
Overview
attachments / #50
User #79 attached image/png (35133515 bytes)
9/6/2025, 3:10:36 PM
User #79 attached image/png (35133515 bytes)
9/6/2025, 3:10:36 PM
View recordUser #79 attached image/png (35133515 bytes) · 9/6/2025, 3:10:36 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/50" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/50" ); 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/50"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/50"
)
attachment = res.json() Response
{
"id": 50,
"userId": 79,
"targetType": "comment",
"targetId": 196,
"url": "https://picsum.photos/seed/attachment-50/1200/600",
"mimeType": "image/png",
"sizeBytes": 35133515,
"createdAt": "2025-09-06T15:10:36.173Z"
}