Pagination
All top-level API endpoints have support for bulk fetches via "list" API methods.
Last updated
curl --request GET \
--url 'https://{sub-domain}.trustswiftly.com/api/users?per_page=2&page=1' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Accept: application/json'{
"data": [
{
"id": 1,
"first_name": "John",
"last_name": "Doe",
// ... more user fields
},
{
"id": 2,
"first_name": "Jane",
"last_name": "Smith",
// ... more user fields
}
],
"links": {
"first": "https://{sub-domain}.trustswiftly.com/api/users?page=1",
"last": "https://{sub-domain}.trustswiftly.com/api/users?page=5",
"prev": null,
"next": "https://{sub-domain}.trustswiftly.com/api/users?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 5,
"path": "https://{sub-domain}.trustswiftly.com/api/users",
"per_page": 2,
"to": 2,
"total": 10
}
}