example-data.com
Menu
Browse docs and collections

Overview

notifications / #947

Activity #947

User #56 system System notification

5/24/2025, 7:40:41 AM

Component variants

Medium
Small

User #56 system System notification · 5/24/2025, 7:40:41 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 947,
  "userId": 56,
  "type": "system",
  "title": "System notification",
  "body": "Venustas defetiscor libero talio sono tergiversatio.",
  "isRead": true,
  "link": "https://example.com/system/2DhTne_w",
  "createdAt": "2025-05-24T07:40:41.068Z"
}