Retrieve draft
Changed onRetrieve the draft version of a specific article in the knowledge base. This endpoint allows you to access the draft content of an article, which can be useful for reviewing or editing purposes before publishing.
Request
- Base URL: https://api.hubapi.com
- URL: https://api.hubapi.com/cms/knowledge-base/2027-03-beta/articles/{articleId}/draft
- Auth: one of:
- OAuth 2 (authorization code, authorization URL https://app.hubspot.com/oauth/authorize, token URL https://api.hubapi.com/oauth/v1/token, scopes: cms.knowledge_base.settings.read)
- OAuth 2 (authorization code, authorization URL https://app.hubspot.com/oauth/authorize, token URL https://api.hubapi.com/oauth/v1/token, scopes: cms.knowledge_base.articles.publish)
- OAuth 2 (authorization code, authorization URL https://app.hubspot.com/oauth/authorize, token URL https://api.hubapi.com/oauth/v1/token, scopes: cms.knowledge_base.articles.write)
- OAuth 2 (authorization code, authorization URL https://app.hubspot.com/oauth/authorize, token URL https://api.hubapi.com/oauth/v1/token, scopes: cms.knowledge_base.articles.read)
- OAuth 2 (authorization code, authorization URL https://app.hubspot.com/oauth/authorize, token URL https://api.hubapi.com/oauth/v1/token, scopes: cms.knowledge_base.settings.write)
Path parameters
The unique identifier of the article whose draft version is being retrieved.
Query parameters
A boolean indicating whether to include the article’s HTML content (the body field) in the response. Defaults to true.
A boolean indicating whether to include a summary of the article’s translations (id, title, and state per language) in the response. Defaults to true.
Response
successful operation
Changes
- ○
the security scope
cms.knowledge_base.settings.readwas added to the endpoint's security schemeoauth2 - ○
the security scope
cms.knowledge_base.settings.writewas removed from the endpoint's security schemeoauth2
- ○
- ○
the security scope
cms.knowledge_base.settings.readwas added to the endpoint's security schemeoauth2 - ○
the security scope
cms.knowledge_base.settings.writewas removed from the endpoint's security schemeoauth2
- ○