https
General Response
Pagination
get
endpoints accpets some query params to paginate your request.
initially, your request URI looks this way;
https://baseApi/users?pageSize=4
pagination
attribute (as typed above);// https://baseApi/users?pageSize=4
{
"success": true,
"statusCode": 200,
"data": [
"...",
{
"id": "some-last-user-id",
"email": "hiseous@gmail.com",
"displayName": "Hiseous",
"verified": true
}
],
"pagination": {
"lastEvaluatedKey": {
"id": "some-last-user-id",
"dateCreated": "2024-10-24 07:46:30.725Z"
}
}
}
lastEvaluatedKey
value;stringify it, then pass as a param on the next call, this way, your next request URI looks like this;
https://baseApi/users/?pageSize=4&lastEvaluatedKey={"id":"some-last-user-id","dateFollowed":"2024-10-24 07:46:30.725Z"}
pagination
attribute, you repeat the same process with the new pagination props from the newer response;// https://baseApi/users/?pageSize=4&lastEvaluatedKey={"id":"some-last-user-id","dateFollowed":"2024-10-24 07:46:30.725Z"}
{
"success": true,
"statusCode": 200,
"data": [
"...",
{
"id": "some-another-last-user-id",
"email": "hissy-baby@gmail.com",
"displayName": "Hiseous",
"verified": true
}
],
"pagination": {
"lastEvaluatedKey": {
"id": "some-another-last-user-id",
"dateCreated": "2025-10-24 07:46:30.725Z"
}
}
}
lastEvaluatedKey
, by the way.If the response doesn't contain
pagination
, then it implies the last items were fetched.Sending Tokens
Headers Example
Modified at 2025-05-24 08:46:13