Activity #3
User #99 attached image/png (11005646 bytes)
10/5/2025, 11:11:54 AM
Overview
attachments / #3
User #99 attached image/png (11005646 bytes)
10/5/2025, 11:11:54 AM
User #99 attached image/png (11005646 bytes)
10/5/2025, 11:11:54 AM
View recordUser #99 attached image/png (11005646 bytes) · 10/5/2025, 11:11:54 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/3" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/3" ); 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/3"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/3"
)
attachment = res.json() Response
{
"id": 3,
"userId": 99,
"targetType": "product",
"targetId": 144,
"url": "https://picsum.photos/seed/attachment-3/400/600",
"mimeType": "image/png",
"sizeBytes": 11005646,
"createdAt": "2025-10-05T11:11:54.493Z"
}