---
title: "WordPress REST API Guide for Developers (2026)"
description: "WordPress API endpoints are available directly on your site at /wp-json/, with no API key to request and no per-call pricing."
url: https://www.activepieces.com/blog/wordpress-rest-api-guide-for-developers-2026
updated: 2026-12-03
---

> Every page on www.activepieces.com is available as markdown: add `.md` to the URL, or send `Accept: text/markdown`. Site index: https://www.activepieces.com/llms.txt

# WordPress REST API Guide for Developers (2026)

By Alex Kim · December 3, 2026 · 18 min read · Filed under [Automation tutorials](https://www.activepieces.com/blog/category/automation-tutorials)

**Summary**

WordPress REST API is free at /wp-json/, requires Application Passwords for writes, and has no built-in rate limits.

- Vulnerability index climbed from 1382 to 11334 Patchstack.
- Per\_page parameter capped at 100 items maximum.
- Only two authentication methods ship in WordPress core.

## WordPress REST API access and pricing

### The direct answer

WordPress ships a built-in JSON interface, the REST API, at /wp-json/ on your own site, with no API key to request and no per-call price.

Reading public content needs no credentials at all; writing does, whether you're calling it from a script or from an automation tool such as [Activepieces](https://www.activepieces.com).

That's where the real work starts. "Free" describes the endpoint, not the operational cost of authenticating, throttling and debugging it. The facts below are checked against the official WordPress developer documentation as of 2026-12-03.

> "Free" describes the endpoint, not the operational cost of authenticating, throttling and debugging it.

What follows covers where the API lives, what it costs and whether your hosting arrangement changes either answer:

- The base URL is your site address followed by /wp-json/.
- There's no API key to apply for and no developer account to register.
- WordPress doesn't meter or bill API calls; any charge comes from your host or plan.
- Self-hosted sites have the API by default, while WordPress.com depends on the plan.

![A browser address bar showing a site address followed by a short path, next to a plain open door with no key, lock or…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/585df24b-6177-4b2e-943f-5fd011c0ab02/wordpress-rest-api-guide-for-developers-2026-ill-e62272b5.webp)

### Self-hosted WordPress versus WordPress.com

On a self-hosted install the REST API is part of core, so a site you run yourself serves it without a plugin. Your host or a security plugin can still block or restrict it, which is a common source of confusing errors later.

WordPress.com is different. Sites on plans that allow plugins and custom code generally behave like self-hosted installs. Sites on lower plans use WordPress.com's own API and its OAuth flow. Check your plan before you design anything around /wp-json/.

Nothing is charged per request. The cost shows up elsewhere: server load on your host, and engineering time.

Because core has no built-in rate limit, you must plan your own throttling, and that doesn't need a developer on staff.

Describe the paced WordPress job in the built-in chat of [Activepieces](https://www.activepieces.com), and it builds and publishes the flow, the same artifact someone would otherwise assemble by hand.

It sits under the same RBAC and audit logs as every other flow, and each run leaves a trace that anyone on the team can read without specialist training. MoneyGram and Moneypenny are among the teams that run Activepieces.

## WordPress REST API endpoints and functions

**Reads are mostly open and writes never are**. The REST API exposes seven core resources under the `/wp-json/wp/v2/` namespace, most of them readable without credentials, while every write requires authentication, which means data modifications are protected from unauthenticated requests.

![A shop with its front door wide open and window display visible from the pavement, while a small back door has a heavy…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/675f2145-cef6-40b1-8ce9-42e0cb2610a5/wordpress-rest-api-guide-for-developers-2026-ill-49b4704c.webp)

That split decides how much auth work you actually take on.

### WordPress REST API core resources in wp/v2

Request the discovery document at `/wp-json/` first. Every site publishes one, listing the namespaces and routes that site has registered, and a host or plugin may have changed what's available, so the document is the only reliable record of what your particular site serves.

The `wp/v2` namespace is the core set that the REST API Handbook documents.

Read the table below as a map of where authentication becomes unavoidable, which is the column to plan your credentials around.

It shows each core resource, its route, whether anonymous visitors can read it, what a write demands, and what you would typically use it for.

| Resource | Route under `/wp-json/wp/v2/` | Public read access | Write requirement | Typical use |
|---|---|---|---|---|
| Posts | `posts` | Published posts only | Authenticated user with edit capability | Syndicating or publishing articles |
| Pages | `pages` | Published pages only | Authenticated user with edit capability | Managing static content |
| Media | `media` | Items attached to public content | Authenticated user with upload capability | Uploading images and files |
| Comments | `comments` | Approved comments | Authentication for moderation; commenting rules depend on site settings | Moderation queues, sync to support tools |
| Users | `users` | Limited public profile fields, typically authors | Authenticated user with user-management capability | Provisioning accounts, author lookups |
| Taxonomies | `taxonomies`, `categories`, `tags` | Term and taxonomy definitions | Authenticated user with term-management capability | Organizing content |
| Settings | `settings` | None | Administrator authentication | Reading and changing site configuration |

Test each route you depend on, because a credential that works for posts may still fail on settings, the only resource here with no anonymous read.

### WordPress REST API public reads versus authenticated writes

Anything visible on the public site is generally readable without a key, which makes read-only integrations cheap to start. The cost arrives with the first write. You must choose an authentication method, and the capability attached to that user caps what the call can do.

![Activepieces workflow builder showing a Send HTTP request step configured with Google Search RapidAPI credentials.](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/da977bec-9b3b-44ea-89dc-d64f009a35fe/opus-clip-integration-how-to-set-it-up-2026-guid-8ea5333c.webp)

Run an integration as an editor and `settings` refuses it, so give it a dedicated account holding only the permissions it needs.

Once your editorial workflow uses drafts, a sync that worked anonymously in testing can silently miss content. Drafts, private posts and unapproved comments return only to authenticated requests.

### Custom WordPress REST API routes from plugins

Before you assume a route behaves like a core one, check the discovery document, then the plugin's own documentation.

[Plugins](https://plugins.wpmayor.com/plugin/disable-wp-rest-api) and themes can register their own namespaces beside `wp/v2`, and many do, for forms, commerce, SEO fields and custom post types.

Those routes carry no uniform permission model. Each plugin author decides who may read and write, so the Handbook doesn't cover them.

## WordPress API authentication: four methods compared

For server-side scripts and integrations that write to your site, Application Passwords are the practical default; cookie with nonce covers logged-in browser code, and OAuth or JWT require plugins.

Roughly eightfold: that is how far the **vulnerability index climbs, from 1382 to 11334**, in the [Patchstack figures via wp-content.co](https://wp-content.co/patchstack-wordpress-security-report-2026-vulnerabilities-rises-hosting-defenses-struggles/). Site share moves only from 39.5 to 43.6.

![WordPress vulnerability disclosures against its site share](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/27a45217-79c3-4dee-85f3-63d979c6678a/wordpress-rest-api-guide-for-developers-2026-mat-3db6aca9.svg "Source: Patchstack via wp-content.co (2026)")

The attack surface is growing far faster than the install base, so a leaked credential is likelier to meet an exploit chain.

As the table shows, **only two methods ship in core**, and the cost of a leak differs sharply by method.

| Method | Audience | Setup effort | Shipped in core | Risk if leaked |
|---|---|---|---|---|
| Cookie with nonce | Logged-in browser code | Low | Yes | Limited to one session |
| Application Passwords | Scripts and integrations | Low | Yes | Full user rights until revoked |
| OAuth via plugin | Third-party apps acting for users | High | No | Scoped, expiring tokens |
| JWT via plugin | Headless and mobile clients | Medium | No | Usable until the token expires |

To create an Application Password:

1. Open your user profile and find the Application Passwords section.
2. Name the password after the integration, so you can revoke it alone.
3. Click Add New and copy the value immediately; WordPress shows it once.
4. Send it as HTTP Basic auth with your username, over HTTPS.

![A user profile screen with an Application Passwords section: a single new password string displayed in a box beside an Add…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/3c92043e-f07a-404b-9eac-239dfa1f3f7c/wordpress-rest-api-guide-for-developers-2026-ill-4390c1ba.webp)

Use a dedicated low-privilege user, since the password carries that user's full capabilities.

Inside an authenticated session, browser code sends the session cookie plus a nonce. Without the nonce, WordPress treats requests as unauthenticated. It suits admin-side scripts, not external callers.

Neither OAuth nor JWT is in core, so each adds a plugin to patch and trust. Choose OAuth when users grant access to a third-party app, and JWT for headless clients.

For sites hosted on WordPress.com, you register an app to receive a client ID and secret, then run the OAuth2 flow against it. Application Passwords aren't your path there.

## A minimal working WordPress REST API request

Run these against a site you control, so a mistake costs you one draft. A read needs no credentials, and a write needs one Application Password sent as HTTP Basic auth.

```bash
curl -i "https://example.com/wp-json/wp/v2/posts?per_page=100"

curl -i -X POST "https://example.com/wp-json/wp/v2/posts" \
 -u "username:application-password" \
 -H "Content-Type: application/json" \
 -d '{"title":"Test post","content":"Hello","status":"draft"}'
```

Keep the returned `id` for later updates: the POST returns 201 Created and the new post as JSON.

The `-i` flag matters on the read: the response headers `X-WP-Total` and `X-WP-TotalPages` give the full post count and page count. Without them you can't tell whether you fetched everything.

Past 100 posts you need a loop, because WordPress caps `per_page` at 100; a larger site needs a loop over `page` until you reach `X-WP-TotalPages`.

Look at the run trace below and you'll see the same shape as the write call:
- a POST
- an authorization header
- a body
- a completed run with each step's input and output

![A workflow canvas showing an Instance Stopped trigger connected to a Revoke Token HTTP request step, with the right panel…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/6562aaca-2f20-4c5f-929c-5a24b3c9a908/linkedin-api-access-limits-and-errors-in-2026-sc-d387a7d6.webp)

When a call like this fails, that record is where you see which step broke and with what payload.

Hosted sites can differ, because the paths above assume self-hosted WordPress, where `/wp-json/` sits on your own domain.

Whether Application Passwords work depends on whether your plan lets you run plugins and control security settings. Check this before debugging credentials, because a 401 may be policy, not a typo.

### Pricing per request and plan requirements

On a self-hosted site nothing is charged per request, so the real cost is your host's capacity.

There's no built-in rate limit, so a loop that fetches pages as fast as it can may be throttled or blocked by your host or a security plugin, and the error won't come from WordPress. Add your own pacing from the first script.

## WordPress REST API rate limiting and throttling

Whatever throttling you meet, it does not come from WordPress core, which **enforces no rate limit on the REST API**. It comes from the layers around it: your host, a CDN, a firewall, a security plugin, or WordPress.com's own platform rules.

### WordPress REST API core has no rate limit

Core documents no request ceiling, which means a script that loops without pacing won't be stopped by WordPress itself.

You never configured the first limit you hit, and you can't see it in the REST docs. It belongs to whoever sits in front of your site, and it can change when your host or a plugin updates its rules.

WordPress.com is the exception to look at separately: check its developer documentation for any limits it states for its own platform, and don't assume self-hosted behavior carries over.

### WordPress REST API host and firewall throttling limits

When throttling arrives, each source announces itself differently.

The table shows how throttling appears for each one, the status code you'll usually see, and how to confirm the source. Use it to identify who is blocking you before you change any code, because the fix differs by layer.

| Source | How throttling shows up | Typical status code | How to check |
|---|---|---|---|
| Host | Slow responses, dropped connections, or a generic error page | 429 or 503 | Read the host's error log and its resource or usage panel |
| CDN | Block or challenge page served before WordPress runs | 429 | Inspect response headers for the CDN's name, then its dashboard logs |
| WAF | Requests refused as suspicious, often on POST or odd user agents | 403 | Review the firewall's event log for the blocked rule |
| Security plugin | Lockouts or blocked IPs after repeated requests or failed logins | 403 or 429 | Check the plugin's blocked-requests or lockout log |
| WordPress.com | Platform-side refusal on its hosted API | 429 | Read WordPress.com's developer docs and the response body |

A 403 is the ambiguous one: it can mean a firewall rule or a real permission failure, so confirm in the logs before you retry. After you know the source, you can pace around it.

Retry only on 429 and 503, wait longer after each failure, add random jitter so parallel workers don't retry together, and honor a Retry-After header if one arrives.

**Don't retry a 403 blindly: repeated attempts against a firewall can extend a block rather than clear it.**

## Common WordPress REST API errors and their fixes

When a REST call fails, the error code usually tells you which layer failed: WordPress itself, a plugin, or something in front of both.

Most errors trace to one of seven causes. Because a blocked request can fail in different places, read the code and the HTTP status together before changing anything.

Use the table below to decide whether the fault is in your request, your credentials, or your hosting stack. It pairs each code with its cause, the fix, and the WordPress documentation to check.

| Error | Cause | Fix | Docs link |
|---|---|---|---|
| rest_no_route | The URL matches no registered endpoint, often because of permalinks or a wrong namespace | Resave permalinks, confirm the route path and namespace | developer.wordpress.org/rest-api |
| rest_forbidden | Credentials are missing or the user lacks the capability for that action | Authenticate, then use a user with the right role | developer.wordpress.org/rest-api/using-the-rest-api/authentication |
| rest_cannot_create | The authenticated user can't create that content type | Grant the role the capability, or use a different user | developer.wordpress.org/rest-api/reference/posts |
| rest_invalid_param | A field has the wrong type, format or value | Compare the payload against the endpoint's argument list | developer.wordpress.org/rest-api/reference/posts |
| incorrect_password | The Application Password or user password is wrong | Generate a new Application Password and paste it exactly | developer.wordpress.org/rest-api/using-the-rest-api/authentication |
| REST disabled by plugin | A security or performance plugin blocks unauthenticated or all REST access | Check the plugin's REST setting and allow your user or route | developer.wordpress.org/rest-api |
| Stripped Authorization header | The server or proxy drops the header before PHP sees it | Pass the header through in the server config | developer.wordpress.org/rest-api/using-the-rest-api/authentication |

Each row is expanded below, starting with the one that depends on your routes.

### 404 and rest_no_route

If you get rest_no_route, WordPress received the request but found no handler for that path and method. Check the namespace and version segment first, such as `/wp-json/wp/v2/posts`.

If the path is right, resave permalinks, since plain permalinks can leave the `/wp-json/` prefix unresolved.

A 404 from the web server with no JSON body points to a rewrite rule problem at the host rather than to WordPress.

### 401 and 403 on authenticated calls

rest_forbidden and rest_cannot_create both mean WordPress knew who you were, or couldn't tell, and refused the action. Distinguish a missing credential from a missing capability: the first is fixed by authenticating, the second only by changing the user's role.

incorrect_password is a credential fault, so regenerate the Application Password rather than retrying.

If a 403 comes back with an HTML body, not JSON, it usually comes from a firewall or security plugin. The rule from above still applies: stop and diagnose rather than resend.

Read the `data.params` detail instead of guessing: rest_invalid_param names the offending field in its response.

Common causes are a string where an integer is expected, an unrecognised status value, or a malformed date. Fix the single field named and resend; sending the same payload again returns the same error.

### Stripped Authorization header and HTTPS requirement

When a host running PHP through CGI or FastCGI, or a proxy, removes the Authorization header, WordPress sees an unauthenticated request and returns rest_forbidden despite correct credentials. The fix is a server rule that forwards the header, which you may need your host to apply.

A plain HTTP endpoint can make authentication fail in a way that looks like a bad password, because Application Passwords also generally require HTTPS on the site. Confirm both before regenerating credentials.

What remains is usually a host-specific rule once the table's causes are ruled out. The run trace in a platform is the quickest way to see which layer rejected the call.

## Call the WordPress API without code using Activepieces

When the job is publishing or updating posts from a form, a spreadsheet row or an AI draft, Activepieces fits: WordPress is one of its 751 integrations, and the step holds the credentials, makes the REST call and records what each step returned, on unlimited flows on every plan, including free.

![A workflow automation interface showing the execution and configuration of an HTTP request that revokes an API token using…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/d55bf56e-a650-41bf-a158-7c61b4ee1fc4/how-to-connect-a-reddit-integration-in-2026-step-535ff857.webp)

It's not the right tool for every WordPress workload, and the limits are worth stating before you commit.

### Connect with an Application Password

The WordPress integration authenticates with an Application Password, the per-user credential WordPress generates from the profile screen.

You supply your site URL, your username and that password once, and Activepieces stores them as a named connection that every step reuses, so you never paste a secret into individual requests.

![Activepieces workflow builder with the Send HTTP request step selected, showing its configuration panel with HTTP method…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/58352882-31ce-42ab-9b0f-c4a0fe866a5c/deepseek-r1-vs-v3-for-business-ai-2026-guide-scr-ae99964b.webp)

The core is MIT-licensed, and on a self-hosted instance or the enterprise cloud tier those connection secrets can be routed to your own secret manager instead.

If a request is later rejected, revoke that one password in WordPress and nothing else on the account is affected.

In the screenshot below, a flow titled "AI Blog Writer" shows a trigger, two OpenAI steps and a WordPress step selected on the canvas.

Its configuration panel has Action set to Create Post, the connection named "wordpress", the site URL, and the Title and Content fields mapped to the outputs of the earlier OpenAI steps.

![Activepieces workflow builder displaying an AI blog writing automation with OpenAI and WordPress integration steps.](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/ca000698-c716-45d3-916f-88df50a3761a/spotify-automation-ways-to-set-it-up-2026-guide-fa565726.webp)

The takeaway is that a draft pipeline is three field mappings, not an authentication layer you build yourself.

Each step's input and output stays visible after a run. When a host, plugin or security layer rejects the call, you can see which step failed and what came back.

### Prebuilt actions versus custom API call

For the common cases, such as creating a post, the prebuilt actions need no knowledge of routes or request bodies.

When you need an endpoint they don't expose, a custom API call action lets you send a request to any REST route on your site, reusing the same connection. That covers most one-off gaps without leaving the builder.

![Activepieces workflow builder with HTTP request step selected and its settings panel open showing method, URL, headers, and…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/9e36e973-de4a-435f-8912-12e666216b2d/self-host-mistral-ai-enterprise-deployment-guide-3f7fe28d.webp)

Code is still the better choice in three situations:

- Bulk migrations, where you want batching, retries and checkpoints you control.
- Custom routes with bespoke logic, which belong in a plugin you version and test.
- High volume, where WordPress has no built-in rate limit and you need to throttle requests yourself to protect your host.

For the rest, a flow is faster to build and easier to hand to a colleague.

## Frequently asked questions

Once the build-or-flow decision is made, these are the edge cases that remain. They were checked on 3 December 2026, and host or plugin changes can alter any of them on your own site.

### Keys and cost

Do I need an API key to use the WordPress API? No, WordPress has no API keys, and public reads such as published posts need no credentials.

Anything that writes or reads private data needs authentication, usually an application password over HTTPS, so you still choose and store a credential yourself.

Is the WordPress REST API free? Yes, it **ships in WordPress core at no charge**, with no metered usage or per-call billing.

Your costs are the server capacity it consumes and any paid plugins for stronger authentication. Because core has no rate limit, a runaway integration loads your host instead of hitting a quota.

### Availability and hosting

Is the WordPress REST API enabled by default? Yes, a current install serves it from the `/wp-json/` path without configuration.

Security plugins, firewalls and some hosts can block or restrict it, so a 401 or 403 on a fresh site often comes from that layer rather than from WordPress itself.

Can I use the WordPress API with WordPress.com? Yes, but access works differently from a self-hosted site. WordPress.com sites are reached through its own API gateway, authenticated with OAuth instead of application passwords.

Which features are available depends on your plan, so check it before you design around a given endpoint.

### Legacy options

Is XML-RPC still an option instead of REST? It still ships in core, but it's the older interface, and many hosts and security plugins disable it because it's a common brute-force target.

Use REST for new work and treat XML-RPC as a fallback for legacy tools that require it.

## Related reading

- [Tableau Server REST API for Developers in 2026](https://www.activepieces.com/blog/tableau-server-rest-api-for-developers-in-2026)
- [Figma API: How to Use the REST API (2026 Guide)](https://www.activepieces.com/blog/figma-api-how-to-use-the-rest-api-2026-guide)
- [Confluence API: Cloud REST v2 vs v1 (2026 Guide)](https://www.activepieces.com/blog/confluence-api-cloud-rest-v2-vs-v1-2026-guide)

## References

- [Patchstack via wp-content.co](https://wp-content.co/patchstack-wordpress-security-report-2026-vulnerabilities-rises-hosting-defenses-struggles/)
