example-data.com
Menu
Browse docs and collections

Overview

notifications / #445

Activity #445

User #243 like Malvina Ortiz liked your post

12/26/2025, 1:29:05 PM

Component variants

Medium
Small

User #243 like Malvina Ortiz liked your post · 12/26/2025, 1:29:05 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 445,
  "userId": 243,
  "type": "like",
  "title": "Malvina Ortiz liked your post",
  "body": "Adipiscor agnosco adstringo.",
  "isRead": false,
  "link": "https://example.com/like/Kf2ZZPhC",
  "createdAt": "2025-12-26T13:29:05.965Z"
}