example-data.com
Menu
Browse docs and collections

Overview

attachments / #83

Activity #83

User #58 attached image/png (10728570 bytes)

12/21/2025, 2:16:57 AM

Component variants

Medium
Small

User #58 attached image/png (10728570 bytes) · 12/21/2025, 2:16:57 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 83,
  "userId": 58,
  "targetType": "recipe",
  "targetId": 254,
  "url": "https://picsum.photos/seed/attachment-83/800/600",
  "mimeType": "image/png",
  "sizeBytes": 10728570,
  "createdAt": "2025-12-21T02:16:57.552Z"
}