Skip to main content
GET
/
content
/
api
/
v2
/
blogs
/
{blog_id}
/
versions
/
{version_id}
Get the previous version of the blog
curl --request GET \
  --url https://api.hubapi.com/content/api/v2/blogs/{blog_id}/versions/{version_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": 123,
  "portal_id": 123,
  "name": "<string>",
  "label": "<string>",
  "public_title": "<string>",
  "html_title": "<string>",
  "description": "<string>",
  "slug": "<string>",
  "root_url": "<string>",
  "absolute_url": "<string>",
  "url_base": "<string>",
  "domain": "<string>",
  "resolved_domain": "<string>",
  "live_domain": "<string>",
  "domain_when_published": "<string>",
  "created": 123,
  "created_date_time": 123,
  "updated": 123,
  "updated_date_time": 123,
  "deleted_at": 123,
  "allow_comments": true,
  "comment_moderation": true,
  "comment_should_create_contact": true,
  "comment_verification_text": "<string>",
  "comment_date_format": "<string>",
  "comment_form_guid": "<string>",
  "comment_max_thread_depth": 123,
  "comment_notification_emails": [
    "<string>"
  ],
  "close_comments_older": 123,
  "captcha_always": true,
  "captcha_after_days": 123,
  "posts_per_listing_page": 123,
  "posts_per_rss_feed": 123,
  "show_summary_in_listing": true,
  "show_summary_in_emails": true,
  "show_summary_in_rss": true,
  "use_featured_image_in_summary": true,
  "show_social_link_twitter": true,
  "show_social_link_facebook": true,
  "show_social_link_linkedin": true,
  "social_account_twitter": "<string>",
  "enable_social_auto_publishing": true,
  "html_head": "<string>",
  "html_head_is_shared": true,
  "post_html_head": "<string>",
  "html_footer": "<string>",
  "html_footer_is_shared": true,
  "post_html_footer": "<string>",
  "html_keywords": [
    "<string>"
  ],
  "attached_stylesheets": [
    "<string>"
  ],
  "item_layout_id": 123,
  "item_template_path": "<string>",
  "item_template_is_shared": true,
  "listing_layout_id": 123,
  "listing_template_path": "<string>",
  "uses_default_template": true,
  "default_group_style_id": "<string>",
  "category_id": 123,
  "cos_object_type": "<string>",
  "analytics_page_id": 123,
  "subscription_form_guid": "<string>",
  "subscription_contacts_property": "<string>",
  "subscription_lists_by_type": {
    "instant": 123,
    "daily": 123,
    "weekly": 123,
    "monthly": 123
  },
  "email_api_subscription_id": 123,
  "instant_notification_email_id": "<string>",
  "daily_notification_email_id": "<string>",
  "weekly_notification_email_id": "<string>",
  "monthly_notification_email_id": "<string>",
  "default_notification_from_name": "<string>",
  "default_notification_reply_to": "<string>",
  "publish_date_format": "<string>",
  "month_filter_format": "<string>",
  "url_segments": {
    "all": "<string>",
    "archive": "<string>",
    "author": "<string>",
    "page": "<string>",
    "tag": "<string>"
  },
  "public_access_rules": [
    {}
  ],
  "public_access_rules_enabled": true,
  "enable_google_amp_output": true,
  "amp_header_color": "<string>",
  "amp_header_background_color": "<string>",
  "amp_header_font": "<string>",
  "amp_header_font_size": "<string>",
  "amp_body_color": "<string>",
  "amp_body_font": "<string>",
  "amp_body_font_size": "<string>",
  "amp_link_color": "<string>",
  "amp_logo_src": "<string>",
  "amp_logo_alt": "<string>",
  "amp_logo_width": 123,
  "amp_logo_height": 123,
  "amp_custom_css": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

blog_id
string
required

Unique identifier for a particular blog.

version_id
string
required

Identifier of the version to look up.

Response

successful operation

id
integer<int64>

The unique id of the blog

portal_id
integer

The hub id

name
string

The internal name of the blog

label
string

The display label of the blog

public_title
string

The header of the blog

html_title
string

The title in the

description
string

The blog description

slug
string

The path of the URL on which the blog will live. Changing this will change the URL.

root_url
string

The full URL with domain and scheme to the blog

absolute_url
string

The absolute URL to the blog

url_base
string

The base URL for the blog

domain
string

The domain for the blog

resolved_domain
string

The resolved domain for the blog

live_domain
string

The live domain for the blog

domain_when_published
string

The domain when the blog was published

created
integer<int64>

When the blog was first created, in milliseconds since the epoch

created_date_time
integer<int64>

When the blog was first created, in milliseconds since the epoch

updated
integer<int64>

When the blog was last updated, in milliseconds since the epoch

updated_date_time
integer<int64>

When the blog was last updated, in milliseconds since the epoch

deleted_at
integer<int64>

When the blog was deleted, in milliseconds since the epoch. Zero if the blog was never deleted. Use a DELETE request to delete the blog, do not set this directly.

allow_comments
boolean

Are comments enabled for the blog

comment_moderation
boolean

Whether comment moderation is enabled

comment_should_create_contact
boolean

Whether commenting should create a contact

comment_verification_text
string

Text shown for comment verification

comment_date_format
string

Date format for comments

comment_form_guid
string

GUID for the comment form

comment_max_thread_depth
integer

Maximum thread depth for comments

comment_notification_emails
string[]

Email addresses to notify of new comments

close_comments_older
integer

Close comments on posts older than this many days

captcha_always
boolean

Always require captcha for comments

captcha_after_days
integer

Require captcha after this many days

posts_per_listing_page
integer

Number of posts per listing page

posts_per_rss_feed
integer

Number of posts in RSS feed

show_summary_in_listing
boolean

Show post summary in listing

show_summary_in_emails
boolean

Show post summary in emails

show_summary_in_rss
boolean

Show post summary in RSS

Use featured image in summary

Show Twitter social link

Show Facebook social link

Show LinkedIn social link

social_account_twitter
string

Twitter account for social sharing

enable_social_auto_publishing
boolean

Enable automatic social publishing

html_head
string

HTML content for the head section

html_head_is_shared
boolean

Whether HTML head is shared

post_html_head
string

HTML content for post head section

HTML content for the footer

Whether HTML footer is shared

post_html_footer
string

HTML content for post footer

html_keywords
string[]

HTML keywords for SEO

attached_stylesheets
string[]

Attached stylesheet URLs

item_layout_id
integer<int64>

Layout ID for individual blog posts

item_template_path
string

Template path for individual blog posts

item_template_is_shared
boolean

Whether item template is shared

listing_layout_id
integer<int64>

Layout ID for blog listing

listing_template_path
string

Template path for blog listing

uses_default_template
boolean

Whether blog uses default template

default_group_style_id
string

Default group style ID

category_id
integer

Category ID

cos_object_type
string

COS object type

analytics_page_id
integer<int64>

Analytics page ID

subscription_form_guid
string

GUID for subscription form

subscription_contacts_property
string

Property for subscription contacts

subscription_lists_by_type
object

Subscription list IDs by type

email_api_subscription_id
integer

Email API subscription ID

instant_notification_email_id
string

Instant notification email ID

daily_notification_email_id
string

Daily notification email ID

weekly_notification_email_id
string

Weekly notification email ID

monthly_notification_email_id
string

Monthly notification email ID

default_notification_from_name
string

Default from name for notifications

default_notification_reply_to
string

Default reply-to for notifications

publish_date_format
string

Date format for publishing

month_filter_format
string

Format for month filter

url_segments
object

URL segments configuration

public_access_rules
object[]

Public access rules

public_access_rules_enabled
boolean

Whether public access rules are enabled

enable_google_amp_output
boolean

Enable Google AMP output

amp_header_color
string

AMP header color

amp_header_background_color
string

AMP header background color

amp_header_font
string

AMP header font

amp_header_font_size
string

AMP header font size

amp_body_color
string

AMP body color

amp_body_font
string

AMP body font

amp_body_font_size
string

AMP body font size

AMP link color

amp_logo_src
string

AMP logo source URL

amp_logo_alt
string

AMP logo alt text

amp_logo_width
integer

AMP logo width

amp_logo_height
integer

AMP logo height

amp_custom_css
string

AMP custom CSS