Activity #640
User #49 attached image/webp (1552330 bytes)
8/6/2025, 9:02:37 AM
Overview
attachments / #640
User #49 attached image/webp (1552330 bytes)
8/6/2025, 9:02:37 AM
User #49 attached image/webp (1552330 bytes)
8/6/2025, 9:02:37 AM
View recordUser #49 attached image/webp (1552330 bytes) · 8/6/2025, 9:02:37 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/640" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/640" ); 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/640"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/640"
)
attachment = res.json() Response
{
"id": 640,
"userId": 49,
"targetType": "product",
"targetId": 31,
"url": "https://picsum.photos/seed/attachment-640/800/600",
"mimeType": "image/webp",
"sizeBytes": 1552330,
"createdAt": "2025-08-06T09:02:37.444Z"
}