example-data.com
Menu
Browse docs and collections

Overview

attachments / #284

Activity #284

User #5 attached video/mp4 (5658475 bytes)

11/28/2025, 10:45:28 AM

Component variants

Medium
Small

User #5 attached video/mp4 (5658475 bytes) · 11/28/2025, 10:45:28 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 284,
  "userId": 5,
  "targetType": "restaurant",
  "targetId": 69,
  "url": "https://example.com/files/attachment-284.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 5658475,
  "createdAt": "2025-11-28T10:45:28.861Z"
}