> ## Documentation Index
> Fetch the complete documentation index at: https://developer.onecodex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pagination

The One Codex API follows the basic pagination model of the [GitHub API](https://developer.github.com/v3/#pagination). Pages may be requested using the `page` and `per_page` query string arguments. The `Link` header lists links to the current, previous, next, first, and last pages. The `X-Total-Count` header contains a count of the total number of items:

<CodeGroup>
  ```text text theme={null}
  HTTP/1.1 200 OK
  Link: </api/v1/samples?page=1&per_page=20>; rel="self",
        </api/v1/samples?page=2&per_page=20>; rel="next"
        </api/v1/samples?page=3&per_page=20>; rel="last"
  X-Total-Count: 46
  ```
</CodeGroup>
