example-data.com
Menu
Browse docs and collections

Overview

attachments / #404

Activity #404

User #149 attached video/mp4 (27770102 bytes)

6/28/2025, 2:52:06 AM

Component variants

Medium
Small

User #149 attached video/mp4 (27770102 bytes) · 6/28/2025, 2:52:06 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 404,
  "userId": 149,
  "targetType": "product",
  "targetId": 158,
  "url": "https://example.com/files/attachment-404.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 27770102,
  "createdAt": "2025-06-28T02:52:06.060Z"
}