Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

HubSpot Drafts and Revisions API

Manage blog post drafts and revision history

HubSpot Drafts and Revisions API is one of 93 APIs that HubSpot publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 652 JSON Schema definitions.

Tagged areas include Drafts and Revisions. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, code examples, and 652 JSON Schemas.

This API exposes 4 operations across 4 paths, and defines 7 schemas. It is described by OpenAPI 3.1.0, at version 3.0.0.

Requests are made against a single base URL, https://api.hubapi.com.

4 operations 4 paths 7 schemas 1 GET3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
3.0.0
Base URL
https://api.example.com
Authentication
OAuth 2.0
License
Resource Areas
1

Authentication & Security 1

HubSpot Drafts and Revisions API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (OAuth2) using the authorizationCode flow, exposing 1 scope.

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 1 GET, 3 POST. Each is listed below with its method, path, parameters, and response codes.

Drafts and Revisions 4

Manage blog post drafts and revision history

POST
/cms/v3/blogs/posts/{objectId}/draft/push-live
Hubspot Push Draft to Live
pushBlogPostDraftLive 1 param → 200default
POST
/cms/v3/blogs/posts/{objectId}/draft/reset
Hubspot Reset Draft to Live Version
resetBlogPostDraft 1 param → 200default
GET
/cms/v3/blogs/posts/{objectId}/revisions
Hubspot Get Revision History
getBlogPostRevisions 3 params → 200default
POST
/cms/v3/blogs/posts/{objectId}/revisions/{revisionId}/restore
Hubspot Restore a Previous Version
restoreBlogPostRevision 2 params → 200default

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are BlogPost (32 properties), Error (7 properties), ErrorDetail (5 properties), VersionHistory (4 properties). Each schema is shown below with its type and property counts.

ErrorDetail
object
Detailed error information
5 properties 1 required
VersionHistory
object
Version history entry for a blog post
4 properties
BlogPost
object
Represents a blog post with all content and metadata
32 properties 4 required
PagingPrevious
object
Pagination cursor for previous page
2 properties
Error
object
Standard error response
7 properties 3 required
Paging
object
Pagination information
2 properties
PagingNext
object
Pagination cursor for next page
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hubspot-drafts-and-revisions-api-openapi.yml Raw ↑

Other APIs HubSpot publishes across the network.

HubSpot Posts API
HubSpot URL Redirects API
HubSpot Pipelines API
HubSpot Products API
HubSpot Line Items API
HubSpot Quotes API
HubSpot CRM Properties API
HubSpot Owners API
HubSpot CRM Imports API
HubSpot Custom Objects API
HubSpot Marketing Events API
HubSpot Forms API