# Pagination

The API "search" endpoints return a result set of objects matching the parameters of the search request.  Rightsline utilizes offset pagination to dictate the number of objects returned in each request.  Pagination is controlled using the following two request parameters: `start`, `rows`.

## Parameters

| start | int | 0  | The zero-based index offset of the first object in the result set. |
| ----- | --- | -- | ------------------------------------------------------------------ |
| rows  | int | 25 | The number of objects to return in the result set. Max = 100       |

#### Example: Search for catalog items with a template ID = 1 (paginated)

```javascript
{
    "query": {
        	"$and": [
            {
                "$eq": [
                    "templateid",
                    1
                ]
            }
        ]
    },
    "start": 0,
    "rows": 100
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api-docs.rightsline.com/search/pagination.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
