get
https://{yourinstance}.makaira.io/redirects
Public endpoint to retrieve all created redirects
Returns a paginated list of all redirect rules configured for the current instance.
Requires authentication.
Request
GET /redirects
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
_start | integer | 0 | Pagination offset. |
_end | integer | 10 | End index (exclusive). Number of items returned equals _end - _start. |
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Response
Returns a JSON array of redirect objects. The total count is available in the X-Total-Count response header.
Response Body
Each object contains:
| Field | Type | Description |
|---|---|---|
id | integer | Unique redirect ID. |
source | string | Source path (starts with /). |
target | string | Target path (starts with /). |
code | integer | HTTP redirect code (e.g. 301, 302). |
priority | integer | Priority when multiple redirects match the same source. |
Example Response
[
{
"id": 1,
"source": "/old-page",
"target": "/new-page",
"code": 301,
"priority": 0
}
] 200OK

