# List redirects

**Publié le** : 2026-05-08
**Catégorie** : SEO & Analytics

## `GET /redirects`

**List redirects**

Returns all configured redirects with hit counts.

Required permissions: `redirects.view`

### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Unauthorized — invalid or missing API token |
| `403` | Forbidden — insufficient permissions |


### Examples

```bash
curl https://api.lynkow.com/v1/redirects \
  -H "Authorization: Bearer $API_TOKEN"
```

### Response Example

```json
{
  "data": [
    {
      "id": 1,
      "sourcePath": "/old-blog",
      "targetUrl": "/blog",
      "statusCode": 301,
      "isRegex": false,
      "isActive": true,
      "preserveQueryString": true,
      "hitCount": 237,
      "lastHitAt": "2025-04-05T18:22:00.000Z",
      "createdAt": "2025-02-01T10:00:00.000Z"
    },
    {
      "id": 2,
      "sourcePath": "/products/(.*)",
      "targetUrl": "/shop/$1",
      "statusCode": 301,
      "isRegex": true,
      "isActive": true,
      "preserveQueryString": false,
      "hitCount": 89,
      "lastHitAt": "2025-04-06T09:10:00.000Z",
      "createdAt": "2025-03-15T14:00:00.000Z"
    }
  ],
  "meta": {
    "total": 24,
    "perPage": 15,
    "currentPage": 1,
    "lastPage": 2
  }
}
```

---