Skip to main content

retrieveData

The 'retrieveData' route in the Flexibel API is designed to provide a comprehensive view of all data sources that have been imported into the AI chatbot system under a specific project. This feature is critical for managing and overseeing the data sources utilized by the chatbot for delivering accurate responses.

GET https://api.flexibel.ai/v0/retrieveData

Request

To retrieve all data sources for a given API key using curl:

curl https://api.flexibel.ai/v0/retrieveData \
-H "Authorization: Bearer $API_KEY"

Response

The response lists all the data sources associated with the provided API key:

{
"sources": [
{
"type": "SOURCE_TYPE",
"details": "SOURCE_DETAILS",
"importedOn": "DATE_OF_IMPORT"
},
// Additional sources...
]
}

Request Body

The 'retrieveData' route does not require any parameters in the request body. It retrieves data based on the API key provided in the header.

Usage

This endpoint is straightforward to use – simply make a GET request with your API key. It returns a list of all data sources that have been added to your chatbot project, including details about each source, such as the type of source, specific details (like URL or file path), and the date when the source was imported.

This functionality is particularly useful for auditing and reviewing the data sources feeding into your chatbot, allowing for efficient management and potential optimization of the information being utilized. For adding new data sources or removing existing ones, refer to the importData and deleteSource routes respectively.