example-data.com
Menu
Browse docs and collections

Overview

attachments / #79

Activity #79

User #94 attached image/webp (36857137 bytes)

4/16/2026, 7:26:19 AM

Component variants

Medium
Small

User #94 attached image/webp (36857137 bytes) · 4/16/2026, 7:26:19 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 79,
  "userId": 94,
  "targetType": "recipe",
  "targetId": 141,
  "url": "https://picsum.photos/seed/attachment-79/1200/800",
  "mimeType": "image/webp",
  "sizeBytes": 36857137,
  "createdAt": "2026-04-16T07:26:19.173Z"
}