Activity #5
User #102 attached image/png (33148672 bytes)
7/3/2025, 5:51:14 PM
Overview
attachments / #5
User #102 attached image/png (33148672 bytes)
7/3/2025, 5:51:14 PM
User #102 attached image/png (33148672 bytes)
7/3/2025, 5:51:14 PM
View recordUser #102 attached image/png (33148672 bytes) · 7/3/2025, 5:51:14 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/5" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/5" ); 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/5"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/5"
)
attachment = res.json() Response
{
"id": 5,
"userId": 102,
"targetType": "product",
"targetId": 50,
"url": "https://picsum.photos/seed/attachment-5/800/800",
"mimeType": "image/png",
"sizeBytes": 33148672,
"createdAt": "2025-07-03T17:51:14.143Z"
}