example-data.com
Menu
Browse docs and collections

Overview

attachments / #737

Activity #737

User #211 attached video/mp4 (13198580 bytes)

2/25/2026, 3:29:57 PM

Component variants

Medium
Small

User #211 attached video/mp4 (13198580 bytes) · 2/25/2026, 3:29:57 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 737,
  "userId": 211,
  "targetType": "restaurant",
  "targetId": 90,
  "url": "https://example.com/files/attachment-737.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 13198580,
  "createdAt": "2026-02-25T15:29:57.437Z"
}