Activity #21
User #201 attached image/png (3115089 bytes)
8/27/2025, 2:27:59 PM
Overview
attachments / #21
User #201 attached image/png (3115089 bytes)
8/27/2025, 2:27:59 PM
User #201 attached image/png (3115089 bytes)
8/27/2025, 2:27:59 PM
View recordUser #201 attached image/png (3115089 bytes) · 8/27/2025, 2:27:59 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/21" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/21" ); 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/21"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/21"
)
attachment = res.json() Response
{
"id": 21,
"userId": 201,
"targetType": "product",
"targetId": 198,
"url": "https://picsum.photos/seed/attachment-21/800/300",
"mimeType": "image/png",
"sizeBytes": 3115089,
"createdAt": "2025-08-27T14:27:59.556Z"
}