Safe Haven supports fetch of API resources like Accounts, Transfers. These endpoints share a common structure, taking at least these two parameters: page and limit. page is 0-based and defaults to 0. limit defaults to 25, with a maximum of 100; values above 100 are capped at 100. The resulting response will always include a pagination object with the total records count, the number of pages, the current page, and the limit set.
{
"statusCode": 200,
"message": "Accounts fetched successfully.",
"data": [
{.....},
{.....},
{.....}
],
"pagination": {
"total": 1,
"pages": 1,
"page": 0,
"limit": 25
}
}