Pagination
Our list API endpoints will only return a limited number of results at a time.
By default, we'll return 50 results per page, but you can set this to any number between 1 and 100 with the take variable in the request body.
At the end of every list response, you will see a meta response that contains a count of all entities in the request.
To look beyond this first page of results, you will need to use the skip variable to skip the initial records.
Paginated Request Example
POST
https://api.felloh.com/agent/transactionsconst response = await axios(
{
method: 'post',
url: `https://api.felloh.com/agent/transactions`,
data: { skip: 10, take: 10 },
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${bearerToken}`,
},
},
);
Example of a Paginated Response
{
"data": [
{
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"name": "test"
}
],
"errors": {},
"meta": {
"request_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"code": 200,
"reason": "OK",
"message": "The request was successful",
"count": 1001
}
}
