> ## Documentation Index
> Fetch the complete documentation index at: https://signatureapi-daf4ee54.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Pagination

> Navigate paginated API responses using cursor-based pagination with next and previous links

All endpoints that list objects provide support for pagination.

Paginated responses return items in reverse chronological order, such that the most recently created object will be returned first on the list and the oldest will be returned last.

The result includes a `links` object with a `previous` and a `next` property. Do a `GET` to the URLs in those properties to fetch the previous or next page of results.

### Attributes

Paginated responses share a common structure using cursor-based pagination.

<ResponseField name="links" type="object">
  Links to fetch the next and previous page of the paginated result.

  <Warning>Treat these URLs as a opaque strings. Do not try to parse or construct it.</Warning>

  <Expandable title="links" defaultOpen={true}>
    <ResponseField name="next" type="string">
      A pre-built absolute path URI for fetching the next page of results.

      If the value is `null`, this is the last page of results.
    </ResponseField>

    <ResponseField name="previous" type="string">
      A pre-built absolute path URI for fetching the previous page of results.

      If the value is `null`, this is the first page of results.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="data" type="Array of objects">
  An array of objects, sorted in reverse chronological order by creation date.
</ResponseField>

### Example

```json theme={null}
{
  "links": {
    "next": "https://api.signatureapi.com/v1/envelopes/?cursor=seq_0thJdKRhN4&limit=20",
    "previous": "https://api.signatureapi.com/v1/envelopes/?cursor=seq_7yNl3c0t&limit=20"
  },
  "data": [
  {...},
  {...},
  ...
  ]
}
```
