Knowledge API
API endpoints for managing knowledge entries in the Kubiya platform
Knowledge API
The Knowledge API allows you to create, retrieve, update, and delete knowledge entries in the Kubiya platform. Knowledge entries provide contextual information that can be used by teammates and tools to improve their performance.
List all knowledge entries
Create a knowledge entry
List Knowledge Entries
Retrieve a list of all knowledge entries in your organization.
Query Parameters
Name | Type | Required | Description |
---|---|---|---|
tag | string | No | Filter by tag |
limit | integer | No | Maximum number of entries to return (default: 50) |
page | integer | No | Page number for pagination |
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Content-Type | No | application/json |
Response
Create Knowledge Entry
Create a new knowledge entry in your organization.
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Content-Type | Yes | application/json |
Request Body
Required Fields
title
: Title of the knowledge entrycontent
: Markdown content of the knowledge entry
Response
Get Knowledge Entry
Retrieve a specific knowledge entry by ID.
Path Parameters
Name | Type | Required | Description |
---|---|---|---|
entry_id | string | Yes | ID of the knowledge entry to retrieve |
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Content-Type | No | application/json |
Response
Update Knowledge Entry
Update an existing knowledge entry.
Path Parameters
Name | Type | Required | Description |
---|---|---|---|
entry_id | string | Yes | ID of the knowledge entry to update |
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Content-Type | Yes | application/json |
Request Body
Response
Delete Knowledge Entry
Delete a knowledge entry.
Path Parameters
Name | Type | Required | Description |
---|---|---|---|
entry_id | string | Yes | ID of the knowledge entry to delete |
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Response
A successful delete operation returns an HTTP 200 status with no response body.
Search Knowledge
Search for knowledge entries based on keywords or tags.
Query Parameters
Name | Type | Required | Description |
---|---|---|---|
q | string | Yes | Search query |
tags | array | No | Filter by tags (comma-separated) |
limit | integer | No | Maximum number of entries to return (default: 10) |
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Content-Type | No | application/json |
Response
Example Usage
List Knowledge Entries
Create a Knowledge Entry
Get Knowledge Entry
Update Knowledge Entry
Delete Knowledge Entry
Search Knowledge
Knowledge Visibility
Knowledge entries can have different visibility levels:
Visibility | Description |
---|---|
private | Only visible to the creator |
team | Visible to specific teams |
organization | Visible to the entire organization |
public | Visible to all users of the platform |
Versioning
Knowledge entries are versioned. Each update creates a new version, and you can view the version history of an entry.
Common Errors
HTTP Status | Description |
---|---|
400 | Bad Request - Missing required fields in request |
401 | Unauthorized - Missing or invalid authentication credentials |
403 | Forbidden - User doesn't have permission for this operation |
404 | Not Found - Knowledge entry not found |
500 | Internal Server Error - Unexpected server error |