example-data.com
Menu
Browse docs and collections

Overview

attachments / #46

Activity #46

User #17 attached video/mp4 (38879696 bytes)

9/19/2025, 4:34:37 AM

Component variants

Medium
Small

User #17 attached video/mp4 (38879696 bytes) · 9/19/2025, 4:34:37 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 46,
  "userId": 17,
  "targetType": "restaurant",
  "targetId": 93,
  "url": "https://example.com/files/attachment-46.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 38879696,
  "createdAt": "2025-09-19T04:34:37.198Z"
}