Activity #368
User #151 attached image/png (45092033 bytes)
9/25/2025, 8:17:23 AM
Overview
attachments / #368
User #151 attached image/png (45092033 bytes)
9/25/2025, 8:17:23 AM
User #151 attached image/png (45092033 bytes)
9/25/2025, 8:17:23 AM
View recordUser #151 attached image/png (45092033 bytes) · 9/25/2025, 8:17:23 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/368" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/368" ); 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/368"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/368"
)
attachment = res.json() Response
{
"id": 368,
"userId": 151,
"targetType": "recipe",
"targetId": 55,
"url": "https://picsum.photos/seed/attachment-368/400/300",
"mimeType": "image/png",
"sizeBytes": 45092033,
"createdAt": "2025-09-25T08:17:23.769Z"
}