example-data.com
Menu
Browse docs and collections

Overview

attachments / #693

Activity #693

User #82 attached video/mp4 (34985117 bytes)

12/9/2025, 11:30:13 PM

Component variants

Medium
Small

User #82 attached video/mp4 (34985117 bytes) · 12/9/2025, 11:30:13 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 693,
  "userId": 82,
  "targetType": "post",
  "targetId": 209,
  "url": "https://example.com/files/attachment-693.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 34985117,
  "createdAt": "2025-12-09T23:30:13.473Z"
}