How to Use ADBC Abilities with WordPress Services and REST Requests

Connect an abilities-aware WordPress service to ADBC, make a read-only request, and learn how a specific cleanup is approved. You can also use the same interface from a custom REST client.

1. Prepare your site

  • Install ADBC 4.3.0 or later on WordPress 6.9+, with PHP 8.2+ and OpenSSL.
  • Use an administrator account, or a super administrator on Multisite.
  • Use HTTPS for remote requests and keep a database backup before maintenance.
  1. Open DB Cleaner → Settings → Developer integrations.
  2. Turn on Expose plugin abilities. It saves automatically.
  3. In Users → Profile → Application Passwords, create a dedicated password for your service. Copy it when WordPress displays it and store it securely. Use this generated password, not your WordPress login password.
Developer integrations settings showing the Expose plugin abilities switch
Enable Expose plugin abilities under Developer integrations.

2. Connect your service

In an abilities-aware service such as WPVibe, use its normal WordPress connection process. Supply or authorize a dedicated administrator Application Password over HTTPS. Ask it to discover registered abilities and find the adbc/ namespace. The service may show its own connection or operation approval in addition to ADBC’s confirmation.

3. Start with a read-only request

For an AI service, try:

Use ADBC to read autoload health and summarize it. Do not change anything.

For a REST client, the equivalent request is:

GET https://example.com/wp-json/wp-abilities/v1/abilities/adbc/get-autoload-health/run

Authenticate with the administrator username and Application Password using HTTP Basic authentication. In a local terminal, the following curl command prompts for the Application Password instead of placing it in the command:

curl --user "admin" "https://example.com/wp-json/wp-abilities/v1/abilities/adbc/get-autoload-health/run"

Replace example.com and admin with your own site and username. The response includes autoload size, health and the warning threshold. Use the actual REST base for a subdirectory installation or plain-permalink configuration.

4. Inspect schemas before adding filters

Discover abilities at GET /wp-json/wp-abilities/v1/abilities, then inspect the chosen ability’s input schema. Read inputs go in the query string. For example:

GET /wp-json/wp-abilities/v1/abilities/adbc/get-options-list/run?input[search]=my_plugin&input[searchIn]=name

Use your HTTP client’s query-parameter editor to URL-encode the values. In Pro/Premium, a SQL read can use input[sql]=SELECT 1 AS result and input[row_limit]=1. SQL in GET URLs can appear in server or proxy logs; avoid sensitive literals.

To inspect a SELECT’s execution plan in Pro/Premium, use GET /wp-json/wp-abilities/v1/abilities/adbc/explain-query/run with input[sql]=SELECT 1 AS result. Supply the SELECT itself; ADBC adds ordinary EXPLAIN and returns the plan without modifying data.

5. Understand the service’s access

Your administrator Application Password authorizes read and write abilities available in your edition. Use a dedicated password only with a service you trust: responses can contain sensitive database values.

Manage and revoke this password under Users → Profile → Application Passwords. Deleting it blocks further requests and future background units.

Authentication does not approve a destructive action. ADBC still requires the separate preview and confirmation described below.

6. Preview and approve a cleanup

This example can permanently delete expired transients if you confirm it. Start on staging and make a database backup. The first request below only creates a preview.

Ask your service:

Use ADBC to preview purging expired transients. Show the current count and size, explain the risk, ask for my approval, and stop before execution.

A custom REST client sends the same request as:

POST /wp-json/wp-abilities/v1/abilities/adbc/purge-items/run
Content-Type: application/json

{"input":{"itemsType":"expired_transients"}}

The response includes confirmation_request_id, ask_user, impact details and an expiry. No cleanup has run yet. Show the exact targets, warnings, available counts and size. Some counts are estimates or unavailable; never turn them into a guaranteed disk-space saving.

Only after a new explicit approval of this exact preview may the integration send:

POST /wp-json/wp-abilities/v1/abilities/adbc/confirm-destructive-action/run
Content-Type: application/json

{"input":{"confirmation_request_id":"ID_FROM_THE_PREVIEW","approved_in_chat":true}}

Use the same administrator and Application Password within five minutes. A preview is single use. For a category purge, eligible contents may change before execution. If it expires or access changes, obtain and approve a fresh one. The integration must not set the approval flag before asking: ADBC cannot independently verify who wrote a chat reply.

7. Follow background progress

A cleanup can return a background job instead of final counts. Poll adbc/get-job using {"id":"JOB_ID"} until it reaches a terminal status. Use adbc/cancel-job only to stop future work; completed changes remain. Review maintenance outcomes under Info & logs → Database changes.

Troubleshooting

  • Invalid nonce: check that the request uses the documented /wp-abilities/v1/abilities/adbc/…/run route and Application Password authentication.
  • Authentication or permission denied: check that the Application Password still exists, its user is an administrator (super administrator on Multisite), and abilities are enabled.
  • Upgrade required: Free lists paid tools but returns an upgrade invitation without results or an action. All four SQL tools require Pro/Premium.
  • Revoked Application Password: authorize the service with a valid dedicated WordPress Application Password. Old previews cannot be confirmed with a different password; request and approve a fresh preview.
  • No ADBC abilities: check the switch, minimum versions, REST accessibility, administrator credentials and the service’s abilities support.

Related guides

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.