example-data.com
Menu
Browse docs and collections

Overview

attachments / #706

Activity #706

User #88 attached image/webp (48920310 bytes)

5/2/2026, 7:28:50 PM

Component variants

Medium
Small

User #88 attached image/webp (48920310 bytes) · 5/2/2026, 7:28:50 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 706,
  "userId": 88,
  "targetType": "product",
  "targetId": 57,
  "url": "https://picsum.photos/seed/attachment-706/800/300",
  "mimeType": "image/webp",
  "sizeBytes": 48920310,
  "createdAt": "2026-05-02T19:28:50.669Z"
}