Admin toolbar
Overview
Discover toolbar nodes and manage their visibility rules. Routes use /wp-json/aam/v2 on a standard WordPress installation.
Endpoints
| Method | Route | Input | Purpose |
|---|---|---|---|
| GET | /admin-toolbar |
— | Get items. |
| PATCH (Premium) | /admin-toolbar |
effect |
Set access mode. |
| DELETE | /admin-toolbar |
— | Reset permissions. |
| GET | /admin-toolbar/{slug} |
slug |
Get item. |
| PATCH | /admin-toolbar/{slug} |
slug, effect |
Update item permission. |
| DELETE | /admin-toolbar/{slug} |
slug |
Delete item permission. |
PATCH rows also accept POST and PUT because WordPress registers them as editable routes. The Input column lists route-specific parameters. A path parameter in {braces} is required. WordPress validates body and query parameters against the registered route schema. Premium rows require the Complete Package add-on.
Parameter guide
The route table shows which operation uses each parameter. Path parameters are required; other requirements depend on the operation.
| Parameter | Type | Meaning |
|---|---|---|
effect |
string |
Either menu is restricted or not. |
slug |
string |
Toolbar item unique ID. |
Access level and authorization
Most routes accept access_level=role&role_id=editor, access_level=user&user_id=42, access_level=visitor, or access_level=default. This selects whose rules you read or change. A path ID or body value selects the target.
Required permission: aam_manager and aam_manage_admin_toolbar. See Authentication and Error handling.
The slug path parameter is the toolbar node ID. Fetch the collection first to discover IDs.
Example
GET /wp-json/aam/v2/admin-toolbar?access_level=role&role_id=editor
Authorization: Basic <base64 username:application-password>
This lists toolbar nodes and their access decisions for Editors.