For the complete documentation index, see llms.txt. This page is also available as Markdown.

Knowledge Bases

List Resources

get

List files in the knowledge base with optional cursor pagination.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
knowledge_base_idstring · uuidRequired
Query parameters
cursorstring · nullableOptional

Optional identifier for the page that should be returned. If it is not provided, the first page will be returned.

Example: NTUwZTg0MDAtZTI5Yi00MWQ0LWE3MTYtNDQ2NjU1NDQwMDAw
page_sizeinteger · min: 1 · max: 100Optional

Number of items to be returned in the page.

Default: 50
directionstring · enumOptional

Direction for pagination: 'next' to advance through pages (older items), 'prev' to go back (newer items)

Default: nextPossible values:
Responses
200

Successful Response

application/json
Other propertiesanyOptional
get/v1/knowledge-bases/{knowledge_base_id}/resources

Create Resource

post

Upload a file directly to a knowledge base and start indexing.

This endpoint allows API users to upload files directly without needing to use presigned URLs. The file is uploaded to storage and indexing is started automatically. Returns the resource ID so callers can poll for indexing status.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
knowledge_base_idstring · uuidRequired
Body
filestring · binaryRequired

The file to upload to the knowledge base

Responses
202

Successful Response

application/json

Result of a file upload, including the resource ID for status polling.

messagestringRequired
resource_idstring · uuidRequired
post/v1/knowledge-bases/{knowledge_base_id}/resources

Get Resource By Id

get

Get one file resource by ID from the knowledge base.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
knowledge_base_idstring · uuidRequired
resource_idstring · uuidRequired
Responses
200

Successful Response

application/json

A file stored in a knowledge base.

knowledge_base_idstring · uuidRequired
created_atstring · date-timeRequired
modified_atstring · date-timeRequired
indexed_atstring · date-time · nullableOptional
resource_idstring · uuid · nullableRequired
resource_pathstring · min: 1Required
dataloader_metadataobject · Dataloader MetadataOptional
user_metadataobject · User MetadataOptional
content_hashstring · min: 1Required
content_mimestring · min: 1Required
sizeintegerRequired
statusstring · enumRequired

Processing status of a file in a knowledge base.

Possible values:
get/v1/knowledge-bases/{knowledge_base_id}/resources/{resource_id}

Delete Resource By Id

delete

Delete a file resource by ID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
knowledge_base_idstring · uuidRequired
resource_idstring · uuidRequired
Responses
204

Successful Response

No content

delete/v1/knowledge-bases/{knowledge_base_id}/resources/{resource_id}

No content

Synchronize Knowledge Base

post

Synchronize the knowledge base.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
knowledge_base_idstring · uuidRequired
Responses
202

Successful Response

application/json

Result of a knowledge base sync or reindex request.

messagestringRequired

Human-readable description of the started task.

statusconst: acceptedOptional

Task status.

Default: accepted
post/v1/knowledge-bases/{knowledge_base_id}/sync

Get Knowledge Bases

get

List all available knowledge bases for the specified flow.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
cursorstring · nullableOptional

Optional identifier for the page that should be returned. If it is not provided, the first page will be returned.

Example: ZXhhbXBsZV9jdXJzb3I=
page_sizeinteger · min: 1 · max: 1000Optional

Number of items to be returned in the page.

Default: 50
directionstring · enumOptional

Direction for pagination: 'next' to advance through pages (older items), 'prev' to go back (newer items)

Default: nextPossible values:
Responses
200

Successful Response

application/json

A knowledge base.

knowledge_base_idstring · uuidRequired
connection_idstring · uuid · nullableRequired
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
connection_source_idsstring[]Required
connection_provider_typestring · nullableOptional
is_emptybooleanOptionalDefault: true
total_sizeintegerOptional

Total size of all files in the knowledge base, in bytes.

Default: 0
total_filesintegerOptional

Total number of files in the knowledge base.

Default: 0
total_indexed_filesintegerOptional

Total number of successfully indexed files.

Default: 0
total_error_filesintegerOptional

Total number of files that failed indexing.

Default: 0
last_synced_atstring · date-time · nullableOptional

Timestamp when the knowledge base was last successfully synced from its source

namestring · min: 1 · max: 2048OptionalDefault: Unnamed Knowledge Base
descriptionstring · max: 2048OptionalDefault: ""
org_idstringRequired
rolestring · enum · nullableOptional

A user's role within a knowledge base.

Possible values:
org_level_rolestring · enum · nullableOptional

A user's role within a knowledge base.

Possible values:
get/v1/knowledge-bases

Create Knowledge Base

post

Create a new knowledge base.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

Payload to create a new knowledge base.

connection_idstring · uuid · nullableOptional
connection_source_idsstring[]Optional
namestring · min: 1 · max: 2048OptionalDefault: Unnamed Knowledge Base
descriptionstring · max: 2048OptionalDefault: ""
org_level_rolestring · enum · nullableOptional

A user's role within a knowledge base.

Possible values:
Responses
201

Successful Response

application/json

A knowledge base.

knowledge_base_idstring · uuidRequired
connection_idstring · uuid · nullableRequired
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
connection_source_idsstring[]Required
connection_provider_typestring · nullableOptional
is_emptybooleanOptionalDefault: true
total_sizeintegerOptional

Total size of all files in the knowledge base, in bytes.

Default: 0
total_filesintegerOptional

Total number of files in the knowledge base.

Default: 0
total_indexed_filesintegerOptional

Total number of successfully indexed files.

Default: 0
total_error_filesintegerOptional

Total number of files that failed indexing.

Default: 0
last_synced_atstring · date-time · nullableOptional

Timestamp when the knowledge base was last successfully synced from its source

namestring · min: 1 · max: 2048OptionalDefault: Unnamed Knowledge Base
descriptionstring · max: 2048OptionalDefault: ""
org_idstringRequired
rolestring · enum · nullableOptional

A user's role within a knowledge base.

Possible values:
org_level_rolestring · enum · nullableOptional

A user's role within a knowledge base.

Possible values:
post/v1/knowledge-bases

Get Knowledge Base By Id

get

Get a knowledge base by its ID in the current organization.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
knowledge_base_idstring · uuidRequired
Responses
200

Successful Response

application/json

A knowledge base.

knowledge_base_idstring · uuidRequired
connection_idstring · uuid · nullableRequired
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
connection_source_idsstring[]Required
connection_provider_typestring · nullableOptional
is_emptybooleanOptionalDefault: true
total_sizeintegerOptional

Total size of all files in the knowledge base, in bytes.

Default: 0
total_filesintegerOptional

Total number of files in the knowledge base.

Default: 0
total_indexed_filesintegerOptional

Total number of successfully indexed files.

Default: 0
total_error_filesintegerOptional

Total number of files that failed indexing.

Default: 0
last_synced_atstring · date-time · nullableOptional

Timestamp when the knowledge base was last successfully synced from its source

namestring · min: 1 · max: 2048OptionalDefault: Unnamed Knowledge Base
descriptionstring · max: 2048OptionalDefault: ""
org_idstringRequired
rolestring · enum · nullableOptional

A user's role within a knowledge base.

Possible values:
org_level_rolestring · enum · nullableOptional

A user's role within a knowledge base.

Possible values:
get/v1/knowledge-bases/{knowledge_base_id}

Delete Knowledge Base

delete

Delete a knowledge base by its ID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
knowledge_base_idstring · uuidRequired
Responses
204

Successful Response

No content

delete/v1/knowledge-bases/{knowledge_base_id}

No content

Update Knowledge Base

patch

Update a knowledge base.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
knowledge_base_idstring · uuidRequired
Body

Updates to apply to an existing knowledge base.

connection_idstring · uuid · nullableOptional
connection_source_idsstring[]Optional
namestring · min: 1 · max: 2048OptionalDefault: Unnamed Knowledge Base
descriptionstring · max: 2048OptionalDefault: ""
org_level_rolestring · enum · nullableOptional

A user's role within a knowledge base.

Possible values:
Responses
200

Successful Response

application/json

A knowledge base.

knowledge_base_idstring · uuidRequired
connection_idstring · uuid · nullableRequired
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
connection_source_idsstring[]Required
connection_provider_typestring · nullableOptional
is_emptybooleanOptionalDefault: true
total_sizeintegerOptional

Total size of all files in the knowledge base, in bytes.

Default: 0
total_filesintegerOptional

Total number of files in the knowledge base.

Default: 0
total_indexed_filesintegerOptional

Total number of successfully indexed files.

Default: 0
total_error_filesintegerOptional

Total number of files that failed indexing.

Default: 0
last_synced_atstring · date-time · nullableOptional

Timestamp when the knowledge base was last successfully synced from its source

namestring · min: 1 · max: 2048OptionalDefault: Unnamed Knowledge Base
descriptionstring · max: 2048OptionalDefault: ""
org_idstringRequired
rolestring · enum · nullableOptional

A user's role within a knowledge base.

Possible values:
org_level_rolestring · enum · nullableOptional

A user's role within a knowledge base.

Possible values:
patch/v1/knowledge-bases/{knowledge_base_id}

Last updated

Was this helpful?