Activity #241
User #216 attached image/png (16082663 bytes)
6/6/2025, 9:30:46 PM
Overview
attachments / #241
User #216 attached image/png (16082663 bytes)
6/6/2025, 9:30:46 PM
User #216 attached image/png (16082663 bytes)
6/6/2025, 9:30:46 PM
View recordUser #216 attached image/png (16082663 bytes) · 6/6/2025, 9:30:46 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/241" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/241" ); 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/241"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/241"
)
attachment = res.json() Response
{
"id": 241,
"userId": 216,
"targetType": "post",
"targetId": 84,
"url": "https://picsum.photos/seed/attachment-241/800/400",
"mimeType": "image/png",
"sizeBytes": 16082663,
"createdAt": "2025-06-06T21:30:46.919Z"
}