Activity #91
User #37 attached image/png (42254101 bytes)
5/25/2025, 3:07:48 PM
Overview
attachments / #91
User #37 attached image/png (42254101 bytes)
5/25/2025, 3:07:48 PM
User #37 attached image/png (42254101 bytes)
5/25/2025, 3:07:48 PM
View recordUser #37 attached image/png (42254101 bytes) · 5/25/2025, 3:07:48 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/attachments/91" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/attachments/91" ); 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/91"
);
const attachment = (await res.json()) as Attachment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/91"
)
attachment = res.json() Response
{
"id": 91,
"userId": 37,
"targetType": "comment",
"targetId": 930,
"url": "https://picsum.photos/seed/attachment-91/600/400",
"mimeType": "image/png",
"sizeBytes": 42254101,
"createdAt": "2025-05-25T15:07:48.620Z"
}