example-data.com
Menu
Browse docs and collections

Overview

attachments / #681

Activity #681

User #176 attached image/png (12954781 bytes)

1/23/2026, 1:57:29 AM

Component variants

Medium
Small

User #176 attached image/png (12954781 bytes) · 1/23/2026, 1:57:29 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 681,
  "userId": 176,
  "targetType": "recipe",
  "targetId": 124,
  "url": "https://picsum.photos/seed/attachment-681/800/600",
  "mimeType": "image/png",
  "sizeBytes": 12954781,
  "createdAt": "2026-01-23T01:57:29.253Z"
}