Knowledge Base

Get all knowledge bases

get

Returns all knowledge bases for the organization.

Rate limit: 60 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Responses
chevron-right
200Success
application/json
request_idstringOptional

The request ID for tracking.

get
/knowledge-bases

Get a knowledge base by its ID

get

Returns a single knowledge base by ID.

Rate limit: 60 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The ID of the knowledge base.

Responses
chevron-right
200Success
application/json
request_idstringOptional

The request ID for tracking.

get
/knowledge-bases/{id}

Get all collections in a knowledge base

get

Returns all collections for the specified knowledge base.

Rate limit: 20 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The ID of the knowledge base

Responses
chevron-right
200Success
application/json
request_idstringOptional

The request ID for tracking.

get
/knowledge-bases/{id}/collections

Create a collection

post

Creates a new collection within a knowledge base.

Rate limit: 10 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The ID of the knowledge base the article is being added to.

Body
descriptionstringOptional

Description of the collection.

parent_collection_idstringOptional

The id of the collection associated to the article

slugstringOptional

The slug of the collection. Defaults to a slug based on the title.

titlestringRequired

The title of the collection.

Responses
chevron-right
200Success
application/json
request_idstringOptional

The request ID for tracking.

post
/knowledge-bases/{id}/collections

Delete a collection

delete

Permanently deletes a collection and all articles within it from the knowledge base. Nested collections and their articles are also deleted.

Rate limit: 10 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The ID of the knowledge base that the collection belongs to.

collection_idstringRequired

The ID of the collection to delete.

Responses
chevron-right
200Success
application/json
request_idstringOptional

The request ID for tracking.

delete
/knowledge-bases/{id}/collections/{collection_id}

Get all articles in a knowledge base

get

Returns a paginated list of articles for the specified knowledge base.

Rate limit: 20 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The ID of the knowledge base the articles are being fetched from.

Query parameters
cursorstringOptional

The cursor to use for pagination.

limitinteger · int64Optional

The number of articles to fetch. Defaults to 100. Must be greater than 0 and less than 1000.

languagestringOptional

The language code to fetch articles in. If not provided, returns the default language.

Responses
chevron-right
200Success
application/json
request_idstringOptional

The request ID for tracking.

get
/knowledge-bases/{id}/articles

Create an article

post

Creates a new article within a knowledge base.

Rate limit: 10 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The ID of the knowledge base the article is being added to.

Body
author_user_idstringRequired

The ID of the user attributed as the author of the article.

body_htmlstringRequired

The HTML body of the article.

collection_idstringOptional

The id of the collection associated to the article

is_publishedbooleanOptional

Whether the article should be published. Defaults to false.

is_unlistedbooleanOptional

Whether the article can only be accessible only via direct link. Defaults to false.

slugstringOptional

The slug of the article. Defaults to a slug based on the title.

titlestringRequired

The title of the article.

Responses
chevron-right
200Success
application/json
request_idstringOptional

The request ID for tracking.

post
/knowledge-bases/{id}/articles

Get an article by its ID

get

Returns a single article by ID within the specified knowledge base.

Rate limit: 60 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The KnowledgeBaseID of the article to fetch.

article_idstringRequired

The ID of the article to fetch.

Query parameters
languagestringOptional

The language code to fetch the article in. If not provided, returns the default language.

Responses
chevron-right
200Success
application/json
request_idstringOptional

The request ID for tracking.

get
/knowledge-bases/{id}/articles/{article_id}

Update an article

patch

Updates an existing article. Only provided fields are modified.

Rate limit: 20 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The KnowledgeBaseID of the article to update.

article_idstringRequired

The ID of the article to update.

Body
body_htmlstringOptional

The HTML body of the article.

is_unlistedbooleanOptional

Whether the article can only be accessible only via direct link.

languagestringOptional

The language code of the translation to update. If not provided, the default language (original article) will be updated.

publish_updated_body_htmlbooleanOptional

Whether the changes to the article should be published. Defaults to false.

titlestringOptional

The title of the article.

Responses
chevron-right
200Success
application/json
request_idstringOptional

The request ID for tracking.

patch
/knowledge-bases/{id}/articles/{article_id}

Delete an article

delete

Permanently deletes an article from the knowledge base.

Rate limit: 20 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The KnowledgeBaseID of the article to delete.

article_idstringRequired

The ID of the article to delete.

Responses
chevron-right
200Success
application/json
request_idstringOptional

The request ID for tracking.

delete
/knowledge-bases/{id}/articles/{article_id}

Create a new route redirect

post

Creates a path redirect within a knowledge base, mapping a source path to an article or collection.

Rate limit: 10 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The ID of the knowledge base the route redirect is being added to.

Body
from_pathstringRequired

The path to redirect from.

languagestringOptional

Language of the object to redirect to. If not specified, the default language of the knowledge base will be used.

object_idstringRequired

The ID of the object to redirect to.

object_typestringRequired

The type of the object to redirect to. Must be "article" or "collection".

Responses
chevron-right
200Success
application/json
request_idstringOptional

The request ID for tracking.

post
/knowledge-bases/{id}/route-redirects

Last updated

Was this helpful?