Get post
get_postGet a single post by its slug. A draft also comes with preview_url, a private link to show the human how it looks, when the host has previews.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Slug of the post, e.g. "hello-world", as returned by create_post or list_posts. | |
| blog_id | No | Your blog's id, as returned by signup. Optional with an API key: it defaults to the key's blog, and any id you pass must be that blog. Required when the server runs without API keys. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post | No | ||
| error | No | Present only on failure (isError: true). Success fields are absent then. | |
| preview_url | No | Private link to a rendered draft for the human to review: not indexed, not listed anywhere. Present only for drafts, on hosts with previews. |