Scope requirements
Scope requirements
Retrieve blogs
You can retrieve blogs either individually by ID or by retrieving all blogs:- To retrieve an individual blog, make a
GETrequest to/cms/v3/blog-settings/settings/{blogId}. - To retrieve all blogs, make a
GETrequest to/cms/v3/blog-settings/settings.
| Parameter | Type | Description |
|---|---|---|
after | String | Cursor token to get the next set of results. Available from paging.next.after in paginated responses. |
archived | Boolean | Filter by whether the blog is archived. |
createdAfter | String | Filter to blogs created after this timestamp (ISO8601 format). |
createdAt | String | Filter to blogs created at this exact timestamp (ISO8601 format). |
createdBefore | String | Filter to blogs created before this timestamp (ISO8601 format). |
limit | Integer | Maximum number of blogs to return. |
sort | Array | List of fields to sort by. Each sort specifies a property name and direction (ASCENDING, DESCENDING). |
updatedAfter | String | Filter to blogs updated after this timestamp (ISO8601 format). |
updatedAt | String | Filter to blogs updated at this exact timestamp (ISO8601 format). |
updatedBefore | String | Filter to blogs updated before this timestamp (ISO8601 format). |
Retrieve a single blog
To retrieve details for a specific blog, make aGET request to /cms/v3/blog-settings/settings/{blogId}.
For example, the request below would retrieve the details for the blog with ID 184993428780:
Retrieve blog revisions
You can access the revision history of a blog to view previous versions and track changes over time.List all revisions
To retrieve all revisions for a blog, make aGET request to /cms/v3/blog-settings/settings/{blogId}/revisions.
The following query parameters are available:
| Parameter | Type | Description |
|---|---|---|
after | String | Cursor token to get the next set of results. |
before | String | Cursor token to get the previous set of results. |
limit | Integer | Maximum number of results to return. Default is 100. |
Retrieve a specific revision
To retrieve a specific revision, make aGET request to /cms/v3/blog-settings/settings/{blogId}/revisions/{revisionId}.
For example, the request below would retrieve the revision with ID 12345 for the blog with ID 184993428780:
Multi-language management
HubSpot’s CMS allows you to group together language variants of the same blog. You can learn more about working with multi-language content in HubSpot’s Knowledge Base.Create a new language variation
To create a new language variation from an existing blog, make aPOST request to /cms/v3/blog-settings/settings/multi-language/create-language-variation.
For example, the request below would create a Spanish language variation for the blog with ID 184993428780:
| Parameter | Type | Description |
|---|---|---|
id Required | String | ID of the blog to clone. |
language | String | Target language of the new variant. |
primaryLanguage | String | Language of the primary blog to clone. |
slug | String | Path to the new blog. |
Attach a blog to a multi-language group
To add a blog to an existing multi-language group, make aPOST request to /cms/v3/blog-settings/settings/multi-language/attach-to-lang-group.
For example, the request below would add the blog with ID 184993428781 to the multi-language group with the primary blog ID 184993428780:
| Parameter | Type | Description |
|---|---|---|
id Required | String | ID of the blog to add to the multi-language group. |
language Required | String | Designated language of the blog being added. |
primaryId Required | String | ID of the primary language blog in the multi-language group. |
primaryLanguage | String | Primary language of the multi-language group. |
Detach a blog from a multi-language group
To remove a blog from a multi-language group, make aPOST request to /cms/v3/blog-settings/settings/multi-language/detach-from-lang-group.
For example, the request below would remove the blog with ID 184993428781 from the multi-language group:
| Parameter | Type | Description |
|---|---|---|
id Required | String | ID of the blog to remove from the multi-language group. |