Activity #705
User #226 attached image/png (19111948 bytes)
7/10/2025, 9:23:49 PM
Overview
attachments / #705
User #226 attached image/png (19111948 bytes)
7/10/2025, 9:23:49 PM
User #226 attached image/png (19111948 bytes)
7/10/2025, 9:23:49 PM
View recordUser #226 attached image/png (19111948 bytes) · 7/10/2025, 9:23:49 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/705" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/705" ); 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/705"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/705"
)
attachment = res.json() Response
{
"id": 705,
"userId": 226,
"targetType": "comment",
"targetId": 1161,
"url": "https://picsum.photos/seed/attachment-705/400/800",
"mimeType": "image/png",
"sizeBytes": 19111948,
"createdAt": "2025-07-10T21:23:49.072Z"
}