Back to tools

AI Agent Tool

WordPress API logo

WordPress API

Built-in WordPress REST API for headless CMS, content delivery, and site automation via JSON/HTTP.

Content ManagementCommunity

wordpress.org

•

One-click Login

About WordPress API

The WordPress REST API is a built-in interface (available on every WordPress site since version 4.7) that exposes site content such as posts, pages, users, media, categories, and custom post types as JSON over standard HTTP. It enables headless WordPress architectures, mobile apps, and third-party integrations. Authentication uses Application Passwords (built in since WordPress 5.6). It is free and included in every WordPress installation.

AI Agent Use Cases

- JSON endpoints for posts, pages, users, media, taxonomies, and custom post types

- Application Passwords authentication for secure programmatic access

- Supports GET, POST, PUT, PATCH, and DELETE operations

- Extensible via custom endpoints using the register_rest_route() function

- Powers Gutenberg block editor and official WordPress mobile apps

- Used by AI agents and MCP servers for content automation

Available Actions

These are the specific actions that AI agents can perform with this tool

Inputs

date

The date the post was published, in the site's timezone.

date_gmt

The date the post was published, as GMT.

slug

An alphanumeric identifier for the post unique to its type.

status

A named status for the post.

password

A password to protect access to the content and excerpt.

title

The title for the post.

content

The content for the post.

author

The ID for the author of the post.

excerpt

The excerpt for the post.

featured_media

The ID of the featured media for the post.

comment_status

Whether or not comments are open on the post.

ping_status

Whether or not the post can be pinged.

format

The format for the post.

meta

Meta fields.

sticky

Whether or not the post should be treated as sticky.

template

The theme file to use to display the post.

categories

The terms assigned to the post in the category taxonomy.

tags

The terms assigned to the post in the post_tag taxonomy.

Inputs

context

Scope under which the request is made; determines fields present in response

page

Current page of the collection of users

per_page

Maximum number of items to be returned in result set

search

Search term to filter users by

Inputs

context

Scope under which the request is made; determines fields returned.

page

Current page of the collection.

per_page

Maximum number of items to be returned in result set.

Inputs

id

Unique identifier for the post.

context

Scope under which the request is made; determines fields present in response.

Inputs

id

Unique identifier for the comment.

context

Scope under which the request is made; determines fields present in response.

password

The password for the parent post of the comment (if the post is password protected).