example-data.com
Menu
Browse docs and collections

Overview

notifications / #380

Activity #380

User #78 reply Mckenna Hegmann-Price replied to your comment

11/3/2025, 4:57:52 AM

Component variants

Medium
Small

User #78 reply Mckenna Hegmann-Price replied to your comment · 11/3/2025, 4:57:52 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 380,
  "userId": 78,
  "type": "reply",
  "title": "Mckenna Hegmann-Price replied to your comment",
  "body": "Bardus verus degero vulgaris bellum villa deputo iste.",
  "isRead": true,
  "link": "https://example.com/reply/4XUFvwZH",
  "createdAt": "2025-11-03T04:57:52.095Z"
}