# Link header pagination method

## Overview

When a response to a request is received, the response contains a header which holds a URL for the next page of results.&#x20;

## Link header options

| Option           | Summary                                                                                          |
| ---------------- | ------------------------------------------------------------------------------------------------ |
| Link header name | Enter a name for the header that will contain link information. A commonly used name is: `Link`. |

## When does pagination stop?

Pagination continues until the response does not contain a link header.


---

# 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://doc.wearepatchworks.com/product-documentation/developer-hub/connector-builder/building-your-own-connector/4-endpoints/endpoint-options/pagination/link-header-pagination-method.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.
