Data Source Document API

This page covers the QAnswer Data Source Document API endpoints.

Info

Create an API Key Create API Key section.

An AI assistant is required. Create one via the Create AI Assistant API, or follow the Create AI Assistant steps in the application.

Try it

Create the connector

  • Create the connector with the following API request.
  • The API response returns the information needed to upload a document using the request below.
POST

/api/connectors/document/create


Try it
Code

Upload a document

Upload a document with the following API request.

Note
This API route is for documentation purposes only. To upload multiple documents, use /api/connectors/document/add.
POST

/api/connectors/document/doc/add


Try it
Code