> For the complete documentation index, see [llms.txt](https://docs.planetcrust.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.planetcrust.com/human-connections/wordpress/wordpress.md).

# WordPress

<p align="center"><a class="button primary" data-icon="circle-caret-right">Try @Human</a><a class="button primary" data-icon="check">Buy @Human Subscription</a><a class="button primary" data-icon="comments">Join @Human Community</a></p>

<figure><img src="/files/gN6vhLq50JgfXfhu0lk5" alt="" width="375"><figcaption></figcaption></figure>

<h3 align="center">Put WordPress to Work with @Human Automations and @Human Agents</h3>

<p align="center">The WordPress Connection documents all Triggers, Actions and Query Operations available for creating automations via the WordPress API.</p>

{% embed url="<https://www.youtube.com/watch?v=CyuUuaBSZzA>" %}

#### What can you do with the WordPress Connection?

* Connect to the WordPress API in a few clicks
* Use the related WordPress Operations (see below) in @Human Automations or @Human Agents

### Related Operations

#### Trigger Operations

**Post Created**

Triggers on: posts/post\_created

Triggered when a new post is created in WordPress.

**Post Updated**

Triggers on: posts/post\_updated

Triggered when an existing post is updated in WordPress.

**Post Deleted**

Triggers on: posts/post\_deleted

Triggered when a post is deleted from WordPress.

**User Created**

Triggers on: users/user\_created

Triggered when a new user is created in WordPress.

**User Updated**

Triggers on: users/user\_updated

Triggered when an existing user's information is updated in WordPress.

**User Deleted**

Triggers on: users/user\_deleted

Triggered when a user is deleted from WordPress.

**Comment Created**

Triggers on: comments/comment\_created

Triggered when a new comment is posted in WordPress.

**Comment Updated**

Triggers on: comments/comment\_updated

Triggered when an existing comment is modified in WordPress.

**Comment Deleted**

Triggers on: comments/comment\_deleted

Triggered when a comment is deleted from WordPress.

#### Action Operations

[Action: Upload Media](/human-connections/wordpress/wordpress/action-upload-media.md)

[Action: Update Post](/human-connections/wordpress/wordpress/action-update-post.md)

[Action: Update User](/human-connections/wordpress/wordpress/action-update-user.md)

#### Query Operations

[Query: Find Post](/human-connections/wordpress/wordpress/query-find-post.md)

### Related Automations

Example link

### Obtaining Access Credentials <a href="#obtaining-access-credentials" id="obtaining-access-credentials"></a>

To obtain a **Personal Access Token (PAT)** for **WordPress** (system-to-system access), follow these steps:

#### **Required Values (Request from User)**

1. **WordPress Site URL** (e.g., `https://your-site.com`)
2. **Admin Username & Password** (for WordPress dashboard access)
3. **User Account with Administrator Role** (must have permission to generate tokens)

#### **Step-by-Step Guide**

1. **Log in to WordPress Admin Dashboard**
   * Navigate to: `https://[your-site-url]/wp-admin`
   * Enter admin credentials.
2. **Install & Activate the "Application Passwords" Plugin** (if not already enabled)
   * Go to **Plugins → Add New**.
   * Search for **"Application Passwords"** (official WordPress plugin).
   * Install & activate it.
3. **Generate a Personal Access Token (PAT)**
   * Go to **Users → Profile** (for your admin account).
   * Scroll to **"Application Passwords"** section.
   * Enter a **name** for the token (e.g., "API Access").
   * Click **"Add New Application Password"**.
   * **Copy the generated token immediately** (it won’t be shown again).

### Configuring Webhooks

1. **Install the "WP Webhooks" Plugin**
   * Log in to your WordPress dashboard.
   * Navigate to **Plugins → Add New**.
   * Search for **"WP Webhooks"**, click **Install Now**, and then **Activate**.
2. **Navigate to Webhook Settings**
   * Go to **Settings → WP Webhooks** in the sidebar.
3. **Access the "Send Data" Section**
   * Click on the **"Send Data"** tab to view outgoing trigger options.
4. **Select a Trigger Event**
   * Choose the event you wish to track (e.g., **"Post created"**, **"User updated"**, or **"Comment created"**).
5. **Add the Destination URL**
   * Click the **"Add Webhook URL"** button for the selected trigger.
   * Enter a **Webhook Name** (e.g., "Human Automation").
   * Paste the **Webhook URL** provided by your destination service into the URL field.
   * Click **"Add for \[Trigger Name]"** to save.
6. **Test the Integration**
   * Click the **"Actions"** (three dots) icon next to the added URL and select **"Send Demo"**.
   * Verify that the test payload was successfully received by the target service.

### Code (Apache v2.0): Service Connectivity and Metadata

```
{
  "handle": "wordpress-v2",
  "status": "active",
  "meta": {
    "short": "WordPress",
    "description": "Connect to WordPress REST API to manage posts, pages, and other content.",
    "icon": "wordpress",
    "tags": ["cms", "blog", "content-management"]
  },
  "service": {
    "baseURL": {
      "value": "https://{{site}}.wordpress.com/wp-json/wp/v2"
    },
    "protocol": "https",
    "contentType": "application/json",
    "headers": {
      "Accept": {
        "value": "application/json"
      }
    },
    "auth": {
      "method": "basic",
      "params": {
        "basic": {
          "username": {
            "value": "{{username}}"
          },
          "password": {
            "value": "{{password}}"
          }
        }
      }
    }
  }
}

```

### Code (Apache v2.0): List of External Resources and Internal Mapping

```
[
  {
    "handle": "posts",
    "meta": {
      "short": "Posts",
      "description": "Manage blog posts in WordPress"
    },
    "endpoint": {
      "value": "/wp-json/wp/v2/posts",
      "placeholders": []
    },
    "fields": [
      {
        "name": "id",
        "type": "Integer",
        "selector": [
          "id"
        ],
        "meta": {}
      },
      {
        "name": "title",
        "type": "String",
        "selector": [
          "title",
          "rendered"
        ],
        "meta": {}
      },
      {
        "name": "content",
        "type": "String",
        "selector": [
          "content",
          "rendered"
        ],
        "meta": {}
      },
      {
        "name": "status",
        "type": "String",
        "selector": [
          "status"
        ],
        "meta": {}
      },
      {
        "name": "date",
        "type": "String",
        "selector": [
          "date"
        ],
        "meta": {}
      }
    ],
    "operations": {
      "list": {
        "method": "GET",
        "path": {
          "value": "",
          "placeholders": []
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      },
      "read": {
        "method": "GET",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Post ID",
              "required": true
            }
          ]
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      },
      "create": {
        "method": "POST",
        "path": {
          "value": "",
          "placeholders": []
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "queryParams": {},
        "bodyTemplate": {
          "value": "{\"title\": \"{{title}}\", \"content\": \"{{content}}\", \"status\": \"{{status}}\"}",
          "placeholders": [
            {
              "name": "title",
              "type": "String",
              "description": "Post title",
              "required": true
            },
            {
              "name": "content",
              "type": "String",
              "description": "Post content",
              "required": true
            },
            {
              "name": "status",
              "type": "String",
              "description": "Post status",
              "required": false,
              "default": "draft"
            }
          ]
        }
      },
      "update": {
        "method": "POST",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Post ID",
              "required": true
            }
          ]
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "queryParams": {},
        "bodyTemplate": {
          "value": "{\"title\": \"{{title}}\", \"content\": \"{{content}}\", \"status\": \"{{status}}\"}",
          "placeholders": [
            {
              "name": "title",
              "type": "String",
              "description": "Post title",
              "required": false
            },
            {
              "name": "content",
              "type": "String",
              "description": "Post content",
              "required": false
            },
            {
              "name": "status",
              "type": "String",
              "description": "Post status",
              "required": false
            }
          ]
        }
      },
      "delete": {
        "method": "DELETE",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Post ID",
              "required": true
            }
          ]
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      }
    ],
    "webhooks": [
      {
        "event": "post_created",
        "path": "/webhooks/wordpress/post_created",
        "payload": [
          { "name": "id", "type": "Integer", "selector": ["post", "ID"], "meta": { "description": "The unique identifier for the post." } },
          { "name": "title", "type": "String", "selector": ["post", "post_title"], "meta": { "description": "The title of the post." } },
          { "name": "content", "type": "String", "selector": ["post", "post_content"], "meta": { "description": "The content of the post." } },
          { "name": "status", "type": "String", "selector": ["post", "post_status"], "meta": { "description": "The status of the post (e.g., publish, draft)." } },
          { "name": "author_id", "type": "Integer", "selector": ["post", "post_author"], "meta": { "description": "The ID of the author of the post." } }
        ]
      },
      {
        "event": "post_updated",
        "path": "/webhooks/wordpress/post_updated",
        "payload": [
          { "name": "id", "type": "Integer", "selector": ["post", "ID"], "meta": { "description": "The unique identifier for the post." } },
          { "name": "title", "type": "String", "selector": ["post", "post_title"], "meta": { "description": "The title of the post." } },
          { "name": "content", "type": "String", "selector": ["post", "post_content"], "meta": { "description": "The content of the post." } },
          { "name": "status", "type": "String", "selector": ["post", "post_status"], "meta": { "description": "The status of the post." } }
        ]
      },
      {
        "event": "post_deleted",
        "path": "/webhooks/wordpress/post_deleted",
        "payload": [
          { "name": "id", "type": "Integer", "selector": ["post_id"], "meta": { "description": "The unique identifier of the deleted post." } }
        ]
      }
    ]
  },
  {
    "handle": "users",
    "meta": {
      "short": "Users",
      "description": "Manage users in WordPress"
    },
    "endpoint": {
      "value": "/wp-json/wp/v2/users",
      "placeholders": []
    },
    "fields": [
      {
        "name": "id",
        "type": "Integer",
        "selector": [
          "id"
        ],
        "meta": {}
      },
      {
        "name": "name",
        "type": "String",
        "selector": [
          "name"
        ],
        "meta": {}
      },
      {
        "name": "email",
        "type": "String",
        "selector": [
          "email"
        ],
        "meta": {}
      },
      {
        "name": "roles_0",
        "type": "String",
        "selector": [
          "roles",
          "0"
        ],
        "meta": {
          "description": "The primary role assigned to the user (e.g. administrator, editor, author, subscriber)."
        }
      }
    ],
    "operations": {
      "list": {
        "method": "GET",
        "path": {
          "value": "",
          "placeholders": []
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      },
      "read": {
        "method": "GET",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "User ID",
              "required": true
            }
          ]
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      },
      "create": {
        "method": "POST",
        "path": {
          "value": "",
          "placeholders": []
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "queryParams": {},
        "bodyTemplate": {
          "value": "{\"email\": \"{{email}}\", \"username\": \"{{username}}\", \"password\": \"{{password}}\", \"roles\": [\"{{role}}\"]}",
          "placeholders": [
            {
              "name": "email",
              "type": "String",
              "description": "User email",
              "required": true
            },
            {
              "name": "username",
              "type": "String",
              "description": "Username",
              "required": true
            },
            {
              "name": "password",
              "type": "String",
              "description": "User password",
              "required": true
            },
            {
              "name": "role",
              "type": "String",
              "description": "User role",
              "required": true,
              "default": "subscriber"
            }
          ]
        }
      },
      "update": {
        "method": "POST",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "User ID",
              "required": true
            }
          ]
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "queryParams": {},
        "bodyTemplate": {
          "value": "{\"email\": \"{{email}}\", \"roles\": [\"{{role}}\"]}",
          "placeholders": [
            {
              "name": "email",
              "type": "String",
              "description": "User email",
              "required": false
            },
            {
              "name": "role",
              "type": "String",
              "description": "User role",
              "required": false
            }
          ]
        }
      },
      "delete": {
        "method": "DELETE",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "User ID",
              "required": true
            }
          ]
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      }
    },
    "webhooks": [
      {
        "event": "user_created",
        "path": "/webhooks/wordpress/user_created",
        "payload": [
          { "name": "id", "type": "Integer", "selector": ["user", "ID"], "meta": { "description": "The unique identifier for the user." } },
          { "name": "username", "type": "String", "selector": ["user", "user_login"], "meta": { "description": "The username of the user." } },
          { "name": "email", "type": "String", "selector": ["user", "user_email"], "meta": { "description": "The email address of the user." } },
          { "name": "display_name", "type": "String", "selector": ["user", "display_name"], "meta": { "description": "The display name of the user." } }
        ]
      },
      {
        "event": "user_updated",
        "path": "/webhooks/wordpress/user_updated",
        "payload": [
          { "name": "id", "type": "Integer", "selector": ["user", "ID"], "meta": { "description": "The unique identifier for the user." } },
          { "name": "email", "type": "String", "selector": ["user", "user_email"], "meta": { "description": "The updated email address." } },
          { "name": "display_name", "type": "String", "selector": ["user", "display_name"], "meta": { "description": "The updated display name." } }
        ]
      },
      {
        "event": "user_deleted",
        "path": "/webhooks/wordpress/user_deleted",
        "payload": [
          { "name": "id", "type": "Integer", "selector": ["user_id"], "meta": { "description": "The unique identifier of the deleted user." } }
        ]
      }
    ]
  },
  {
    "handle": "comments",
    "meta": {
      "short": "Comments",
      "description": "Manage comments in WordPress"
    },
    "endpoint": {
      "value": "/wp-json/wp/v2/comments",
      "placeholders": []
    },
    "fields": [
      {
        "name": "id",
        "type": "Integer",
        "selector": [
          "id"
        ],
        "meta": {}
      },
      {
        "name": "post",
        "type": "Integer",
        "selector": [
          "post"
        ],
        "meta": {}
      },
      {
        "name": "content",
        "type": "String",
        "selector": [
          "content",
          "rendered"
        ],
        "meta": {}
      },
      {
        "name": "author_name",
        "type": "String",
        "selector": [
          "author_name"
        ],
        "meta": {}
      },
      {
        "name": "date",
        "type": "String",
        "selector": [
          "date"
        ],
        "meta": {}
      }
    ],
    "operations": {
      "list": {
        "method": "GET",
        "path": {
          "value": "",
          "placeholders": []
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      },
      "read": {
        "method": "GET",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Comment ID",
              "required": true
            }
          ]
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      },
      "create": {
        "method": "POST",
        "path": {
          "value": "",
          "placeholders": []
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "queryParams": {},
        "bodyTemplate": {
          "value": "{\"post\": {{post}}, \"content\": \"{{content}}\", \"author_name\": \"{{author_name}}\"}",
          "placeholders": [
            {
              "name": "post",
              "type": "Integer",
              "description": "Post ID",
              "required": true
            },
            {
              "name": "content",
              "type": "String",
              "description": "Comment content",
              "required": true
            },
            {
              "name": "author_name",
              "type": "String",
              "description": "Author name",
              "required": true
            }
          ]
        }
      },
      "update": {
        "method": "POST",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Comment ID",
              "required": true
            }
          ]
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "queryParams": {},
        "bodyTemplate": {
          "value": "{\"content\": \"{{content}}\"}",
          "placeholders": [
            {
              "name": "content",
              "type": "String",
              "description": "Comment content",
              "required": false
            }
          ]
        }
      },
      "delete": {
        "method": "DELETE",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Comment ID",
              "required": true
            }
          ]
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      }
    },
    "webhooks": [
      {
        "event": "comment_created",
        "path": "/webhooks/wordpress/comment_created",
        "payload": [
          { "name": "id", "type": "Integer", "selector": ["comment", "comment_ID"], "meta": { "description": "The unique identifier for the comment." } },
          { "name": "post_id", "type": "Integer", "selector": ["comment", "comment_post_ID"], "meta": { "description": "The ID of the post the comment is on." } },
          { "name": "author_name", "type": "String", "selector": ["comment", "comment_author"], "meta": { "description": "The name of the comment author." } },
          { "name": "content", "type": "String", "selector": ["comment", "comment_content"], "meta": { "description": "The content of the comment." } }
        ]
      },
      {
        "event": "comment_updated",
        "path": "/webhooks/wordpress/comment_updated",
        "payload": [
          { "name": "id", "type": "Integer", "selector": ["comment", "comment_ID"], "meta": { "description": "The unique identifier for the comment." } },
          { "name": "content", "type": "String", "selector": ["comment", "comment_content"], "meta": { "description": "The updated content of the comment." } },
          { "name": "status", "type": "String", "selector": ["comment", "comment_approved"], "meta": { "description": "The approval status of the comment." } }
        ]
      },
      {
        "event": "comment_deleted",
        "path": "/webhooks/wordpress/comment_deleted",
        "payload": [
          { "name": "id", "type": "Integer", "selector": ["comment_id"], "meta": { "description": "The unique identifier of the deleted comment." } }
        ]
      }
    ]
  },
  {
    "handle": "pages",
    "meta": {
      "short": "Pages",
      "description": "Manage pages in WordPress"
    },
    "endpoint": {
      "value": "/wp-json/wp/v2/pages",
      "placeholders": []
    },
    "fields": [
      {
        "name": "id",
        "type": "Integer",
        "selector": [
          "id"
        ],
        "meta": {}
      },
      {
        "name": "title",
        "type": "String",
        "selector": [
          "title",
          "rendered"
        ],
        "meta": {}
      },
      {
        "name": "content",
        "type": "String",
        "selector": [
          "content",
          "rendered"
        ],
        "meta": {}
      },
      {
        "name": "status",
        "type": "String",
        "selector": [
          "status"
        ],
        "meta": {}
      },
      {
        "name": "date",
        "type": "String",
        "selector": [
          "date"
        ],
        "meta": {}
      },
      {
        "name": "parent",
        "type": "Integer",
        "selector": [
          "parent"
        ],
        "meta": {}
      }
    ],
    "operations": {
      "list": {
        "method": "GET",
        "path": {
          "value": "",
          "placeholders": []
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      },
      "read": {
        "method": "GET",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Page ID",
              "required": true
            }
          ]
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      },
      "create": {
        "method": "POST",
        "path": {
          "value": "",
          "placeholders": []
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "queryParams": {},
        "bodyTemplate": {
          "value": "{\"title\": \"{{title}}\", \"content\": \"{{content}}\", \"status\": \"{{status}}\", \"parent\": {{parent}}}",
          "placeholders": [
            {
              "name": "title",
              "type": "String",
              "description": "Page title",
              "required": true
            },
            {
              "name": "content",
              "type": "String",
              "description": "Page content",
              "required": true
            },
            {
              "name": "status",
              "type": "String",
              "description": "Page status",
              "required": false,
              "default": "draft"
            },
            {
              "name": "parent",
              "type": "Integer",
              "description": "Parent Page ID",
              "required": false
            }
          ]
        }
      },
      "update": {
        "method": "POST",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Page ID",
              "required": true
            }
          ]
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "queryParams": {},
        "bodyTemplate": {
          "value": "{\"title\": \"{{title}}\", \"content\": \"{{content}}\", \"status\": \"{{status}}\", \"parent\": {{parent}}}",
          "placeholders": [
            {
              "name": "title",
              "type": "String",
              "description": "Page title",
              "required": false
            },
            {
              "name": "content",
              "type": "String",
              "description": "Page content",
              "required": false
            },
            {
              "name": "status",
              "type": "String",
              "description": "Page status",
              "required": false
            },
            {
              "name": "parent",
              "type": "Integer",
              "description": "Parent Page ID",
              "required": false
            }
          ]
        }
      },
      "delete": {
        "method": "DELETE",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Page ID",
              "required": true
            }
          ]
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      }
    },
    "webhooks": []
  },
  {
    "handle": "media",
    "meta": {
      "short": "Media",
      "description": "Manage media attachments in WordPress"
    },
    "endpoint": {
      "value": "/wp-json/wp/v2/media",
      "placeholders": []
    },
    "fields": [
      {
        "name": "id",
        "type": "Integer",
        "selector": [
          "id"
        ],
        "meta": {}
      },
      {
        "name": "title",
        "type": "String",
        "selector": [
          "title",
          "rendered"
        ],
        "meta": {}
      },
      {
        "name": "source_url",
        "type": "String",
        "selector": [
          "source_url"
        ],
        "meta": {}
      },
      {
        "name": "media_type",
        "type": "String",
        "selector": [
          "media_type"
        ],
        "meta": {}
      },
      {
        "name": "mime_type",
        "type": "String",
        "selector": [
          "mime_type"
        ],
        "meta": {}
      }
    ],
    "operations": {
      "list": {
        "method": "GET",
        "path": {
          "value": "",
          "placeholders": []
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      },
      "read": {
        "method": "GET",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Media ID",
              "required": true
            }
          ]
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      },
      "create": {
        "method": "POST",
        "path": {
          "value": "",
          "placeholders": []
        },
        "headers": {
          "Content-Disposition": "attachment; filename=\"{{filename}}\"",
          "Content-Type": "{{contentType}}"
        },
        "queryParams": {},
        "bodyTemplate": {
          "value": "{{fileData}}",
          "placeholders": [
            {
              "name": "filename",
              "type": "String",
              "description": "Original file name",
              "required": true
            },
            {
              "name": "contentType",
              "type": "String",
              "description": "MIME type (e.g. image/jpeg)",
              "required": true
            },
            {
              "name": "fileData",
              "type": "Any",
              "description": "Binary file data",
              "required": true
            }
          ]
        }
      },
      "update": {
        "method": "POST",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Media ID",
              "required": true
            }
          ]
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "queryParams": {},
        "bodyTemplate": {
          "value": "{\"title\": \"{{title}}\"}",
          "placeholders": [
            {
              "name": "title",
              "type": "String",
              "description": "Media title",
              "required": false
            }
          ]
        }
      },
      "delete": {
        "method": "DELETE",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Media ID",
              "required": true
            }
          ],
          "force": "true"
        },
        "headers": {},
        "queryParams": {
          "force": "true"
        },
        "bodyTemplate": null
      }
    },
    "webhooks": []
  },
  {
    "handle": "categories",
    "meta": {
      "short": "Categories",
      "description": "Manage categories in WordPress"
    },
    "endpoint": {
      "value": "/wp-json/wp/v2/categories",
      "placeholders": []
    },
    "fields": [
      {
        "name": "id",
        "type": "Integer",
        "selector": [
          "id"
        ],
        "meta": {}
      },
      {
        "name": "count",
        "type": "Integer",
        "selector": [
          "count"
        ],
        "meta": {}
      },
      {
        "name": "description",
        "type": "String",
        "selector": [
          "description"
        ],
        "meta": {}
      },
      {
        "name": "name",
        "type": "String",
        "selector": [
          "name"
        ],
        "meta": {}
      },
      {
        "name": "slug",
        "type": "String",
        "selector": [
          "slug"
        ],
        "meta": {}
      },
      {
        "name": "parent",
        "type": "Integer",
        "selector": [
          "parent"
        ],
        "meta": {}
      }
    ],
    "operations": {
      "list": {
        "method": "GET",
        "path": {
          "value": "",
          "placeholders": []
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      },
      "read": {
        "method": "GET",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Category ID",
              "required": true
            }
          ]
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      },
      "create": {
        "method": "POST",
        "path": {
          "value": "",
          "placeholders": []
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "queryParams": {},
        "bodyTemplate": {
          "value": "{\"name\": \"{{name}}\", \"description\": \"{{description}}\", \"parent\": {{parent}}}",
          "placeholders": [
            {
              "name": "name",
              "type": "String",
              "description": "Category name",
              "required": true
            },
            {
              "name": "description",
              "type": "String",
              "description": "Category description",
              "required": false
            },
            {
              "name": "parent",
              "type": "Integer",
              "description": "Parent category ID",
              "required": false
            }
          ]
        }
      },
      "update": {
        "method": "POST",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Category ID",
              "required": true
            }
          ]
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "queryParams": {},
        "bodyTemplate": {
          "value": "{\"name\": \"{{name}}\", \"description\": \"{{description}}\", \"parent\": {{parent}}}",
          "placeholders": [
            {
              "name": "name",
              "type": "String",
              "description": "Category name",
              "required": false
            },
            {
              "name": "description",
              "type": "String",
              "description": "Category description",
              "required": false
            },
            {
              "name": "parent",
              "type": "Integer",
              "description": "Parent category ID",
              "required": false
            }
          ]
        }
      },
      "delete": {
        "method": "DELETE",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Category ID",
              "required": true
            }
          ]
        },
        "headers": {},
        "queryParams": {
          "force": "true"
        },
        "bodyTemplate": null
      }
    },
    "webhooks": []
  },
  {
    "handle": "tags",
    "meta": {
      "short": "Tags",
      "description": "Manage tags in WordPress"
    },
    "endpoint": {
      "value": "/wp-json/wp/v2/tags",
      "placeholders": []
    },
    "fields": [
      {
        "name": "id",
        "type": "Integer",
        "selector": [
          "id"
        ],
        "meta": {}
      },
      {
        "name": "count",
        "type": "Integer",
        "selector": [
          "count"
        ],
        "meta": {}
      },
      {
        "name": "description",
        "type": "String",
        "selector": [
          "description"
        ],
        "meta": {}
      },
      {
        "name": "name",
        "type": "String",
        "selector": [
          "name"
        ],
        "meta": {}
      },
      {
        "name": "slug",
        "type": "String",
        "selector": [
          "slug"
        ],
        "meta": {}
      }
    ],
    "operations": {
      "list": {
        "method": "GET",
        "path": {
          "value": "",
          "placeholders": []
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      },
      "read": {
        "method": "GET",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Tag ID",
              "required": true
            }
          ]
        },
        "headers": {},
        "queryParams": {},
        "bodyTemplate": null
      },
      "create": {
        "method": "POST",
        "path": {
          "value": "",
          "placeholders": []
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "queryParams": {},
        "bodyTemplate": {
          "value": "{\"name\": \"{{name}}\", \"description\": \"{{description}}\"}",
          "placeholders": [
            {
              "name": "name",
              "type": "String",
              "description": "Tag name",
              "required": true
            },
            {
              "name": "description",
              "type": "String",
              "description": "Tag description",
              "required": false
            }
          ]
        }
      },
      "update": {
        "method": "POST",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Tag ID",
              "required": true
            }
          ]
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "queryParams": {},
        "bodyTemplate": {
          "value": "{\"name\": \"{{name}}\", \"description\": \"{{description}}\"}",
          "placeholders": [
            {
              "name": "name",
              "type": "String",
              "description": "Tag name",
              "required": false
            },
            {
              "name": "description",
              "type": "String",
              "description": "Tag description",
              "required": false
            }
          ]
        }
      },
      "delete": {
        "method": "DELETE",
        "path": {
          "value": "/{{id}}",
          "placeholders": [
            {
              "name": "id",
              "type": "Integer",
              "description": "Tag ID",
              "required": true
            }
          ]
        },
        "headers": {},
        "queryParams": {
          "force": "true"
        },
        "bodyTemplate": null
      }
    },
    "webhooks": []
  }
]
```

<p align="center"><a class="button primary" data-icon="square-caret-right">Try @Human</a><a class="button primary" data-icon="check">Buy @Human Subscription</a><a class="button primary" data-icon="comments">Join @Human Community</a></p>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.planetcrust.com/human-connections/wordpress/wordpress.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
