WordPress
API actions for the WordPress integration.
WordPress
Connect to your WordPress site using an application password to manage posts, categories, tags, and comments.
Create a WordPress category
Add a new category to the WordPress site.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the category |
slug | string | No | URL-friendly slug for the category |
description | string | No | Optional category description |
Response
{
"category": {},
"status": "mock_value"
}Create a WordPress comment
Add a comment to a specific WordPress post.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
post_id | number | Yes | Identifier of the post to comment on |
content | string | Yes | Body of the comment |
author_name | string | No | Display name of the commenter |
Response
{
"comment": {},
"status": "mock_value"
}Create a WordPress post
Publish a new post with the provided title and content.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Title of the post |
content | string | Yes | Content body for the post |
status | string | No | Publish state such as draft or publish |
Response
{
"post": {},
"status": "mock_value"
}Delete a WordPress post
Remove a post from WordPress using a force delete.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
post_id | number | Yes | Identifier of the post |
force | boolean | No | Whether to bypass the trash |
Response
{
"result": {},
"status": "mock_value"
}List WordPress categories
Retrieve categories available in WordPress.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
per_page | number | No | Number of categories to fetch |
search | string | No | Search query for category names |
Response
{
"categories": {},
"count": {},
"status": "mock_value"
}List WordPress posts
Retrieve a paginated list of posts from a WordPress site.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
status | string | No | Filter posts by status such as publish or draft |
search | string | No | Search query to filter posts |
per_page | number | No | Number of posts to return (max 100) |
Response
{
"count": {},
"posts": {},
"status": "mock_value"
}List WordPress tags
Retrieve tags defined within WordPress.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
per_page | number | No | Number of tags to fetch |
search | string | No | Search query for tag names |
Response
{
"count": {},
"status": "mock_value",
"tags": {}
}Update post status
Change the status of a WordPress post.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
post_id | number | Yes | Identifier of the post |
status | string | Yes | New status value |
Response
{
"post": {},
"status": "mock_value"
}