example-data.com
Menu
Browse docs and collections

Overview

attachments / #347

Activity #347

User #133 attached video/mp4 (7773692 bytes)

3/26/2026, 8:54:11 AM

Component variants

Medium
Small

User #133 attached video/mp4 (7773692 bytes) · 3/26/2026, 8:54:11 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 347,
  "userId": 133,
  "targetType": "recipe",
  "targetId": 230,
  "url": "https://example.com/files/attachment-347.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 7773692,
  "createdAt": "2026-03-26T08:54:11.319Z"
}