example-data.com
Menu
Browse docs and collections

Overview

attachments / #205

Activity #205

User #187 attached video/mp4 (5349380 bytes)

1/12/2026, 9:00:35 AM

Component variants

Medium
Small

User #187 attached video/mp4 (5349380 bytes) · 1/12/2026, 9:00:35 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 205,
  "userId": 187,
  "targetType": "product",
  "targetId": 125,
  "url": "https://example.com/files/attachment-205.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 5349380,
  "createdAt": "2026-01-12T09:00:35.253Z"
}