example-data.com
Menu
Browse docs and collections

Overview

notifications / #125

Activity #125

User #39 reply Clementine Nicolas replied to your comment

12/1/2025, 7:32:16 PM

Component variants

Medium
Small

User #39 reply Clementine Nicolas replied to your comment · 12/1/2025, 7:32:16 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 125,
  "userId": 39,
  "type": "reply",
  "title": "Clementine Nicolas replied to your comment",
  "body": "Sumo convoco trado clam arbor.",
  "isRead": true,
  "link": "https://example.com/reply/uT64vhlr",
  "createdAt": "2025-12-01T19:32:16.626Z"
}