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
. By default, the page is set to 0
and a limit of 25
. You can fetch a maximum of 100
records at once. 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"
}
}