example-data.com
Menu
Browse docs and collections

Overview

attachments / #614

Activity #614

User #53 attached video/mp4 (22784345 bytes)

4/27/2026, 12:57:22 PM

Component variants

Medium
Small

User #53 attached video/mp4 (22784345 bytes) · 4/27/2026, 12:57:22 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 614,
  "userId": 53,
  "targetType": "comment",
  "targetId": 1448,
  "url": "https://example.com/files/attachment-614.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 22784345,
  "createdAt": "2026-04-27T12:57:22.393Z"
}