Activity #382
User #186 attached image/jpeg (11210670 bytes)
6/23/2025, 9:28:39 AM
Overview
attachments / #382
User #186 attached image/jpeg (11210670 bytes)
6/23/2025, 9:28:39 AM
User #186 attached image/jpeg (11210670 bytes)
6/23/2025, 9:28:39 AM
View recordUser #186 attached image/jpeg (11210670 bytes) · 6/23/2025, 9:28:39 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/382" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/382" ); 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/382"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/382"
)
attachment = res.json() Response
{
"id": 382,
"userId": 186,
"targetType": "post",
"targetId": 258,
"url": "https://picsum.photos/seed/attachment-382/400/800",
"mimeType": "image/jpeg",
"sizeBytes": 11210670,
"createdAt": "2025-06-23T09:28:39.654Z"
}