Activity #230
User #128 attached image/png (6150039 bytes)
5/28/2025, 12:46:27 PM
Overview
attachments / #230
User #128 attached image/png (6150039 bytes)
5/28/2025, 12:46:27 PM
User #128 attached image/png (6150039 bytes)
5/28/2025, 12:46:27 PM
View recordUser #128 attached image/png (6150039 bytes) · 5/28/2025, 12:46:27 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/230" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/230" ); 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/230"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/230"
)
attachment = res.json() Response
{
"id": 230,
"userId": 128,
"targetType": "restaurant",
"targetId": 42,
"url": "https://picsum.photos/seed/attachment-230/400/400",
"mimeType": "image/png",
"sizeBytes": 6150039,
"createdAt": "2025-05-28T12:46:27.214Z"
}