AAM REST API

AAM adds management routes under /wp-json/aam/v2/. Use the REST base URL configured by your WordPress installation. Core registers the main routes; Complete Package adds the rows marked Premium in the endpoint reference.

Start here

  1. Authenticate as a user allowed to manage the feature.
  2. Choose a route in the endpoint reference.
  3. Supply an access level when the route reads or changes access rules. access_level=role&role_id=editor selects the Editor role; an ID or slug in the path selects the target.
  4. Check the HTTP status and error body.
GET /wp-json/aam/v2/urls?access_level=visitor
Authorization: Basic <base64 username:application-password>

This reads visitor URL rules. The authenticated caller still needs permission to manage URL access; access_level=visitor selects the rules, not the identity making the request.

WordPress registers AAM update routes for POST, PUT, and PATCH. The reference shows PATCH for clarity. Collection POST routes create or set values; DELETE routes remove a rule or reset a collection.