Activity #371
User #37 attached image/png (19335878 bytes)
7/14/2025, 8:49:51 PM
Overview
attachments / #371
User #37 attached image/png (19335878 bytes)
7/14/2025, 8:49:51 PM
User #37 attached image/png (19335878 bytes)
7/14/2025, 8:49:51 PM
View recordUser #37 attached image/png (19335878 bytes) · 7/14/2025, 8:49:51 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/371" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/371" ); 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/371"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/371"
)
attachment = res.json() Response
{
"id": 371,
"userId": 37,
"targetType": "recipe",
"targetId": 54,
"url": "https://picsum.photos/seed/attachment-371/400/300",
"mimeType": "image/png",
"sizeBytes": 19335878,
"createdAt": "2025-07-14T20:49:51.557Z"
}