> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Test redirect matching

**Publié le** : 2026-07-04
**Catégorie** : Core CMS

## `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": "c379e8c6-d656-5d56-852e-48e18b6621e7",
    "sourcePath": "/old-page",
    "targetUrl": "/new-page",
    "statusCode": 301,
    "isRegex": false,
    "isActive": true
  }
}
```

---