# Test redirect matching

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

## `GET /redirects/match`

**Test redirect matching**

Tests if a given URL path matches any configured redirect. Useful
for debugging redirect rules without triggering an actual redirect.

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/match?path=/old-page" \
  -H "Authorization: Bearer $API_TOKEN"
```

### Response Example

```json
{
  "data": {
    "id": 25,
    "sourcePath": "/old-page",
    "targetUrl": "/new-page",
    "statusCode": 301,
    "isRegex": false,
    "isActive": true
  }
}
```

---