Skip to main content
POST
/
v1
/
orchestrate
/
agents
/
{agent_id}
/
threads
/
{thread_id}
/
chat-with-docs
Create A Knowledge-Base By Uploading Documents, Or Providing A External Vector Index
curl --request POST \
  --url https://{api_endpoint}/api/v1/orchestrate/agents/{agent_id}/threads/{thread_id}/chat-with-docs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'text=<string>' \
  --form 'files=<string>' \
  --form files.items='@example-file'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agent_id
string<uuid>
required
thread_id
string<uuid>
required

Body

multipart/form-data
text
string | null
files
file[]

Response

Successful Response