Knowledge Base

get

Get all knowledge bases

Rate limit: 60 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Responses
chevron-right
200Success
application/json
get
/knowledge-bases
get

Get a knowledge base by its 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
get
/knowledge-bases/{id}
get

Returns all collections in a 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
get
/knowledge-bases/{id}/collections
post

Creates a new collection in 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
post
/knowledge-bases/{id}/collections
get

Returns all articles in a knowledge base with pagination

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.

Responses
chevron-right
200Success
application/json
get
/knowledge-bases/{id}/articles

Creates a new article in a knowledge base

post

If translations are provided, they are created and associated with the article. If the article is published, translations are also published.

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
post
/knowledge-bases/{id}/articles
get

Returns a single knowledge base article by ID

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.

Responses
chevron-right
200Success
application/json
get
/knowledge-bases/{id}/articles/{article_id}
patch

Updates an existing knowledge base article

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.

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
patch
/knowledge-bases/{id}/articles/{article_id}
delete

Deletes an existing knowledge base article

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
delete
/knowledge-bases/{id}/articles/{article_id}
post

Create a new route redirect

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. This must be "article".

Responses
chevron-right
200Success
application/json
post
/knowledge-bases/{id}/route-redirects

Last updated

Was this helpful?