example-data.com
Menu
Browse docs and collections

Overview

attachments / #439

Activity #439

User #83 attached image/jpeg (45657261 bytes)

2/6/2026, 12:16:15 PM

Component variants

Medium
Small

User #83 attached image/jpeg (45657261 bytes) · 2/6/2026, 12:16:15 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 439,
  "userId": 83,
  "targetType": "recipe",
  "targetId": 208,
  "url": "https://picsum.photos/seed/attachment-439/800/600",
  "mimeType": "image/jpeg",
  "sizeBytes": 45657261,
  "createdAt": "2026-02-06T12:16:15.790Z"
}