example-data.com
Menu
Browse docs and collections

Overview

attachments / #326

Activity #326

User #133 attached image/png (11439550 bytes)

4/25/2026, 2:29:48 PM

Component variants

Medium
Small

User #133 attached image/png (11439550 bytes) · 4/25/2026, 2:29:48 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 326,
  "userId": 133,
  "targetType": "recipe",
  "targetId": 14,
  "url": "https://picsum.photos/seed/attachment-326/800/800",
  "mimeType": "image/png",
  "sizeBytes": 11439550,
  "createdAt": "2026-04-25T14:29:48.371Z"
}