example-data.com
Menu
Browse docs and collections

Overview

notifications / #1804

Activity #1804

User #158 mention Abdul Rau mentioned you in a post

8/20/2025, 9:44:22 AM

Component variants

Medium
Small

User #158 mention Abdul Rau mentioned you in a post · 8/20/2025, 9:44:22 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1804,
  "userId": 158,
  "type": "mention",
  "title": "Abdul Rau mentioned you in a post",
  "body": "Cuppedia deserunt verbum conqueror inflammatio.",
  "isRead": false,
  "link": "https://example.com/mention/h6WFQthr",
  "createdAt": "2025-08-20T09:44:22.132Z"
}