example-data.com
Menu
Browse docs and collections

Overview

attachments / #464

Activity #464

User #79 attached image/png (246646 bytes)

5/15/2026, 3:31:12 PM

Component variants

Medium
Small

User #79 attached image/png (246646 bytes) · 5/15/2026, 3:31:12 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 464,
  "userId": 79,
  "targetType": "post",
  "targetId": 3,
  "url": "https://picsum.photos/seed/attachment-464/1200/600",
  "mimeType": "image/png",
  "sizeBytes": 246646,
  "createdAt": "2026-05-15T15:31:12.691Z"
}