example-data.com
Menu
Browse docs and collections

Overview

attachments / #700

Activity #700

User #171 attached application/pdf (35043478 bytes)

5/5/2026, 8:46:56 AM

Component variants

Medium
Small

User #171 attached application/pdf (35043478 bytes) · 5/5/2026, 8:46:56 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 700,
  "userId": 171,
  "targetType": "recipe",
  "targetId": 6,
  "url": "https://example.com/files/attachment-700.pdf",
  "mimeType": "application/pdf",
  "sizeBytes": 35043478,
  "createdAt": "2026-05-05T08:46:56.356Z"
}