example-data.com
Menu
Browse docs and collections

Overview

attachments / #162

Activity #162

User #94 attached video/mp4 (25564019 bytes)

3/13/2026, 11:55:03 PM

Component variants

Medium
Small

User #94 attached video/mp4 (25564019 bytes) · 3/13/2026, 11:55:03 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 162,
  "userId": 94,
  "targetType": "product",
  "targetId": 128,
  "url": "https://example.com/files/attachment-162.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 25564019,
  "createdAt": "2026-03-13T23:55:03.072Z"
}