Akkio Docs
  • Akkio Documentation
    • Akkio FAQ
  • Account and Settings
    • Team Settings
    • Organization Settings
    • Account Settings
    • Role Based Access Control
  • Demo Models
    • Demo Models
      • Lead Scoring
      • Retail Sales Forecasting
      • Predict Credit Card Fraud
      • Identify Customer Churn
  • Setting up Integrations
    • Connecting Data
    • Airtable (Beta)
    • Google Ads (Beta)
    • Google Analytics 4 (Beta)
    • Google BigQuery
    • Google BigQuery (Service Account)
    • Google Sheets
    • HubSpot (Beta)
    • MariaDB (Beta)
    • MongoDB (Beta)
    • MySQL (Beta)
    • PostgreSQL (Beta)
    • Redshift (Beta)
    • Salesforce
    • Akkio Data Chat for Slack
    • Snowflake (Username / Password) (Beta)
    • Zapier
  • Prepare your Data
    • Prepare
      • Chat Data Prep
      • Clean
      • Merge & Fuzzy Merge
      • Table View
      • Pivot View
      • Deploying Chat Data Prep
  • Explore
    • Chat Explore
    • Chart Types
  • Building a Model
    • Predict
      • Insights Report - Classification
      • Insights Report - Regression
    • Forecasting
      • Insights Report - Forecasting
    • Model Types
  • Deploying a Model
    • Deploy
      • Google BigQuery
      • Google Sheets
      • HubSpot (Beta)
      • PostgreSQL (Beta)
      • Salesforce
      • Snowflake (Beta)
      • Web App
      • Zapier
  • REPORTING AND SHARING
    • Reports
    • Dashboards
  • REST API
    • API Introduction
      • Quickstart
  • Concepts
    • Asynchronous Endpoints
    • Authentication
    • Code Generation
    • Terminology
  • Endpoints and Schemas
    • API Specifications
    • Endpoints
      • Chat Explore
      • Projects
      • Training
      • Models
      • Datasets
    • Schemas
    • Additional Libraries
      • Python Library
      • Node.js Library
Powered by GitBook
On this page
  • Get All Models
  • Make Prediction
  • Delete Model

Was this helpful?

  1. Endpoints and Schemas
  2. Endpoints

Models

PreviousTrainingNextDatasets

Last updated 14 hours ago

Was this helpful?

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 . 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

Name
Type
Description

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"
    ]
}
# Example cURL

curl --request GET 'https://api.akkio.com/v1/models?api_key=api_key_string'

Make Prediction

POST https://api.akkio.com/v1/models

Request Body

Name
Type
Description

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

{
    "status": "success",
    "predictions": [
        {
            "Survived": "0",
            "Probability Survived is 0": 0.8029362559318542,
            "Probability Survived is 1": 0.19706374406814575
        }
    ]
}
# Example cURL

curl -g --request POST 'https://api.akkio.com/v1/models?id=id_string&api_key=api_key_string&data=[{'\''field name 1'\'': '\''value 1'\'', '\''field name 2'\'': 0}]'

Delete Model

DELETE https://api.akkio.com/v1/models

Request Body

Name
Type
Description

id*

string

The ID of the model to be deleted

api_key*

string

Your api key, accessible from https://app.akkio.com/team-settings

{
    "status": "success"
}
# Example cURL

curl --request DELETE 'https://api.akkio.com/v1/models?id=id_string&api_key=api_key_string'
Training endpoint