example-data.com
Menu
Browse docs and collections

Overview

notifications / #621

Activity #621

User #31 like Florencio Mohr liked your post

10/29/2025, 3:03:09 PM

Component variants

Medium
Small

User #31 like Florencio Mohr liked your post · 10/29/2025, 3:03:09 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 621,
  "userId": 31,
  "type": "like",
  "title": "Florencio Mohr liked your post",
  "body": "Tamdiu cum aro quisquam urbs talus tenus.",
  "isRead": false,
  "link": "https://example.com/like/5tnCeZ9v",
  "createdAt": "2025-10-29T15:03:09.865Z"
}