Activity #93
User #1 attached application/pdf (39740846 bytes)
5/22/2025, 4:25:10 PM
Overview
attachments / #93
User #1 attached application/pdf (39740846 bytes)
5/22/2025, 4:25:10 PM
User #1 attached application/pdf (39740846 bytes)
5/22/2025, 4:25:10 PM
View recordUser #1 attached application/pdf (39740846 bytes) · 5/22/2025, 4:25:10 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/93" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/93" ); 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/93"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/93"
)
attachment = res.json() Response
{
"id": 93,
"userId": 1,
"targetType": "recipe",
"targetId": 132,
"url": "https://example.com/files/attachment-93.pdf",
"mimeType": "application/pdf",
"sizeBytes": 39740846,
"createdAt": "2025-05-22T16:25:10.952Z"
}