Notra uses offset-based pagination for list endpoints. Each response includes aDocumentation Index
Fetch the complete documentation index at: https://docs.usenotra.com/llms.txt
Use this file to discover all available pages before exploring further.
pagination object so you can build paging controls in your UI.
How Pagination Works
When you request a list of posts, the response includes pagination metadata so you can:- Control how many items each request returns
- Move between pages
- Know how many total items exist
- Build clear pagination controls
Query Parameters
The maximum number of items to return per page. Range: 1-100 items per
page
The page number to retrieve. Pages start at 1. Minimum: 1
Pagination Response
Every paginated response includes apagination object:
Metadata about the current page and navigation options.
Request Examples
- Default Pagination
- Custom Limit
- Specific Page
Fetch the first page with the default limit (
10):Building Pagination Controls
Use the pagination object to build navigation controls:Best Practices
- Use a distinct cache key for each combination of
page,limit,sort,status, andcontentType. - Invalidate paginated list caches after post updates, deletes, and completed generation jobs.
- For a fuller strategy, see Caching.
Navigation: Use
nextPage and previousPage to enable or disable buttons.
These values are null when movement is not possible.Error Handling
Invalid page number
Invalid page number
If you request a page that does not exist, the API returns an error response:Check for an
error field before reading pagination values.Invalid limit value
Invalid limit value
- Values below
1default to1 - Values above
100are capped at100 - Non-numeric values default to
10
Empty datasets
Empty datasets
When there are no items,
totalPages is 0, totalItems is 0, and
posts is an empty array.