You're among the first to explore our new HubSpot developer docs. Dive in and share your feedback here.
curl --request GET \
--url https://api.hubapi.com/content/api/v2/blog-posts/{blog_post_id}/versions
[
{
"id": 123,
"object": {
"id": 123,
"portal_id": 123,
"name": "<string>",
"html_title": "<string>",
"slug": "<string>",
"content_group_id": 123,
"blog_author_id": 123,
"post_body": "<string>",
"post_summary": "<string>",
"meta_description": "<string>",
"featured_image": "<string>",
"head_html": "<string>",
"footer_html": "<string>",
"campaign": "<string>",
"campaign_name": "<string>",
"state": "DRAFT",
"publish_date": 123,
"publish_immediately": true,
"created": 123,
"updated": 123,
"archived_at": 123,
"is_draft": true,
"url": "<string>",
"published_url": "<string>",
"topic_ids": [
123
],
"keywords": [
{}
],
"use_featured_image": true,
"widgets": {}
},
"updated_at": 123,
"user": {
"id": 123
}
}
]
Get the previous versions of a blog post.
curl --request GET \
--url https://api.hubapi.com/content/api/v2/blog-posts/{blog_post_id}/versions
[
{
"id": 123,
"object": {
"id": 123,
"portal_id": 123,
"name": "<string>",
"html_title": "<string>",
"slug": "<string>",
"content_group_id": 123,
"blog_author_id": 123,
"post_body": "<string>",
"post_summary": "<string>",
"meta_description": "<string>",
"featured_image": "<string>",
"head_html": "<string>",
"footer_html": "<string>",
"campaign": "<string>",
"campaign_name": "<string>",
"state": "DRAFT",
"publish_date": 123,
"publish_immediately": true,
"created": 123,
"updated": 123,
"archived_at": 123,
"is_draft": true,
"url": "<string>",
"published_url": "<string>",
"topic_ids": [
123
],
"keywords": [
{}
],
"use_featured_image": true,
"widgets": {}
},
"updated_at": 123,
"user": {
"id": 123
}
}
]
Unique identifier for a particular blog post
List of blog post versions
The response is of type object[]
.