Listar eventos
curl --request GET \
--url https://api.tupana.ai/v2/events/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.tupana.ai/v2/events/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.tupana.ai/v2/events/', 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.tupana.ai/v2/events/",
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: <api-key>"
],
]);
$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.tupana.ai/v2/events/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.tupana.ai/v2/events/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tupana.ai/v2/events/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "evnt_8102938475612001",
"type": "bank_account.refreshed",
"api_version": 2,
"created_at": "2023-11-07T05:31:56Z",
"company_id": "ment_3672486436546233854",
"resource_type": "bank_account",
"resource_id": "bacc_7Hk2938475610293",
"data": {}
}
],
"meta": {
"page": 123,
"page_size": 123,
"total": 123,
"total_pages": 123
},
"links": {
"next": "<string>",
"prev": "<string>"
}
}Eventos
Listar eventos
Lo que los webhooks bancarios y de conexión avisaron, consultable. Más nuevos primero. Retención 400 días.
GET
/
events
/
Listar eventos
curl --request GET \
--url https://api.tupana.ai/v2/events/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.tupana.ai/v2/events/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.tupana.ai/v2/events/', 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.tupana.ai/v2/events/",
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: <api-key>"
],
]);
$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.tupana.ai/v2/events/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.tupana.ai/v2/events/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tupana.ai/v2/events/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "evnt_8102938475612001",
"type": "bank_account.refreshed",
"api_version": 2,
"created_at": "2023-11-07T05:31:56Z",
"company_id": "ment_3672486436546233854",
"resource_type": "bank_account",
"resource_id": "bacc_7Hk2938475610293",
"data": {}
}
],
"meta": {
"page": 123,
"page_size": 123,
"total": 123,
"total_pages": 123
},
"links": {
"next": "<string>",
"prev": "<string>"
}
}Todo lo que los webhooks bancarios y de conexión avisaron, consultable. Un
webhook que falló, o que nunca configuraste, no te deja sin saber qué pasó:
cada evento queda registrado con el mismo
Más nuevos primero. Se conservan 400 días. Una key sandbox ve solo los eventos
del dataset sandbox; una de
producción, solo los reales.
data que viaja en el webhook.
curl "https://api.tupana.ai/v2/events/?type=movement.created&since=2026-10-28T00:00:00Z" \
-H "Authorization: Api-Key TU_API_KEY"
{
"data": [
{
"id": "evnt_8102938475612001",
"type": "movement.created",
"api_version": 2,
"created_at": "2026-10-28T09:12:04Z",
"company_id": "ment_3672486436546233854",
"resource_type": "bank_account",
"resource_id": "bacc_7Hk2938475610293",
"data": {
"account_id": "bacc_7Hk2938475610293",
"connection_id": "cred_9Pq5028174639201",
"company_id": "ment_3672486436546233854",
"movement_ids": ["move_Qm8102938475612"],
"count": 1
}
}
],
"meta": { "page": 1, "page_size": 50, "total": 1, "total_pages": 1 },
"links": { "next": null, "prev": null }
}
Filtros
| Parámetro | Qué hace |
|---|---|
type | Un evento bancario (bank_account.refreshed, movement.created, bank_account.refresh_failed, connection.degraded) o de conexión (connection.active, connection.requires_action). |
resource_id | Los eventos de ese recurso (bacc_…, cred_…). |
since, until | Rango de created_at, ISO 8601. |
Authorizations
API Key para autenticación. Debe proporcionarse en el header Authorization con el formato: 'Api-Key YOUR-API-KEY' (incluye el prefijo 'Api-Key ' seguido de tu API key)
Query Parameters
Required range:
x <= 200