List notifications
curl --request GET \
--url https://api.spenza.com/api/v1.1/notifications \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.spenza.com/api/v1.1/notifications"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.spenza.com/api/v1.1/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.spenza.com/api/v1.1/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.spenza.com/api/v1.1/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.spenza.com/api/v1.1/notifications")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spenza.com/api/v1.1/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{
"success": true,
"data": [
{
"id": "64f1a2b3c4d5e6f7a8b9c0d1",
"category": "billing",
"title": "Low balance",
"body": "Your prepaid balance is below $10.",
"ctaRoute": "/billing",
"ctaParam": null,
"iccid": null,
"status": "unread",
"createdAt": "2026-07-31T08:00:00.000Z"
}
],
"meta": {
"page": 1,
"pageSize": 25,
"total": 4,
"totalPages": 1,
"unreadCount": 2
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "One or more fields failed validation.",
"details": {
"validationErrors": [
"status must be one of the following values: unread, read, all"
]
}
}
}Notifications
List notifications
List notifications for your account, newest first. meta carries an extra unreadCount field alongside the usual pagination fields — unreadCount is always the account-wide unread total; it is not filtered by the status query parameter and does not reflect the returned page’s contents.
GET
/
api
/
v1.1
/
notifications
List notifications
curl --request GET \
--url https://api.spenza.com/api/v1.1/notifications \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.spenza.com/api/v1.1/notifications"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.spenza.com/api/v1.1/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.spenza.com/api/v1.1/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.spenza.com/api/v1.1/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.spenza.com/api/v1.1/notifications")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spenza.com/api/v1.1/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{
"success": true,
"data": [
{
"id": "64f1a2b3c4d5e6f7a8b9c0d1",
"category": "billing",
"title": "Low balance",
"body": "Your prepaid balance is below $10.",
"ctaRoute": "/billing",
"ctaParam": null,
"iccid": null,
"status": "unread",
"createdAt": "2026-07-31T08:00:00.000Z"
}
],
"meta": {
"page": 1,
"pageSize": 25,
"total": 4,
"totalPages": 1,
"unreadCount": 2
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "One or more fields failed validation.",
"details": {
"validationErrors": [
"status must be one of the following values: unread, read, all"
]
}
}
}Authorizations
Bearer token obtained from POST /api/v1.1/auth/token.
Query Parameters
1-indexed page number.
Required range:
x >= 1Items per page.
Required range:
1 <= x <= 100Available options:
unread, read, all Response
A page of notifications.
⌘I

