Activity #342
User #242 attached image/png (35371013 bytes)
10/13/2025, 8:58:46 AM
Overview
attachments / #342
User #242 attached image/png (35371013 bytes)
10/13/2025, 8:58:46 AM
User #242 attached image/png (35371013 bytes)
10/13/2025, 8:58:46 AM
View recordUser #242 attached image/png (35371013 bytes) · 10/13/2025, 8:58:46 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/342" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/342" ); 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/342"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/342"
)
attachment = res.json() Response
{
"id": 342,
"userId": 242,
"targetType": "recipe",
"targetId": 4,
"url": "https://picsum.photos/seed/attachment-342/400/800",
"mimeType": "image/png",
"sizeBytes": 35371013,
"createdAt": "2025-10-13T08:58:46.094Z"
}