POST
/
brain
/
{brain_id}
/
documents
/
file
curl --request POST \
  --url https://api.isosceles.ai/brain/{brain_id}/documents/file \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: multipart/form-data'
{
  "brain_id": "<string>",
  "created_at": "<string>",
  "document_id": "<string>",
  "id": 123,
  "name": "<string>",
  "status": "<string>",
  "type": "<string>",
  "url": "<string>",
  "metadata": {
    "language_code": "<string>",
    "original_url": "<string>",
    "original_object": "<string>",
    "processed": true
  }
}

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

The ID of the knowledge base to which the document belongs

Body

multipart/form-data

Response

200
application/json

The response is of type object.