Get blog post
Tool ID: kocodesk_blog_post_get
Summary
Read everything about one blog post: title, slug, teaser, lead image, publish date, categories, social meta and which translations exist.
When to use it
- Before editing a post, to see its current values.
- To check which languages a post has been translated into.
What you need
| Requirement | Required? |
|---|---|
| Metraclick connection | Yes |
| Tool enabled for your account | Yes |
| KocoDesk credentials | Yes |
| Blog plugin enabled for the site | Yes |
Parameters
| Parameter | Required? | Description |
|---|---|---|
post_id |
Yes | The post id, as shown by List blog posts. |
language |
No | Read the post in this language (default is the primary language). |
What you get back
The post's fields, its category ids, a list of available translations, and both id and default_id.
Example prompts
Show me the details of my latest blog post.
Which languages has the post about our new office been translated into?
What categories and publish date does blog post 42 have?
Tips
- This tool shows the post's metadata only. The article body is made of content blocks โ see Get blog post content.
- When you read a post in a translated language,
idrefers to the translation whiledefault_idis the main post. Other blog tools expectdefault_id.