Activity #665
User #244 attached image/png (28754828 bytes)
8/18/2025, 12:47:32 AM
Overview
attachments / #665
User #244 attached image/png (28754828 bytes)
8/18/2025, 12:47:32 AM
User #244 attached image/png (28754828 bytes)
8/18/2025, 12:47:32 AM
View recordUser #244 attached image/png (28754828 bytes) · 8/18/2025, 12:47:32 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/665" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/665" ); 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/665"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/665"
)
attachment = res.json() Response
{
"id": 665,
"userId": 244,
"targetType": "post",
"targetId": 304,
"url": "https://picsum.photos/seed/attachment-665/400/800",
"mimeType": "image/png",
"sizeBytes": 28754828,
"createdAt": "2025-08-18T00:47:32.881Z"
}