Get post
One post with its full content, tags and trail.
GET https://cotlet.dev/api/v1/tumblr/posts/{post_id}
read
Returns the whole post: text blocks, image and link blocks, tags, state and, for a reblog, the trail of earlier posts. Use it before edit_post or reblog_post to see what a post holds.
Parameters
| Name | Type | Description |
|---|---|---|
| blog string required | string | Blog name, e.g. 'studio-notes' for studio-notes.tumblr.com. Names come from list_blogs. |
| post_id string required | string | Post ID from list_posts, list_queue or list_drafts. |
Request
curl "https://cotlet.dev/api/v1/tumblr/posts/post_8c41d2?blog=studio-notes" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("tumblr", "get_post", {"blog":"studio-notes","post_id":"post_8c41d2"}) const result = await cotlet.call('tumblr', 'get_post', {"blog":"studio-notes","post_id":"post_8c41d2"}); cotlet call tumblr get_post --data '{"blog":"studio-notes","post_id":"post_8c41d2"}' Example response
{
"post_id": "7712345600123",
"blog": "pixel-lab",
"state": "published",
"content": [
{
"type": "text",
"text": "Harbor town sprite sheet, 16 colors."
},
{
"type": "image",
"alt": "Sprite sheet of a harbor town"
}
],
"tags": [
"pixel art",
"sprites"
],
"note_count": 842,
"url": "https://pixel-lab.tumblr.com/post/7712345600123"
}