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

# Paginação e filtros

> Como percorrer listas grandes.

A listagem de **tickets** é paginada pelos parâmetros `page` (a partir de 1) e `limit` (padrão 50, máximo 100):

```bash theme={null}
curl "https://wisedesk-api.wiseapp360.com/api/v1/tickets?page=2&limit=100&status=open" \
  -H "X-API-Key: $WISEDESK_API_KEY"
```

```json theme={null}
{
  "data": [ ... ],
  "total": 342,
  "page": 2,
  "limit": 100,
  "totalPages": 4
}
```

### Percorrendo todas as páginas

```python theme={null}
import os, requests

BASE = "https://wisedesk-api.wiseapp360.com/api/v1"
HEADERS = {"X-API-Key": os.environ["WISEDESK_API_KEY"]}

def all_tickets(**filters):
    page = 1
    while True:
        res = requests.get(f"{BASE}/tickets", headers=HEADERS, params={**filters, "page": page, "limit": 100})
        res.raise_for_status()
        body = res.json()
        yield from body["data"]
        if page >= body["totalPages"]:
            break
        page += 1

for ticket in all_tickets(status="open"):
    print(ticket["ticketcode"], ticket["title"])
```

## Demais listas

As outras listas (clientes, departamentos, KB, projetos, sprints, tasks…) retornam um **array** completo, já filtrado pelos parâmetros de busca de cada endpoint (`search`, `projectId`, `sprintId`, `status`…). A listagem de tasks tem um teto de segurança por chamada — use filtros (`sprintId`, `status`, `assigneeId`) para recortes menores.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.