Activity #20
User #11 attached image/jpeg (11217422 bytes)
9/21/2025, 9:43:16 AM
Overview
attachments / #20
User #11 attached image/jpeg (11217422 bytes)
9/21/2025, 9:43:16 AM
User #11 attached image/jpeg (11217422 bytes)
9/21/2025, 9:43:16 AM
View recordUser #11 attached image/jpeg (11217422 bytes) · 9/21/2025, 9:43:16 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/20" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/20" ); 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/20"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/20"
)
attachment = res.json() Response
{
"id": 20,
"userId": 11,
"targetType": "post",
"targetId": 264,
"url": "https://picsum.photos/seed/attachment-20/800/300",
"mimeType": "image/jpeg",
"sizeBytes": 11217422,
"createdAt": "2025-09-21T09:43:16.682Z"
}