Remote Access API
Open your docs to external tools: support plugins, Slack bots, internal dashboards, AI assistants, or any custom integration, without giving them access to WordPress itself.
What this is for#
Some examples of what people build with this:
- A support-desk plugin searches your docs for the right article while an agent is reading a ticket.
- A Slack bot answers team questions by querying your doc index.
- An AI assistant pulls full doc content to ground its answers instead of guessing.
- An internal dashboard lists all products and docs.
None of these need a WordPress login, an application password, or any access to your site’s admin, just an API key for this feature.
Generating an API key#

- Go to Settings → Integrations → Remote Access.
- Under API keys, type a label that identifies where the key is used (for example
slack-botorsupport-widget) and click Generate. - Copy the key right away. It is shown once, when it’s created; WP Super Docs stores only a hash of it. If you lose it, revoke it and generate a new one.
Every request to the endpoints below must include a valid key as the api_key query parameter. Requests without a key get a 401 error; requests with a revoked or unknown key get a 403.
Endpoints#
All three are GET requests under /wp-json/wpsd/v1/:
| Endpoint | What it returns |
|---|---|
/remote-search?q=QUERY&api_key=KEY |
Search results across your docs. Add &product=SLUG to search one product and &limit=N for up to 20 results (8 by default). |
/remote-index/manifest?api_key=KEY |
The index manifest: each product with its doc count, a checksum and when its index was last updated, to tell when something changed. |
/remote-index/product/SLUG?api_key=KEY |
The full doc index for one product. Returns 404 for an unknown product. |
For example:
curl "https://example.com/wp-json/wpsd/v1/remote-search?q=webhooks&product=forms&api_key=YOUR_KEY"
Internal-only docs and docs in a Draft version are never included, see Making Docs, Categories, or Products Internal-Only.
Index storage (Cloudflare R2 / Bunny.net)#
Instead of (or as well as) querying the endpoints live, you can have WP Super Docs push a static copy of your index to object storage every time a doc is saved, updated or deleted.
How the index is split#
- One manifest listing your products.
- One file per product with that product’s docs.
Storage credentials never leave your server, so a Slack bot or AI assistant only ever needs the API key, not your R2 or Bunny credentials.
Setting it up#
- Go to Settings → Integrations → Remote Access, to Index storage.
- Choose Cloudflare R2 or Bunny.net.
- Enter the credentials for that provider:
- Cloudflare R2: Account ID, Access Key ID, Secret Key and Bucket, plus the Public URL where the index files can be read.
- Bunny.net: Storage Zone, Storage API Key and Hostname (for example
storage.bunnycdn.comorny.storage.bunnycdn.com). - Click Save storage settings. From then on every doc save, update and delete triggers a push. Push index now pushes everything at once, with a progress bar while it runs.
CDN cache purge#
After every push, WP Super Docs can purge the updated files from your CDN cache, so readers and integrations never get stale data. This is optional: without it, pushes still work.
- Cloudflare (for an R2 bucket served through a Cloudflare zone or custom domain): CF Zone ID and a CF API Token with Cache Purge permission on the zone.
- Bunny.net: your Pull Zone URL (for example
https://myzone.b-cdn.net) and your Account API Key, found under Account → API key in the bunny.net dashboard. This is a different key from the storage zone key; don’t reuse one for the other.
Webhooks#
Register external URLs to receive a signed JSON payload whenever something changes.
Events#
| Event | Fires when |
|---|---|
doc.published |
A doc is published |
doc.updated |
A published doc is updated |
doc.deleted |
A doc is deleted |
index.resynced |
The full index is pushed again |
Each request carries the event name in the X-WPSD-Event header.
Signing#
Each webhook has its own signing secret (generated for you if you leave the field blank). The X-WPSD-Signature header holds the hex HMAC-SHA256 of the raw request body, keyed with that secret. Verify it before trusting the payload:
$body = file_get_contents( 'php://input' );
$expected = hash_hmac( 'sha256', $body, WPSD_WEBHOOK_SECRET );
if ( ! hash_equals( $expected, $_SERVER['HTTP_X_WPSD_SIGNATURE'] ?? '' ) ) {
http_response_code( 401 );
exit;
}
Testing#
Each webhook in the list has a test button that sends a ping event, signed the same way, so you can check your endpoint before any real doc changes.
Quick checklist for a new integration#
- Generate an API key under Settings → Integrations → Remote Access.
- Decide: query the live endpoints directly, or read a pushed index (R2 or Bunny) to keep load off a busy site.
- If you use pushed index storage, optionally set up CDN cache purge so consumers never see stale files.
- To react to changes as they happen instead of polling, register a webhook and verify its signature on every request.
Was this helpful?
Thanks for your feedback!
✓ Feedback received. Thank you!