import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const notification of client.notifications.list()) {
console.log(notification.id);
}curl --request GET \
--url https://api.whop.com/api/v1/notifications \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.whop.com/api/v1/notifications"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.whop.com/api/v1/notifications",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.whop.com/api/v1/notifications"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.whop.com/api/v1/notifications")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.whop.com/api/v1/notifications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"account": {
"id": "biz_xxxxxxxxxxxxxx",
"logo_url": "https://assets-2-rough.whop.com/uploads/image/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"route": "shine-time-auto-detailing",
"title": "Shine Time Auto Detailing"
},
"attachment_url": "https://ui-avatars.com/api/",
"content": "Tuesday 9:00 AM, Bay 2",
"created_at": "2026-01-01T12:00:00.000Z",
"experience": {
"app": {
"icon_url": "https://pub-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.r2.dev/custom-perk-icon.svg",
"id": "app_xxxxxxxxxxxxxx"
},
"id": "exp_xxxxxxxxxxxxxx",
"name": "Bookings"
},
"id": "ntfr_xxxxxxxxxxxxxx:xxxxxxxxxxxxx",
"iframe_link": "https://whopappdomain0000001.apps.whop.com/experiences/exp_xxxxxxxxxxxxxx/bookings/upcoming",
"link": "https://whop.com/joined/shine-time-auto-detailing/bookings-xxxxxxxxxxxxxx/app/bookings/upcoming/",
"mentions_me": false,
"rest_path": "/bookings/upcoming",
"sender": {
"id": "user_xxxxxxxxxxxxxx",
"name": "Tanya Cole",
"username": "tanyacole"
},
"subject": "Your ceramic coating is booked",
"topic": {
"default_preference_value": true,
"id": "topic_xxxxxxxxxxxxxx",
"is_mention": false,
"topic_type": "user"
}
}
],
"page_info": {
"end_cursor": "ntfr_xxxxxxxxxxxxxx:xxxxxxxxxxxxx",
"has_next_page": false,
"has_previous_page": false,
"start_cursor": "ntfr_xxxxxxxxxxxxxx:xxxxxxxxxxxxx"
}
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}List Notifications
Lists the authenticated user’s notifications, newest first. Requires a user credential — an account API key has no notification feed. Without filters the feed spans every experience the user belongs to plus the teams they are a member of.
import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const notification of client.notifications.list()) {
console.log(notification.id);
}curl --request GET \
--url https://api.whop.com/api/v1/notifications \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.whop.com/api/v1/notifications"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.whop.com/api/v1/notifications",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.whop.com/api/v1/notifications"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.whop.com/api/v1/notifications")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.whop.com/api/v1/notifications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"account": {
"id": "biz_xxxxxxxxxxxxxx",
"logo_url": "https://assets-2-rough.whop.com/uploads/image/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"route": "shine-time-auto-detailing",
"title": "Shine Time Auto Detailing"
},
"attachment_url": "https://ui-avatars.com/api/",
"content": "Tuesday 9:00 AM, Bay 2",
"created_at": "2026-01-01T12:00:00.000Z",
"experience": {
"app": {
"icon_url": "https://pub-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.r2.dev/custom-perk-icon.svg",
"id": "app_xxxxxxxxxxxxxx"
},
"id": "exp_xxxxxxxxxxxxxx",
"name": "Bookings"
},
"id": "ntfr_xxxxxxxxxxxxxx:xxxxxxxxxxxxx",
"iframe_link": "https://whopappdomain0000001.apps.whop.com/experiences/exp_xxxxxxxxxxxxxx/bookings/upcoming",
"link": "https://whop.com/joined/shine-time-auto-detailing/bookings-xxxxxxxxxxxxxx/app/bookings/upcoming/",
"mentions_me": false,
"rest_path": "/bookings/upcoming",
"sender": {
"id": "user_xxxxxxxxxxxxxx",
"name": "Tanya Cole",
"username": "tanyacole"
},
"subject": "Your ceramic coating is booked",
"topic": {
"default_preference_value": true,
"id": "topic_xxxxxxxxxxxxxx",
"is_mention": false,
"topic_type": "user"
}
}
],
"page_info": {
"end_cursor": "ntfr_xxxxxxxxxxxxxx:xxxxxxxxxxxxx",
"has_next_page": false,
"has_previous_page": false,
"start_cursor": "ntfr_xxxxxxxxxxxxxx:xxxxxxxxxxxxx"
}
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}Authorizations
An Account API key, account-scoped JWT, App API key, or user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************.
Headers
Pins the request to a dated API version.
"2026-08-13"
Query Parameters
Only return notifications created since the user last viewed their source.
Only return notifications from this experience (exp_ tag).
Only return team notifications for this account (biz_ tag).
Only return notifications that mention the user directly.
The number of notifications to return (default 20, max 100).
A cursor (a notification id from a previous page); returns notifications older than it.

