LogoLogo
Log InSign UpHomepage
  • πŸ‘‹Welcome
  • Account and Team Setup
    • Sign up
    • Subscription Plans
    • Profile information
    • Account information
    • Roles
    • Users
    • Tags
  • FAQ
  • UNDERSTANDING MACHINE LEARNING
    • What is Graphite Note
      • Graphite Note Insights Lifecycle
    • Introduction to Machine Learning
      • What is Machine Learning
      • Data Analitycs Maturity
    • Machine Learning concepts
      • Key Drivers
      • Confusion Matrix
      • Supervised vs Unsupervised ML
  • Demo datasets
    • Demo Datasets
      • Ads
      • Churn
      • CO2 Emission
      • Diamonds
      • eCommerce Orders
      • Housing Prices
      • Lead Scoring
      • Mall Customers
      • Marketing Mix
      • Car Sales
      • Store Item Demand
      • Upsell
    • What Dataset do I need for my use case?
      • Predict Cross Selling: Dataset
      • Predict Customer Churn: Dataset
      • Predictive Lead Scoring: Dataset
      • Predict Revenue : Dataset
      • Product Demand Forecast: Dataset
      • Predictive Ads Performance: Dataset
      • Media Mix Modeling (MMM): Dataset
      • Customer Lifetime Value Prediction : Dataset
      • RFM Customer Segmentation : Dataset
    • Dataset examples - from online sources
      • Free datasets for Machine Learning
  • Datasets
    • Introduction
    • Prepare your Data
      • Data Labeling
      • Expanding datasets
      • Merging datasets
      • CSV File creating and formatting
    • Data sources in Graphite Note
      • Import data from CSV file
        • Re-upload or append CSV
        • CSV upload troubleshooting tips
      • MySQL Connector
      • MariaDB Connector
      • PostgreSQL Connector
      • Redshift Connector
      • Big Query Connector
      • MS SQL Connector
      • Oracle Connector
  • Models
    • Introduction
    • Preprocessing Data
    • Machine Learning Models
      • Timeseries Forecast
      • Binary Classification
      • Multiclass Classification
      • Regression
      • General Segmentation
      • RFM Customer Segmentation
      • Customer Lifetime Value
      • Customer Cohort Analysis
      • ABC Pareto Analysis
      • New vs Returning Customers
    • Predict with ML Models
    • Overview and Model Health Check
    • Advanced parameters in ML Models
    • Actionable insights in ML Models
    • Improve your ML Models
  • Notebooks
    • What is Notebook?
    • My first Notebook
    • Data Visualization
  • REST API
    • API Introduction
    • Dataset API
      • Create
      • Fill
      • Complete
    • Prediction API
      • Request v1
        • Headers
        • Body
      • Request v2
        • Headers
        • Body
      • Response
      • Usage Notes
    • Model Results API
      • Request
        • Headers
        • Body
      • Response
      • Usage Notes
      • Code Examples
    • Model Info API
      • Request
        • Headers
        • Body
      • Response
      • Usage notes
      • Code Examples
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. REST API
  2. Prediction API

Request v2

Method

API is using POST method


It supports the following model types:

  • βœ… Binary Classification (e.g., YES/NO, True/False outcomes)

  • βœ… Multiclass Classification (e.g., predicting one of several categories)

  • βœ… Regression (e.g., predicting a numeric value)


What’s Different in v2?

The v2 request body simplifies the structure by using flat JSON objects, where each object is a single prediction row and keys are the actual column names used during model training.

This format is much easier to construct programmatically, especially when working with data from spreadsheets, CSVs, or databases. It eliminates the need to wrap values in extra alias/selectedValue layers. In short:

  • No need for nested arrays or alias mapping.

  • Each prediction row is a standard JSON object.

  • You can send multiple rows in one request by adding more objects to the array.

v2 is recommended if you:

  • Are building automated pipelines or using Python/PHP integrations

  • Want to send predictions using raw tabular data (e.g., spreadsheets or databases)

  • Prefer a format without nested or verbose structures


Request URL

The base URL for the API endpoint is:

https://app.graphite-note.com/api/v2/prediction/model/[model-code]

Replace [model-code] in the URL with the code of the specific model you want to use for predictions.


Where can I find model code?

To easily find the [model-code], open the specific model and navigate to the Settings tab. The model code can be found in the ID section.

PreviousBodyNextHeaders

Last updated 1 day ago

Was this helpful?