Activity #29
User #57 attached image/jpeg (4006861 bytes)
6/28/2025, 11:46:32 AM
Overview
attachments / #29
User #57 attached image/jpeg (4006861 bytes)
6/28/2025, 11:46:32 AM
User #57 attached image/jpeg (4006861 bytes)
6/28/2025, 11:46:32 AM
View recordUser #57 attached image/jpeg (4006861 bytes) · 6/28/2025, 11:46:32 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/29" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/29" ); 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/29"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/29"
)
attachment = res.json() Response
{
"id": 29,
"userId": 57,
"targetType": "post",
"targetId": 18,
"url": "https://picsum.photos/seed/attachment-29/600/400",
"mimeType": "image/jpeg",
"sizeBytes": 4006861,
"createdAt": "2025-06-28T11:46:32.533Z"
}