example-data.com
Menu
Browse docs and collections

Overview

notifications / #1527

Activity #1527

User #84 reply Anne Hamill replied to your comment

10/6/2025, 8:38:46 AM

Component variants

Medium
Small

User #84 reply Anne Hamill replied to your comment · 10/6/2025, 8:38:46 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1527,
  "userId": 84,
  "type": "reply",
  "title": "Anne Hamill replied to your comment",
  "body": "Debilito suus voluptatem vilis.",
  "isRead": true,
  "link": "https://example.com/reply/Uc_95tLV",
  "createdAt": "2025-10-06T08:38:46.015Z"
}