example-data.com
Menu
Browse docs and collections

Overview

attachments / #216

Activity #216

User #173 attached video/mp4 (48679742 bytes)

7/6/2025, 4:42:47 AM

Component variants

Medium
Small

User #173 attached video/mp4 (48679742 bytes) · 7/6/2025, 4:42:47 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 216,
  "userId": 173,
  "targetType": "recipe",
  "targetId": 32,
  "url": "https://example.com/files/attachment-216.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 48679742,
  "createdAt": "2025-07-06T04:42:47.370Z"
}