example-data.com
Menu
Browse docs and collections

Overview

attachments / #591

Activity #591

User #53 attached video/mp4 (2371306 bytes)

12/15/2025, 5:35:54 AM

Component variants

Medium
Small

User #53 attached video/mp4 (2371306 bytes) · 12/15/2025, 5:35:54 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 591,
  "userId": 53,
  "targetType": "product",
  "targetId": 139,
  "url": "https://example.com/files/attachment-591.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 2371306,
  "createdAt": "2025-12-15T05:35:54.880Z"
}