---
title: "Auto-post to WordPress via REST API"
url: "https://blogautopost.com/integrations/wordpress.md"
canonical_url: "https://blogautopost.com/integrations/wordpress"
last_updated: "2026-10-19"
type: "guide"
summary: "How BlogAutoPost publishes to WordPress: the REST route, application password sign-in, the fields it sends, the retry check and the errors you may see."
related: ["https://blogautopost.com/docs/connect-wordpress.md", "https://blogautopost.com/product/publishing.md", "https://blogautopost.com/docs/errors.md", "https://blogautopost.com/integrations/shopify.md", "https://blogautopost.com/integrations/webflow.md"]
---

# Auto-post to WordPress via REST API

> **For AI agents:** the complete index of BlogAutoPost pages is [llms.txt](https://blogautopost.com/llms.txt). Every page is also served as markdown at its URL plus .md.

How BlogAutoPost publishes to WordPress: the REST route, application password sign-in, the fields it sends, the retry check and the errors you may see.

## The facts at a glance

| Item | What the connection uses |
| --- | --- |
| Route | `POST /wp/v2/posts` under `/wp-json/`. Sites without pretty permalinks are reached through `?rest_route=` instead. |
| Credential | The account username plus an application password, sent as HTTP Basic over https. WordPress introduced application passwords in version 5.6. |
| Password format | 24 characters. WordPress accepts them with or without the display spaces. |
| When it is offered | By default on sites served over SSL. An empty `authentication` key in the REST root means they are off. |
| Capability our test needs | `publish_posts` and `upload_files`, which means the Author role or higher. |
| Status sent | `publish`, and only after you approve the post inside BlogAutoPost. |

## What we publish

| Your article | WordPress field | Notes |
| --- | --- | --- |
| Title | `title` | As approved. |
| Body | `content` | HTML. A short credit line is added when the cover image needs one. |
| Slug | `slug` | The address segment you approved. |
| Meta description | `excerpt` | Core WordPress has no meta description field. |
| Tags | `tags` | By name. |
| Cover image | `featured_media` | Uploaded to the media library first, with its alt text set. |

The meta title is not sent: core WordPress has no field for it, and SEO plugins keep theirs in post meta that we cannot assume the REST API exposes.

## Approval and status

WordPress accepts several post statuses, among them `publish`, `draft`, `future` and `private`. BlogAutoPost keeps unapproved work on its own side: only an approved article is sent, with status `publish`. With manual approval, the default, that happens when you approve; with auto-publish on, the scheduler sends posts up to your daily cap. See [approvals and scheduling](https://blogautopost.com/docs/approvals-and-scheduling.md).

## What happens before a post goes out

1. The cover image is uploaded and its alt text saved. If that fails, nothing is posted.
2. Tags are matched by name and created only when missing.
3. The post is created in one call.
4. On any retry, and when the scheduler recovers an interrupted publish, BlogAutoPost first asks WordPress for posts with that slug in any status. If one exists it is recorded as the published post, so a repeat never creates a second copy.

## Failure messages you may see

| Code | When it appears | What to do |
| --- | --- | --- |
| `auth_failed` | WordPress refused the username or application password. | Use the username, not the email, and a fresh application password. |
| `application_passwords_disabled` | Application passwords are off for the site or user. | Turn them on, then create a new one. |
| `forbidden` | The user may not do the step, such as creating a tag. | Use an Author account or higher; new tags need the Editor role. |
| `not_found` | WordPress answered 404 for the step. | Check the site address and that the REST API is reachable. |
| `invalid_request` | WordPress rejected the request and named a reason. | Read the reason in the message and fix it on the site. |

All codes are on the [errors page](https://blogautopost.com/docs/errors.md); the full flow is under [publishing](https://blogautopost.com/product/publishing.md).

## What the connection test checks

- The REST root answers at `/wp-json/`, or at `?rest_route=/` as a fallback.
- Application passwords are on for the site.
- The signed-in user can publish posts and upload files.
- The test creates and changes nothing on your site.

Setup: [WordPress connect guide](https://blogautopost.com/docs/connect-wordpress.md). Other platforms: [Shopify](https://blogautopost.com/integrations/shopify.md), [Webflow](https://blogautopost.com/integrations/webflow.md).

## Frequently asked questions

### Do I install a plugin on my WordPress site?

No. BlogAutoPost uses the REST API that ships with WordPress. Some security plugins close that API or switch application passwords off, and the connection test names the problem.

### Will my SEO plugin title and description be filled in?

The meta description is sent as the excerpt, which many themes use as a fallback. The meta title is not written anywhere. Check how your SEO plugin falls back before relying on either.

### Why must the site address start with https?

WordPress offers application passwords by default on sites served over SSL, and the password travels with every call. BlogAutoPost refuses http and never follows a redirect with your password attached; if the address redirects, the error shows the one to use.

### Which WordPress role does the account need?

Author or higher, so it can publish posts and upload files. Contributors cannot publish. Creating a tag that does not exist yet needs the Editor role.

### What if the cover image cannot be uploaded?

Nothing is posted. The message says so, and the article stays approved so you can fix the cause and publish again.

## Sources

- [WordPress REST API Handbook: Posts reference](https://developer.wordpress.org/rest-api/reference/posts/), read 2026-10-19
- [Make WordPress Core: Application Passwords integration guide](https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/), read 2026-10-19

## Related

- [Connect WordPress](https://blogautopost.com/docs/connect-wordpress.md)
- [Scheduled publishing](https://blogautopost.com/product/publishing.md)
- [Errors and failure codes](https://blogautopost.com/docs/errors.md)
- [Auto-post to Shopify blogs via GraphQL](https://blogautopost.com/integrations/shopify.md)
- [Auto-post to Webflow CMS via Data API](https://blogautopost.com/integrations/webflow.md)
