POST
/
sources
Create a new source
curl --request POST \
  --url https://api.praxos.ai/sources \
  --header 'Content-Type: multipart/form-data' \
  --form 'name=<string>' \
  --form 'description=<string>' \
  --form file=@example-file
{
  "id": "<string>",
  "name": "<string>",
  "environment_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "status": "<string>"
}

Query Parameters

environment_id
string
required

ID of the environment to create the source in

type
enum<string>

Type of source to create (only required for conversation type)

Available options:
conversation

Body

file
file

File to upload (PDF, DOC, DOCX, or JSON)

name
string

Name of the source

description
string

Optional description of the source

Response

Source created successfully

id
string

Unique identifier of the source

name
string

Name of the source

environment_id
string

ID of the environment this source belongs to

created_at
string<date-time>

Creation timestamp

description
string

Optional description of the source

status
string

Current status of the source