Create Source

Create a new data source.

Headers

AuthorizationstringRequired

Header authentication of the form Bearer <token>

Request

This endpoint expects an object.
namestringRequired
The name of the source.
embeddingstringOptional
The hande for the embedding config used by the source.
embedding_chunk_sizeintegerOptional
The chunk size of the embedding.
embedding_configobjectOptional

(Legacy) The embedding configuration used by the source.

descriptionstringOptional
The description of the source.
instructionsstringOptional
Instructions for how to use the source.
metadataobjectOptional
Metadata associated with the source.

Response

Successful Response
namestring
The name of the source.
embedding_configobject
The embedding configuration used by the source.
idstring or nullformat: "^source-[a-fA-F0-9]{8}"

The human-friendly ID of the Source

descriptionstring or null
The description of the source.
instructionsstring or null
Instructions for how to use the source.
metadataobject or null
Metadata associated with the source.
created_by_idstring or null
The id of the user that made this Tool.
last_updated_by_idstring or null
The id of the user that made this Tool.
created_atstring or nullformat: "date-time"
The timestamp when the source was created.
updated_atstring or nullformat: "date-time"
The timestamp when the source was last updated.