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:
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.
Last updated
Was this helpful?