curl --request POST \
     --url 'https://mdb.ai/api/projects/mindsdb/minds' \
     --header 'Content-Type: application/json' \
     --header 'Authorization: Bearer MINDS_API_KEY' \
     --data '{
         "name": "mind_name",
         "datasources": [
           "datasource_with_all_its_tables",
           {"name": "datasource_with_selected_tables", "tables": ["table_name", ...]}
         ]
     }'
200 OK

This API endpoint creates a Mind using the POST method.

Body

name
string
required

A unique name for the Mind.

datasources
array
required

A list of data sources to be connected to the Mind. Each element can be:

  • A string specifying a data source name.
  • An object with name storing the data source name and an array of tables storing the table names.

Use the data sources endpoint to create datasources.

Response

status
string
required

HTTP status code indicating the success of the operation. 200 OK means the Mind was created successfully.

Authorization

A valid API key must be passed in the Authorization header:

Authorization: Bearer MINDS_API_KEY

Generate your API key here.

Path Parameters

None.

curl --request POST \
     --url 'https://mdb.ai/api/projects/mindsdb/minds' \
     --header 'Content-Type: application/json' \
     --header 'Authorization: Bearer MINDS_API_KEY' \
     --data '{
         "name": "mind_name",
         "datasources": [
           "datasource_with_all_its_tables",
           {"name": "datasource_with_selected_tables", "tables": ["table_name", ...]}
         ]
     }'
200 OK