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