example-data.com
Menu
Browse docs and collections

Overview

notifications / #842

Activity #842

User #172 reply Alexa Rippin replied to your comment

12/24/2025, 1:03:05 PM

Component variants

Medium
Small

User #172 reply Alexa Rippin replied to your comment · 12/24/2025, 1:03:05 PM

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/notifications/842"
);
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/842"
);
const notification = (await res.json()) as Notification;

Python example

import requests

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

Response

{
  "id": 842,
  "userId": 172,
  "type": "reply",
  "title": "Alexa Rippin replied to your comment",
  "body": "Sint thema stabilis ustulo cupio denuo temperantia cognatus vado congregatio.",
  "isRead": false,
  "link": "https://example.com/reply/Xl1R0x46",
  "createdAt": "2025-12-24T13:03:05.524Z"
}