example-data.com
Menu
Browse docs and collections

Overview

notifications / #1788

Activity #1788

User #73 reply Aylin Sanford replied to your comment

9/4/2025, 2:16:45 PM

Component variants

Medium
Small

User #73 reply Aylin Sanford replied to your comment · 9/4/2025, 2:16:45 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1788,
  "userId": 73,
  "type": "reply",
  "title": "Aylin Sanford replied to your comment",
  "body": "Acerbitas capio ambitus tamen vinitor.",
  "isRead": false,
  "link": "https://example.com/reply/Lg0GB3v3",
  "createdAt": "2025-09-04T14:16:45.720Z"
}