Contents
On this page

Plugixa Permalink Manager REST API - Plugixa Permalink Manager

The integration surface for Plugixa Permalink Manager: the custom addresses of posts and terms you can read, set and check, the address patterns of each content type, the bulk tools and the jobs that run them, redirects PRO, imports from other plugins, settings and integration switches. Enough to sync addresses from another system, fix them in bulk from a script, or check what a URL resolves to.

Everything the admin screens do goes through this API, under the namespace plugixa-permalink-manager/v1. Every permission the screens enforce is enforced at the endpoint, not in the page. Nothing is ever changed by a GET request.

Base URL

https://your-site.example/wp-json/plugixa-permalink-manager/v1

On a site with plain permalinks, pass the route as a parameter instead:

https://your-site.example/?rest_route=/plugixa-permalink-manager/v1/uris

Authentication

The plugin has no API keys of its own. Every route needs a signed-in WordPress user with the right capability; there are no public routes.

From a script or another system, use a WordPress Application Password, created under Users -> Profile -> Application Passwords, sent as HTTP Basic authentication:

curl -s "https://your-site.example/wp-json/plugixa-permalink-manager/v1/uris/types" \
  -u "admin:$WP_APP_PASSWORD"
Caller How it signs in
A script or another system A WordPress Application Password, over HTTPS
Code running inside WordPress, or the admin app The logged-in cookie plus a X-WP-Nonce header made with wp_create_nonce( 'wp_rest' )

The request runs as that user, with that user’s capabilities. Use a dedicated user that holds only the capabilities your integration needs.

Permissions

Six WordPress capabilities decide what a user may do. Administrators (anyone who can manage options) hold all of them. Any role editor can grant them to other roles or users: see Roles and permissions.

Capability Allows
plugixa_permalink_manager_view Every read: addresses, content types, history, patterns, the pattern preview, redirects, settings, integrations and URL resolution
plugixa_permalink_manager_edit Changing addresses, and checking them with Check Addresses
plugixa_permalink_manager_redirects Adding, changing and deleting redirects PRO
plugixa_permalink_manager_tools Starting the bulk tools, and reading, ticking, cancelling and undoing their jobs
plugixa_permalink_manager_import_export Listing import sources, starting an import, and driving its job
plugixa_permalink_manager_manage_settings Changing settings, patterns and integration switches

The plugin capability is not enough to change an address. Every address write also asks WordPress whether the user may edit that post or term, so an author with plugixa_permalink_manager_edit still cannot move somebody else’s page. Changing delete_data_on_uninstall also needs the WordPress permission to manage options.

Responses

Every successful response is wrapped the same way:

{
  "success": true,
  "data": { "uri": "shop/tents/skyline-2" },
  "meta": { "total": 18, "page": 1, "per_page": 50, "pages": 1 }
}

meta is only present when it has something in it. Booleans are real booleans and ids are integers. Datetimes are UTC strings in the form 2026-11-12 09:30:00. Addresses are stored and returned without a leading or trailing slash: shop/tents/skyline-2.

Lists and pagination

The two paged lists take page and per_page and put the totals in meta, not in headers (X-WP-Total is not sent).

Endpoint per_page meta
List Addresses 1 to 100, default 50 total, page, per_page, pages
List Redirects PRO 1 to 100, default 25 total, pages

page starts at 1. A per_page above 100 is refused with 400, not lowered. Each list page states its own filters and sort columns. The other lists return everything at once.

Jobs

Bulk work never runs in one long request. Starting a tool or an import creates a job and returns it with 201; the job then advances a few seconds at a time, each time you call Tick Job.

  1. Start it with "dry_run": true (the default) and tick until status is done. Its samples show what would change. Nothing has changed.
  2. Start it again with the same parameters and "dry_run": false, and tick it to the end.
  3. If you regret it, Undo Job starts a job that puts every address back.

A job keeps its place between ticks, so a script can stop and resume at any point. WP-CLI PRO runs the same jobs from the command line.

Endpoints

Resource Endpoints
Addresses List, Content types, Get, Update, Default address, History, Redirects, Check, Bulk update
Permastructures List, Preview, Update, Delete
Tools Regenerate, Health check, Find and replace PRO
Jobs Get, Tick, Cancel, Undo
Redirects PRO List, Create, Update, Delete, Bulk delete
Import Sources, Start
Settings Get, Update
Integrations List, Update
Debug Resolve URL

The admin app also calls a few routes of its own (its startup data, the dashboard figures, and the conflict banner’s checks). They follow its screens and are not documented here.

Errors

Errors use the standard WordPress shape:

{
  "code": "plugixa_permalink_manager_forbidden",
  "message": "You are not allowed to do that.",
  "data": { "status": 403 }
}

These can come back from any endpoint. Each endpoint page lists its own errors on top of them.

Status Code When
401 plugixa_permalink_manager_forbidden The request is not signed in.
403 plugixa_permalink_manager_forbidden The user is signed in but lacks the capability the route needs.
403 rest_cookie_invalid_nonce A cookie request sent a stale nonce. With no nonce at all, the request counts as signed out.
404 rest_no_route No such route or method, or a Pro route on the free build.
400 rest_invalid_param A parameter failed validation, for example per_page above 100 or order other than asc/desc.
400 rest_missing_callback_param A required parameter is missing.

There is no rate limit.

Filtering what comes back

Hook Changes
plugixa_permalink_manager_filter_output Every successful payload, with the name of the resource it belongs to. The one place to hide or add fields across the whole API
plugixa_permalink_manager_user_can Whether a user may read or change a kind of record, after the capability check. It can refuse an administrator
plugixa_permalink_manager_can_edit_object Whether the user may change the address of one post or term
plugixa_permalink_manager_rest_tools The tools POST /tools/{tool} may start
plugixa_permalink_manager_import_sources The sources Start Import knows
plugixa_permalink_manager_reserved_uris The first path segments no address may use

plugixa_permalink_manager_register_rest_routes fires when the routes are registered, with the namespace, which is where to add your own beside them. See Hooks for the full set.

Troubleshooting

Symptom Usual cause
401 from a script The Application Password is wrong or revoked, the request is not over HTTPS, or the host strips the Authorization header.
403 with a valid user The user lacks the capability, or for an address write, may not edit that post or term in WordPress.
404 on /redirects or /tools/find-replace The site runs the free build.
A tool or import changed nothing dry_run was left out: every tool previews unless you send "dry_run": false.
A job stays queued Nothing is ticking it. Call Tick Job until it stops.
An address you sent came back different It was cleaned like a typed slug. Check it first with Check Addresses.

See also

Quick Links

Share