API Endpoints

POST

Upload the documents to your storage. If you need information regarding the status and other data related to the documents, please refer to List documents.
Upon uploading the documents, they undergo automatic training, eliminating the necessity for additional manual training or the invocation of extra functions.

Endpoint: /api/v1/document

To do this, you need the organization ID. However, due to documentation constraints in README, it is not possible to test it from this platform.

The file should be in .PDF, .DOC, .XLS, .PAGES, for 20MB and for .TXT, .CSV 2MB maximum.

Example

[
  {
    "id": "0000-0000-0000-0000",
    "created_at": "2023-01-01T12:00:00.000Z",
    "file_id": "0000-0000-0000-0000",
    "user_id": "0000-0000-0000-0000",
    "name": "La metamorfosis",
    "org_id": "0000-0000-0000-0000",
    "file_type": "txt",
    "metadata": {
      "title": "La metamorfosis",
      "description": "La metamorfosis es una novela escrita por Franz Kafka y publicada en 1915.",
      "summary": "Cuenta la historia de Gregorio Samsa, un comerciante de telas que vive con su familia a la que él mantiene con su sueldo, quien un día amanece convertido en un insecto.",
      "keywords": "metamorfosis, insecto",
      "language": "es"
    },
    "tokens": 1000,
    "chunk_count": 1
  }
]