Activity #797
User #127 attached image/png (26536375 bytes)
5/24/2025, 9:36:34 AM
Overview
attachments / #797
User #127 attached image/png (26536375 bytes)
5/24/2025, 9:36:34 AM
User #127 attached image/png (26536375 bytes)
5/24/2025, 9:36:34 AM
View recordUser #127 attached image/png (26536375 bytes) · 5/24/2025, 9:36:34 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/797" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/797" ); 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/797"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/797"
)
attachment = res.json() Response
{
"id": 797,
"userId": 127,
"targetType": "comment",
"targetId": 1076,
"url": "https://picsum.photos/seed/attachment-797/600/400",
"mimeType": "image/png",
"sizeBytes": 26536375,
"createdAt": "2025-05-24T09:36:34.717Z"
}