List 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

ParameterTypeDefaultDescription
_startinteger0Pagination offset.
_endinteger10End index (exclusive). Number of items returned equals _end - _start.

Headers

HeaderValue
AuthorizationBearer <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:

FieldTypeDescription
idintegerUnique redirect ID.
sourcestringSource path (starts with /).
targetstringTarget path (starts with /).
codeintegerHTTP redirect code (e.g. 301, 302).
priorityintegerPriority when multiple redirects match the same source.

Example Response

[
  {
    "id": 1,
    "source": "/old-page",
    "target": "/new-page",
    "code": 301,
    "priority": 0
  }
]
Headers
string
required

Makaira Instance ID

Response
200

OK

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!