example-data.com
Menu
Browse docs and collections

Overview

attachments / #170

Activity #170

User #181 attached video/mp4 (13496817 bytes)

10/20/2025, 2:05:45 AM

Component variants

Medium
Small

User #181 attached video/mp4 (13496817 bytes) · 10/20/2025, 2:05:45 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 170,
  "userId": 181,
  "targetType": "product",
  "targetId": 89,
  "url": "https://example.com/files/attachment-170.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 13496817,
  "createdAt": "2025-10-20T02:05:45.810Z"
}