example-data.com
Menu
Browse docs and collections

Overview

attachments / #43

Activity #43

User #233 attached video/mp4 (7722267 bytes)

10/4/2025, 10:55:15 PM

Component variants

Medium
Small

User #233 attached video/mp4 (7722267 bytes) · 10/4/2025, 10:55:15 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 43,
  "userId": 233,
  "targetType": "recipe",
  "targetId": 78,
  "url": "https://example.com/files/attachment-43.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 7722267,
  "createdAt": "2025-10-04T22:55:15.045Z"
}