example-data.com
Menu
Browse docs and collections

Overview

notifications / #1922

Activity #1922

User #89 reply Charity Crona replied to your comment

7/21/2025, 3:12:36 AM

Component variants

Medium
Small

User #89 reply Charity Crona replied to your comment · 7/21/2025, 3:12:36 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1922,
  "userId": 89,
  "type": "reply",
  "title": "Charity Crona replied to your comment",
  "body": "Laborum libero patruus strues.",
  "isRead": true,
  "link": "https://example.com/reply/hXlcZ1f5",
  "createdAt": "2025-07-21T03:12:36.208Z"
}