example-data.com
Menu
Browse docs and collections

Overview

notifications / #1331

Activity #1331

User #66 reply Gudrun Brakus replied to your comment

7/25/2025, 8:36:37 PM

Component variants

Medium
Small

User #66 reply Gudrun Brakus replied to your comment · 7/25/2025, 8:36:37 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1331,
  "userId": 66,
  "type": "reply",
  "title": "Gudrun Brakus replied to your comment",
  "body": "Totam volaticus nobis decerno vilis atqui adaugeo concido versus.",
  "isRead": true,
  "link": "https://example.com/reply/Dl1I0Rif",
  "createdAt": "2025-07-25T20:36:37.026Z"
}