Contents
On this page

Address Redirects - Plugixa Permalink Manager

GET /plugixa-permalink-manager/v1/uris/{kind}/{id}/redirects

List the redirects tied to an item: its old addresses, which always lead to its current address.

Needs the plugixa_permalink_manager_view capability. This route is in the free build; managing redirects is Pro.

Note. An id that does not exist answers 200 with an empty list, not 404.

Request

GET https://your-site.example/wp-json/plugixa-permalink-manager/v1/uris/post/36/redirects

Path parameters

Name Type Description
kind string post or term
id integer The post or term id

Responses

200 OK. data is the redirects, newest first.

{
  "success": true,
  "data": [
    {
      "id": 87,
      "kind": "auto",
      "source_uri": "product/skyline-2",
      "target_url": null,
      "status_code": 301,
      "created_at": "2026-11-12 09:30:00"
    }
  ]
}
Field Type Meaning
data[].id integer The redirect id
data[].kind string auto (kept when the address changed), alias (added by hand) or external
data[].source_uri string The old address
data[].target_url string|null null for auto and alias, which lead to the item’s current address. The fixed URL for external
data[].status_code integer HTTP status of the redirect
data[].created_at string UTC datetime

Errors

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-permalink-manager/v1/uris/post/36/redirects" \
  -u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-permalink-manager/v1/uris/post/36/redirects');
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/uris/post/36/redirects', {
  headers: { 'Authorization': auth },
});
const { data } = await response.json();

Quick Links

Share