Get a post
Get a single post with its content, tags, categories, and author using GET /posts/{id}.
Gets a single post by its ID. You get everything the list leaves out: content, tags, categories, and author.
Request
| Item | Value |
|---|---|
| Method · path | GET /posts/{id} |
| Permission | Read only (read) or higher |
{id} is the id you received when creating the post or from the list. To look a post up by your own system's ID, use Get a post by externalId.
Example
curl https://api-open.weekerp.com/blog/v1/posts/0193a1f2-7c4e-7b8a-9d10-3f2c1b0a9e87 \
-H "Authorization: Bearer wk_live_xxxxxxxx"
Response
You get 200 with the post. It has the same shape as the response in Create an empty post (draft).
Common errors
| HTTP | code | Fix |
|---|---|---|
| 404 | post_not_found |
Check the post ID. Posts on other blogs can't be found |
| 400 | invalid_type |
The id format is wrong. Send the ID exactly as you received it |
| 401 | api_key_invalid |
The key is missing, wrong, or revoked. Check your key |
For the full list of errors, see Error format in Publish posts with the blog API.