Contents
On this page

List Redirects - Plugixa Permalink Manager

GET /plugixa-permalink-manager/v1/redirects

List every redirect on the site, newest first: old addresses of items, external items and manual redirects.

Needs Plugixa Permalink Manager Pro and the plugixa_permalink_manager_view capability.

Request

GET https://your-site.example/wp-json/plugixa-permalink-manager/v1/redirects?group=manual

Query parameters

Name Type Default Description
group string old (auto and alias), external or manual. Empty lists every kind
search string Matches the source address or the stored target
page integer 1 Page to return, from 1
per_page integer 25 Rows per page, 1 to 100

See lists and pagination. There is no sort parameter.

Responses

200 OK. data is one page of redirects.

{
  "success": true,
  "data": [
    {
      "id": 112,
      "kind": "manual",
      "source_uri": "summer-sale.html",
      "target": {
        "url": "https://your-site.example/shop/sale",
        "title": null,
        "edit_url": null
      },
      "status_code": 301,
      "is_enabled": true,
      "note": "Old campaign page",
      "created_at": "2026-11-12 09:30:00"
    }
  ],
  "meta": {
    "total": 7,
    "pages": 1
  }
}
Field Type Meaning
data[] object One redirect, in the shape of Create Redirect
meta.total integer Redirects matching the filters
meta.pages integer Number of pages

Errors

Status Code When
400 rest_invalid_param group is not one of its values, or per_page is above 100.

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-permalink-manager/v1/redirects?group=manual" \
  -u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-permalink-manager/v1/redirects?group=manual');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => 'admin:' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const auth = 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`);
const response = await fetch('https://your-site.example/wp-json/plugixa-permalink-manager/v1/redirects?group=manual', {
  headers: { 'Authorization': auth },
});
const { data, meta } = await response.json();

Quick Links

Share