POST
/
brain
/
{brain_id}
/
documents
/
text
curl --request POST \
  --url https://api.isosceles.ai/brain/{brain_id}/documents/text \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "What is an operating system? An operating system (OS) is the program that, after being initially loaded into the computer by a boot program, manages all of the other application programs in a computer............",
  "title": "oslecture3"
}'
{
  "chunk_header": null,
  "content": "What is an operating system? An operating system (OS) is the program that, after being initially loaded into the computer by a boot program, manages all of the other application programs in a computer............",
  "created_on": 1715540036,
  "description": "",
  "document_type": "raw_text",
  "file_extension": ".txt",
  "file_name": null,
  "id": "0a7b731a-1aaf-4255-b047-12ebfd446f3c",
  "knowledge_base_id": "930388ef-da14-46fb-9c63-0fc7364fa0e5",
  "link_to_source": null,
  "supp_id": "",
  "title": null,
  "vectorization_status": "PENDING"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

brain_id
string
required

Body

application/json

Response

200 - application/json

The response is of type object.