The request requires the following headers to be included:
Authorization
: This header should be set to "Bearer [token]
". Replace [token]
with your unique token. The token can be found by accessing the account info page in the Graphite Note app, under the section displaying your current plan information.
Content-Type
: This header should be set to "application/json" to indicate that the request payload is in JSON format.
Necessary information to make a request to an API endpoint for the Graphite Note application
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.
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.
JSON request structures for various models
Binary classification, Regression, Multiclass classification
The following models have similar JSON structure: Binary classification, Logistic regression, Multiclass classification
JSON structure represents a data object with a key "data" mapping to an array called "predict_values". The "predict_values" array contains multiple elements, each representing a set of data. Each set of data is represented as an array of objects. Each object within the array represents a key-value pair, where required "alias" is the key and required "selectedValue" is the corresponding value. The keys "Lead Source", "Lead Origin", and "Converted" are common in each object, but their values differ, representing different attributes or properties of the data. Timeseries model
JSON structure represents a data object with a key "data" mapping to an object called "predict_values". The "predict_values" object contains three key-value pairs. The required keys are "startDate", "endDate", and "sequenceID", and their corresponding values are "2023-04-17", "2023-04-18", and "A" respectively.