POST
/
api
/
v1
/
data-sources

Body

multipart/form-data
data
string
required

JSON string containing data source metadata.

Example:

{
  "name": "Annual Report 2023",
  "type": "file",
  "knowledge_engine_id": "kng_abc123xyz789"
}
file
file
required

The file to upload

Response

201 - application/json
created_at
integer

Unix timestamp when this entity was created

id
string

Unique identifier for the data source

knowledge_engine_id
string

ID of the knowledge engine this data source belongs to

name
string

Name of the data source

notes
object

Custom attributes and fields

status
enum<string>

Current status of the data source

Available options:
processing,
processed
type
enum<string>

Type of the data source

Available options:
file,
ticket