Activity #145
User #15 attached image/png (20668417 bytes)
6/2/2025, 5:12:25 AM
Overview
attachments / #145
User #15 attached image/png (20668417 bytes)
6/2/2025, 5:12:25 AM
User #15 attached image/png (20668417 bytes)
6/2/2025, 5:12:25 AM
View recordUser #15 attached image/png (20668417 bytes) · 6/2/2025, 5:12:25 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/145" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/145" ); 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/145"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/145"
)
attachment = res.json() Response
{
"id": 145,
"userId": 15,
"targetType": "comment",
"targetId": 984,
"url": "https://picsum.photos/seed/attachment-145/600/800",
"mimeType": "image/png",
"sizeBytes": 20668417,
"createdAt": "2025-06-02T05:12:25.268Z"
}