example-data.com
Menu
Browse docs and collections

Overview

attachments / #445

Activity #445

User #62 attached video/mp4 (8104930 bytes)

4/9/2026, 8:32:46 PM

Component variants

Medium
Small

User #62 attached video/mp4 (8104930 bytes) · 4/9/2026, 8:32:46 PM

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/attachments/445" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/attachments/445"
);
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/445"
);
const attachment = (await res.json()) as Attachment;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/attachments/445"
)
attachment = res.json()

Response

{
  "id": 445,
  "userId": 62,
  "targetType": "comment",
  "targetId": 498,
  "url": "https://example.com/files/attachment-445.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 8104930,
  "createdAt": "2026-04-09T20:32:46.659Z"
}