example-data.com
Menu
Browse docs and collections

Overview

notifications / #1977

Activity #1977

User #181 reply Judy Hackett replied to your comment

5/24/2025, 12:20:40 PM

Component variants

Medium
Small

User #181 reply Judy Hackett replied to your comment · 5/24/2025, 12:20:40 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1977,
  "userId": 181,
  "type": "reply",
  "title": "Judy Hackett replied to your comment",
  "body": "Confero curo uterque.",
  "isRead": false,
  "link": null,
  "createdAt": "2025-05-24T12:20:40.142Z"
}