example-data.com
Menu
Browse docs and collections

Overview

attachments / #303

Activity #303

User #204 attached image/webp (21085339 bytes)

5/21/2026, 3:27:04 AM

Component variants

Medium
Small

User #204 attached image/webp (21085339 bytes) · 5/21/2026, 3:27:04 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 303,
  "userId": 204,
  "targetType": "recipe",
  "targetId": 61,
  "url": "https://picsum.photos/seed/attachment-303/800/400",
  "mimeType": "image/webp",
  "sizeBytes": 21085339,
  "createdAt": "2026-05-21T03:27:04.210Z"
}