Activity #52
User #145 attached image/webp (17610370 bytes)
10/4/2025, 10:28:24 AM
Overview
attachments / #52
User #145 attached image/webp (17610370 bytes)
10/4/2025, 10:28:24 AM
User #145 attached image/webp (17610370 bytes)
10/4/2025, 10:28:24 AM
View recordUser #145 attached image/webp (17610370 bytes) · 10/4/2025, 10:28:24 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/52" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/52" ); 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/52"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/52"
)
attachment = res.json() Response
{
"id": 52,
"userId": 145,
"targetType": "recipe",
"targetId": 192,
"url": "https://picsum.photos/seed/attachment-52/1200/800",
"mimeType": "image/webp",
"sizeBytes": 17610370,
"createdAt": "2025-10-04T10:28:24.239Z"
}