- Models
- Get All Models
Models
Get All Models
This endpoint returnes info about all models in the project.
GET
/projects/{projectName}/models
X-API-KEY*
curl --request GET \
--url https://alpha.mindsdb.com/projects/{projectName}/models \
--header 'X-API-KEY: AUTH_VALUE'
βDescription
This API provides a REST endpoint for getting a list of models.
By default, the open source version doesnβt provide Authentication methods as MindsDB Cloud.
On MindsDB cloud you need to set the cookie
field in the header of request e.g {session=273trgsehgrui3i2riurwehe}
.
curl --request GET \
--url https://cloud.mindsdb.com/api/projects/{projectName}/models \
--cookie '{session=273trgsehgrui3i2riurwehe}'\
[
{
"accuracy": 0.999,
"active": true,
"created_at": "2023-01-19 17:02:58",
"current_phase": null,
"data_source": null,
"error": null,
"fetch_data_query": "SELECT * FROM demo_data.home_rentals",
"id": 1,
"is_active": null,
"mindsdb_version": "23.1.3.1",
"name": "home_rentals_model",
"predict": "rental_price",
"status": "complete",
"training_time": "0:00:54",
"update": "up_to_date",
"version": 1
}
]
curl --request GET \
--url https://cloud.mindsdb.com/api/projects/{projectName}/models \
--cookie '{session=273trgsehgrui3i2riurwehe}'\
[
{
"accuracy": 0.999,
"active": true,
"created_at": "2023-01-19 17:02:58",
"current_phase": null,
"data_source": null,
"error": null,
"fetch_data_query": "SELECT * FROM demo_data.home_rentals",
"id": 1,
"is_active": null,
"mindsdb_version": "23.1.3.1",
"name": "home_rentals_model",
"predict": "rental_price",
"status": "complete",
"training_time": "0:00:54",
"update": "up_to_date",
"version": 1
}
]