List billing history
/api/v1/history
Read server and private-network purchases and renewals in the fixed team, filtered by product and time before pagination. Twenty records per page; an uncertain outcome stays unknown.
Request example
curl "https://tovahub.com/api/v1/history?product=all&page=1" \
-H "Authorization: Bearer $TOVAHUB_TOKEN"Examples only. No requests are sent from this page.
Illustrative response
{
"userId": "507f1f77bcf86cd799439012",
"page": 1,
"limit": 20,
"total": 1,
"items": [
{
"_id": "network:507f1f77bcf86cd799439013",
"product": "network",
"kind": "purchase",
"amount": "990",
"coin": "USD",
"hostname": "team-switch",
"status": "completed",
"createdAt": "2026-11-12T00:00:00.000Z"
}
]
}Parameters
productQuery · Optionalstring
all, server or network. Defaults to all.
pageQuery · Optionalinteger
Page number, 1–10000. Twenty records per page.
fromQuery · Optionalstring
Inclusive ISO 8601 UTC start. Supply both from and to, or neither.
toQuery · Optionalstring
Exclusive ISO 8601 UTC end after from. Convert inclusive local calendar dates to midnight boundaries in the client time zone.
Response
HTTP status 200
Purchase and renewal records for servers and private networks; filtered before pagination.
userIdstringAuthenticated reader ID. The team is fixed by authentication.
pageintegerRequested page, starting at 1.
limit20Fixed page size.
totalintegerTotal matching records in this fixed team.
itemsarraySafe rows with _id, product (server/network), kind (purchase/renew), integer-string amount, coin (USD/xTOVA), hostname, status and createdAt. No provider payload or credentials.