example-data.com
Menu
Browse docs and collections

Overview

attachments / #47

Activity #47

User #144 attached video/mp4 (8936226 bytes)

9/6/2025, 10:13:11 AM

Component variants

Medium
Small

User #144 attached video/mp4 (8936226 bytes) · 9/6/2025, 10:13:11 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 47,
  "userId": 144,
  "targetType": "restaurant",
  "targetId": 34,
  "url": "https://example.com/files/attachment-47.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 8936226,
  "createdAt": "2025-09-06T10:13:11.504Z"
}