example-data.com
Menu
Browse docs and collections

Overview

attachments / #126

Activity #126

User #198 attached video/mp4 (45101872 bytes)

4/29/2026, 3:25:01 AM

Component variants

Medium
Small

User #198 attached video/mp4 (45101872 bytes) · 4/29/2026, 3:25:01 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 126,
  "userId": 198,
  "targetType": "comment",
  "targetId": 2,
  "url": "https://example.com/files/attachment-126.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 45101872,
  "createdAt": "2026-04-29T03:25:01.857Z"
}