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 | The short name used in the category's web address, for example news. |
description | string | No | A short description of the category. |
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 | The text of the comment. |
author_name | string | No | The name to show as the comment's author. |
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 | The main text of the post. |
status | string | No | Set the post status, such as draft or publish. |
Response
{
"post": {},
"status": "mock_value"
}Delete a WordPress post
Delete a post from your WordPress site.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
post_id | number | Yes | The ID of the post. |
force | boolean | No | Set to true to permanently delete the post instead of moving it to the trash. |
Response
{
"result": {},
"status": "mock_value"
}List WordPress categories
List categories from your WordPress site.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
per_page | number | No | Number of categories to return. |
search | string | No | Words to search for in category names. |
Response
{
"categories": {},
"count": {},
"status": "mock_value"
}List WordPress posts
List posts from your WordPress site.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
status | string | No | Filter posts by status such as publish or draft |
search | string | No | Words to search for in posts. |
per_page | number | No | Number of posts to return (max 100) |
Response
{
"count": {},
"posts": {},
"status": "mock_value"
}List WordPress tags
List tags from your WordPress site.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
per_page | number | No | Number of tags to return. |
search | string | No | Words to search for in 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 | The ID of the post. |
status | string | Yes | The new status, such as draft or publish. |
Response
{
"post": {},
"status": "mock_value"
}