Activity #74
User #127 attached image/jpeg (34361733 bytes)
7/21/2025, 7:59:04 AM
Overview
attachments / #74
User #127 attached image/jpeg (34361733 bytes)
7/21/2025, 7:59:04 AM
User #127 attached image/jpeg (34361733 bytes)
7/21/2025, 7:59:04 AM
View recordUser #127 attached image/jpeg (34361733 bytes) · 7/21/2025, 7:59:04 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/74" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/74" ); 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/74"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/74"
)
attachment = res.json() Response
{
"id": 74,
"userId": 127,
"targetType": "post",
"targetId": 10,
"url": "https://picsum.photos/seed/attachment-74/1200/300",
"mimeType": "image/jpeg",
"sizeBytes": 34361733,
"createdAt": "2025-07-21T07:59:04.135Z"
}