get-post
Retrieve a specific WordPress post by ID using site URL, credentials, and optional parameters like post password or context (view, embed, edit).
Instructions
Get a specific post by ID
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context | No | Scope under which the request is made | view |
password | Yes | WordPress application password | |
postId | Yes | ID of the post to retrieve | |
postPassword | No | The password for the post if it is password protected | |
siteUrl | Yes | WordPress site URL | |
username | Yes | WordPress username |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"context": {
"default": "view",
"description": "Scope under which the request is made",
"enum": [
"view",
"embed",
"edit"
],
"type": "string"
},
"password": {
"description": "WordPress application password",
"type": "string"
},
"postId": {
"description": "ID of the post to retrieve",
"type": "number"
},
"postPassword": {
"description": "The password for the post if it is password protected",
"type": "string"
},
"siteUrl": {
"description": "WordPress site URL",
"format": "uri",
"type": "string"
},
"username": {
"description": "WordPress username",
"type": "string"
}
},
"required": [
"siteUrl",
"username",
"password",
"postId"
],
"type": "object"
}