Activity #367
User #158 attached image/png (49291408 bytes)
6/27/2025, 7:55:18 PM
Overview
attachments / #367
User #158 attached image/png (49291408 bytes)
6/27/2025, 7:55:18 PM
User #158 attached image/png (49291408 bytes)
6/27/2025, 7:55:18 PM
View recordUser #158 attached image/png (49291408 bytes) · 6/27/2025, 7:55:18 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/367" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/367" ); 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/367"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/367"
)
attachment = res.json() Response
{
"id": 367,
"userId": 158,
"targetType": "recipe",
"targetId": 292,
"url": "https://picsum.photos/seed/attachment-367/400/800",
"mimeType": "image/png",
"sizeBytes": 49291408,
"createdAt": "2025-06-27T19:55:18.645Z"
}