example-data.com
Menu
Browse docs and collections

Overview

notifications / #1946

Activity #1946

User #181 reply Lacy Gusikowski replied to your comment

8/1/2025, 12:49:53 PM

Component variants

Medium
Small

User #181 reply Lacy Gusikowski replied to your comment · 8/1/2025, 12:49:53 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1946,
  "userId": 181,
  "type": "reply",
  "title": "Lacy Gusikowski replied to your comment",
  "body": "Architecto creptio adsidue viriliter esse truculenter qui possimus desidero.",
  "isRead": false,
  "link": "https://example.com/reply/0ye02QcY",
  "createdAt": "2025-08-01T12:49:53.683Z"
}