Activity #2
User #26 attached image/png (35854859 bytes)
11/4/2025, 8:36:56 PM
Overview
attachments / #2
User #26 attached image/png (35854859 bytes)
11/4/2025, 8:36:56 PM
User #26 attached image/png (35854859 bytes)
11/4/2025, 8:36:56 PM
View recordUser #26 attached image/png (35854859 bytes) · 11/4/2025, 8:36:56 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/2" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/2" ); 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/2"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/2"
)
attachment = res.json() Response
{
"id": 2,
"userId": 26,
"targetType": "comment",
"targetId": 1347,
"url": "https://picsum.photos/seed/attachment-2/400/600",
"mimeType": "image/png",
"sizeBytes": 35854859,
"createdAt": "2025-11-04T20:36:56.964Z"
}