Activity #666
User #241 attached application/pdf (13205273 bytes)
6/6/2025, 11:37:23 AM
Overview
attachments / #666
User #241 attached application/pdf (13205273 bytes)
6/6/2025, 11:37:23 AM
User #241 attached application/pdf (13205273 bytes)
6/6/2025, 11:37:23 AM
View recordUser #241 attached application/pdf (13205273 bytes) · 6/6/2025, 11:37:23 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/666" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/666" ); 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/666"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/666"
)
attachment = res.json() Response
{
"id": 666,
"userId": 241,
"targetType": "post",
"targetId": 132,
"url": "https://example.com/files/attachment-666.pdf",
"mimeType": "application/pdf",
"sizeBytes": 13205273,
"createdAt": "2025-06-06T11:37:23.493Z"
}