Activity #1
User #87 attached image/webp (22312530 bytes)
7/7/2025, 5:17:13 AM
Overview
attachments / #1
User #87 attached image/webp (22312530 bytes)
7/7/2025, 5:17:13 AM
User #87 attached image/webp (22312530 bytes)
7/7/2025, 5:17:13 AM
View recordUser #87 attached image/webp (22312530 bytes) · 7/7/2025, 5:17:13 AM
Request
curl example
curl -sS \
"https://example-data.com/api/v1/attachments/1" \
-H "Accept: application/json"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/attachments/1"
);
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/1"
);
const attachment = (await res.json()) as Attachment;
Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/attachments/1"
)
attachment = res.json()
Response
{
"id": 1,
"userId": 87,
"targetType": "comment",
"targetId": 419,
"url": "https://picsum.photos/seed/attachment-1/600/600",
"mimeType": "image/webp",
"sizeBytes": 22312530,
"createdAt": "2025-07-07T05:17:13.570Z"
}