example-data.com
Menu
Browse docs and collections

Overview

attachments / #208

Activity #208

User #179 attached application/pdf (20762570 bytes)

3/21/2026, 2:30:37 PM

Component variants

Medium
Small

User #179 attached application/pdf (20762570 bytes) · 3/21/2026, 2:30:37 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 208,
  "userId": 179,
  "targetType": "restaurant",
  "targetId": 69,
  "url": "https://example.com/files/attachment-208.pdf",
  "mimeType": "application/pdf",
  "sizeBytes": 20762570,
  "createdAt": "2026-03-21T14:30:37.890Z"
}