Skip to main content
Use WordPress through Corsair: one client, typed API calls. Each account stores three things: the site’s site_url (the WordPress address, https://example.com or https://example.com/blog, with or without /wp-json), the username of the user the password belongs to, and an application password as the key. Create one at Users → Profile → Application Passwords (WordPress 5.6+; the site must be served over HTTPS unless it runs with WP_ENVIRONMENT_TYPE set to local). Calls are sent as HTTP Basic auth, so what works depends on that user’s role: an Administrator can manage plugins, users and settings, an Author only their own posts. The site needs pretty permalinks (any setting other than Plain) so /wp-json/ routes resolve. SDK users can pass siteUrl and username in the plugin options; with a stored password the site must match the stored one (the password is never sent to another host), else pass key too.
  • Lists page with page and per_page (WordPress allows up to 100). Paged lists return { items, next_page }: next_page is set while a page comes back full; step page until it is null.
  • Content fields such as title, content and excerpt take a plain string when writing and come back as { rendered } (plus raw with context: "edit").
  • Media. media.create uploads a file (a public URL, or base64 with a file name) as the request body, with the other fields in the query string, or sideloads an external image from url.
  • Custom post types and plugin routes. Routes this plugin doesn’t name, such as a book post type (wp/v2/book) or another plugin’s namespace (yoast/v1, acf/v3), go through rest.get (reads) and rest.send (writes, marked destructive). site.index lists every route the site serves.
  • Risk. Every delete is destructive (posts go to the trash unless force: true; users, terms and comments need force), as are installing, activating and deactivating plugins, creating application passwords, batch requests and running abilities.
  • WooCommerce stores use the separate woocommerce plugin.
What you get:
  • 209 typed API operations

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

List the latest posts
Create a draft post
See the full list on the API page.

What’s next

API reference

Every wordpress.api.* operation with input and output types.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.