Models
The v1/models endpoint is used to make predictions using a trained model. Details on training a model via the API can be found at the Training endpoint. Use GET to obtain a list of all models. Then use the model ID to POST data to that model and receive predictions.
Get All Models
GET https://api.akkio.com/v1/models
Query Parameters
api_key*
string
Your api key, accessible from https://app.akkio.com/team-settings
{
"status": "success",
"models": [
{
"id": "mpcfo01LuKwZKkH8fMwN",
"name": "titanic-sheet-titanic"
},
{
"id": "nPG4VV5MhXwiiuNdgYTU",
"name": "Lead Scoring Demo"
]
}Make Prediction
POST https://api.akkio.com/v1/models
Request Body
api_key*
string
Your api key, accessible from https://app.akkio.com/team-settings
data*
array
Data in the format of: [{'field name 1': 'value 1', 'field name 2': 0}, {...}, ...]
id*
string
The ID of the model to make the prediction with
Delete Model
DELETE https://api.akkio.com/v1/models
Request Body
id*
string
The ID of the model to be deleted
api_key*
string
Your api key, accessible from https://app.akkio.com/team-settings
Last updated
Was this helpful?