Listar Links
GET /api/v1/links
Section titled “GET /api/v1/links”Retorna una lista paginada de tus short links.
Permiso requerido: shortlinks:read
Query Parameters
Section titled “Query Parameters”| Parámetro | Tipo | Default | Descripción |
|---|---|---|---|
page | integer | 1 | Número de página |
limit | integer | 20 | Items por página (máx: 100) |
search | string | — | Buscar por código o URL |
Response 200 OK
Section titled “Response 200 OK”{ "data": [ { "id": "64a1b2c3d4e5f6...", "code": "a1B2", "short_url": "https://go.linkea.us/a1B2", "target_url": "https://ejemplo.com/mi-pagina", "title": "Mi link", "is_active": true, "click_count": 142, "created_at": "2025-01-15T10:30:00Z" } ], "total": 45, "page": 1, "pages": 3}Ejemplo
Section titled “Ejemplo”curl "https://api.linkea.us/api/v1/links?page=1&limit=10" \ -H "X-Api-Key: lk_tu_api_key"