Listar notificaciones
curl --request GET \
--url https://api.example.com/notificationsimport requests
url = "https://api.example.com/notifications"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/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.example.com/notifications",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/notifications"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/notifications")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/notifications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "notif_abc123",
"title": "Pago recibido",
"message": "Se ha recibido un pago de 50.00 USD.",
"read": false,
"createdAt": "2026-03-30T14:25:00Z"
},
{
"id": "notif_def456",
"title": "KYC aprobado",
"message": "Tu verificación de identidad ha sido aprobada.",
"read": true,
"createdAt": "2026-03-29T09:10:00Z"
}
],
"page": 1,
"limit": 20,
"total": 2
}
Notificaciones
Listar notificaciones
Obtiene la lista paginada de notificaciones del usuario autenticado.
GET
/
notifications
Listar notificaciones
curl --request GET \
--url https://api.example.com/notificationsimport requests
url = "https://api.example.com/notifications"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/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.example.com/notifications",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/notifications"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/notifications")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/notifications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "notif_abc123",
"title": "Pago recibido",
"message": "Se ha recibido un pago de 50.00 USD.",
"read": false,
"createdAt": "2026-03-30T14:25:00Z"
},
{
"id": "notif_def456",
"title": "KYC aprobado",
"message": "Tu verificación de identidad ha sido aprobada.",
"read": true,
"createdAt": "2026-03-29T09:10:00Z"
}
],
"page": 1,
"limit": 20,
"total": 2
}
Requiere autenticación con Bearer token.
integer
Número de página. Por defecto
1.integer
Cantidad de resultados por página. Por defecto
20.Respuesta
La respuesta es un array de objetos con la siguiente estructura:string
Identificador único de la notificación.
string
Título de la notificación.
string
Contenido del mensaje de la notificación.
boolean
Indica si la notificación ha sido leída.
string
Fecha de creación en formato ISO 8601.
{
"data": [
{
"id": "notif_abc123",
"title": "Pago recibido",
"message": "Se ha recibido un pago de 50.00 USD.",
"read": false,
"createdAt": "2026-03-30T14:25:00Z"
},
{
"id": "notif_def456",
"title": "KYC aprobado",
"message": "Tu verificación de identidad ha sido aprobada.",
"read": true,
"createdAt": "2026-03-29T09:10:00Z"
}
],
"page": 1,
"limit": 20,
"total": 2
}
⌘I