POST
/
v1
/
sources
/

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

user_id
string | null

Body

application/json
name
string
required

The name of the source.

description
string | null

The description of the source.

embedding_config
object | null

The embedding configuration used by the passage.

metadata_
object | null

Metadata associated with the source.

Response

200 - application/json

Representation of a source, which is a collection of files and passages.

Parameters: id (str): The ID of the source name (str): The name of the source. embedding_config (EmbeddingConfig): The embedding configuration used by the source. created_at (datetime): The creation date of the source. user_id (str): The ID of the user that created the source. metadata_ (dict): Metadata associated with the source. description (str): The description of the source.

embedding_config
object
required

The embedding configuration used by the source.

name
string
required

The name of the source.

user_id
string
required

The ID of the user that created the source.

description
string | null

The description of the source.

metadata_
object | null

Metadata associated with the source.

id
string

The human-friendly ID of the Source

created_at
string

The creation date of the source.