v8

OpenAPI 3.1.02026-08-033623795.0 MB
Notifications

Retrieve Notification

Retrieves a single notification by id — either an id returned by List Notifications, or the ephemeral id delivered with a push/websocket event. Requires a user credential.

get/notifications/{notification_id}

Path parameters

notification_idstring required

A notification id from List Notifications, or the id delivered with a push/websocket event.

Response

notification found

attachment_urlstring required

Image displayed alongside the notification — the sender's avatar, or the default notification image.

contentstring required

The body text of the notification displayed to the user.

created_atstring required

When the notification was created, as an ISO 8601 timestamp.

idstring required

Notification ID. Feed rows carry a composite id that doubles as the list cursor.

iframe_linkstring nullable required

The same destination on the app's own domain, which the Whop web and mobile clients embed instead of navigating to it. Only relevant if you render Whop apps yourself. null when the notification carries its own link.

linkstring nullable required

The whop.com page the notification opens, as a normal top-level navigation. This is the link to use unless you host Whop apps yourself. null when the notification has no click-through destination.

mentions_meboolean required

Whether the authenticated user was directly mentioned in this notification.

rest_pathstring nullable required

Additional path information appended to the notification's deep link, if any.

subjectstring required

The title line of the notification displayed to the user.

Example response

{
  "topic": {
    "topic_type": "account"
  }
}