example-data.com
Menu
Browse docs and collections

Overview

attachments / #362

Activity #362

User #132 attached video/mp4 (21254531 bytes)

3/20/2026, 3:11:54 PM

Component variants

Medium
Small

User #132 attached video/mp4 (21254531 bytes) · 3/20/2026, 3:11:54 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 362,
  "userId": 132,
  "targetType": "product",
  "targetId": 190,
  "url": "https://example.com/files/attachment-362.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 21254531,
  "createdAt": "2026-03-20T15:11:54.589Z"
}