Activity #297
User #108 attached image/jpeg (46145438 bytes)
7/25/2025, 5:04:29 AM
Overview
attachments / #297
User #108 attached image/jpeg (46145438 bytes)
7/25/2025, 5:04:29 AM
User #108 attached image/jpeg (46145438 bytes)
7/25/2025, 5:04:29 AM
View recordUser #108 attached image/jpeg (46145438 bytes) · 7/25/2025, 5:04:29 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/297" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/297" ); 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/297"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/297"
)
attachment = res.json() Response
{
"id": 297,
"userId": 108,
"targetType": "product",
"targetId": 47,
"url": "https://picsum.photos/seed/attachment-297/800/300",
"mimeType": "image/jpeg",
"sizeBytes": 46145438,
"createdAt": "2025-07-25T05:04:29.544Z"
}