Skip to main content
List endpoints use cursor-based pagination.

Request Parameters

page
integer
Page number (default: 1)
page_size
integer
Items per page (default: 20, max: 100)
cursor
string
Cursor for next page (from previous response)

Response Format

{
  "results": [...],
  "count": 100,
  "next": "https://api.gosentrix.io/api/v1/tenants?cursor=abc123",
  "previous": null
}

Pagination Methods

Offset-Based

GET /api/v1/tenants?page=1&page_size=20

Cursor-Based

GET /api/v1/tenants?cursor=abc123

Best Practices

  • Use cursor-based pagination for large datasets
  • Set appropriate page sizes
  • Handle next and previous links
  • Cache pagination state when needed