docs/minds/rest_api/create_mind.mdx
This API endpoint creates a Mind using the POST method.
A unique name for the Mind.
</ParamField> <ParamField body='datasources' type='array' required>A list of data sources to be connected to the Mind. Each element can be:
name storing the data source name and an array of tables storing the table names.Use the data sources endpoint to create datasources.
</ParamField>HTTP status code indicating the success of the operation. 200 OK means the Mind was created successfully.
A valid API key must be passed in the Authorization header:
Authorization: Bearer MINDS_API_KEY
Generate your API key here.
None.
<RequestExample>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", ...]}
]
}'
from minds.client import Client
client = Client("MINDS_API_KEY", "https://mdb.ai/")
mind = client.minds.create(name='mind_name')
200 OK