example-data.com
Menu
Browse docs and collections

Overview

notifications / #1722

Activity #1722

User #232 reply Matilde Beahan replied to your comment

10/14/2025, 2:15:05 PM

Component variants

Medium
Small

User #232 reply Matilde Beahan replied to your comment · 10/14/2025, 2:15:05 PM

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/notifications/1722"
);
const notification = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/notifications.d.ts https://example-data.com/types/notifications.d.ts
import type { Notification } from "./types/notifications";

const res = await fetch(
  "https://example-data.com/api/v1/notifications/1722"
);
const notification = (await res.json()) as Notification;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/notifications/1722"
)
notification = res.json()

Response

{
  "id": 1722,
  "userId": 232,
  "type": "reply",
  "title": "Matilde Beahan replied to your comment",
  "body": "Vindico quod solus trans canonicus cursim vinitor utrum.",
  "isRead": false,
  "link": "https://example.com/reply/43u-ockb",
  "createdAt": "2025-10-14T14:15:05.387Z"
}