example-data.com
Menu
Browse docs and collections

Overview

attachments / #578

Activity #578

User #191 attached video/mp4 (41414036 bytes)

4/11/2026, 12:02:38 AM

Component variants

Medium
Small

User #191 attached video/mp4 (41414036 bytes) · 4/11/2026, 12:02:38 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 578,
  "userId": 191,
  "targetType": "recipe",
  "targetId": 118,
  "url": "https://example.com/files/attachment-578.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 41414036,
  "createdAt": "2026-04-11T00:02:38.369Z"
}