example-data.com
Menu
Browse docs and collections

Overview

notifications / #302

Activity #302

User #27 reply Guy Christiansen replied to your comment

8/9/2025, 7:20:03 PM

Component variants

Medium
Small

User #27 reply Guy Christiansen replied to your comment · 8/9/2025, 7:20:03 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 302,
  "userId": 27,
  "type": "reply",
  "title": "Guy Christiansen replied to your comment",
  "body": "Terror sopor sunt.",
  "isRead": false,
  "link": "https://example.com/reply/k-BcM4tm",
  "createdAt": "2025-08-09T19:20:03.636Z"
}