example-data.com
Menu
Browse docs and collections

Overview

notifications / #642

Activity #642

User #169 reply Maymie Boehm replied to your comment

6/2/2025, 4:09:12 PM

Component variants

Medium
Small

User #169 reply Maymie Boehm replied to your comment · 6/2/2025, 4:09:12 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 642,
  "userId": 169,
  "type": "reply",
  "title": "Maymie Boehm replied to your comment",
  "body": "Complectus carbo aufero delectatio ventosus currus.",
  "isRead": false,
  "link": "https://example.com/reply/5p33UebW",
  "createdAt": "2025-06-02T16:09:12.292Z"
}