Activity #105
User #59 attached image/png (34509165 bytes)
6/4/2025, 4:32:01 AM
Overview
attachments / #105
User #59 attached image/png (34509165 bytes)
6/4/2025, 4:32:01 AM
User #59 attached image/png (34509165 bytes)
6/4/2025, 4:32:01 AM
View recordUser #59 attached image/png (34509165 bytes) · 6/4/2025, 4:32:01 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/105" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/105" ); 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/105"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/105"
)
attachment = res.json() Response
{
"id": 105,
"userId": 59,
"targetType": "comment",
"targetId": 983,
"url": "https://picsum.photos/seed/attachment-105/400/600",
"mimeType": "image/png",
"sizeBytes": 34509165,
"createdAt": "2025-06-04T04:32:01.482Z"
}