example-data.com
Menu
Browse docs and collections

Overview

notifications / #926

Activity #926

User #141 like Izaiah Rempel liked your post

5/29/2025, 10:53:13 AM

Component variants

Medium
Small

User #141 like Izaiah Rempel liked your post · 5/29/2025, 10:53:13 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 926,
  "userId": 141,
  "type": "like",
  "title": "Izaiah Rempel liked your post",
  "body": "Sumo vehemens chirographum audax caute aegrus ascisco.",
  "isRead": false,
  "link": "https://example.com/like/gUvQVZ6z",
  "createdAt": "2025-05-29T10:53:13.124Z"
}