# Get redirect click logs

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

## `GET /redirects/:id/logs`

**Get redirect click logs**

Returns the hit log for a redirect (timestamp, referrer, user agent).

Required permissions: `redirects.view`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes | Unique identifier |


### Responses

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


### Examples

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

### Response Example

```json
{
  "data": [
    {
      "id": 1,
      "redirectId": 1,
      "referrer": "https://google.com/search?q=example",
      "userAgent": "Mozilla/5.0",
      "ipAddress": "203.0.113.42",
      "createdAt": "2025-04-05T18:22:00.000Z"
    },
    {
      "id": 2,
      "redirectId": 1,
      "referrer": null,
      "userAgent": "Mozilla/5.0",
      "ipAddress": "198.51.100.17",
      "createdAt": "2025-04-05T14:10:00.000Z"
    }
  ],
  "meta": {
    "total": 237,
    "perPage": 15,
    "currentPage": 1,
    "lastPage": 16
  }
}
```

---