REST API
Aporia provides a REST API, which is currently in beta.
Using the REST API
The API is accessible thorough https://app.aporia.com/v1beta
.
To use the API, you must pass your token in the authorization header of each request:
Endpoints
Create Model
Creates a new model.
Request Parameters
ModelColor options: blue
,arctic_blue
, green
, turquoise
, pink
, purple
, yellow
, red
ModelIcon options: general
, churn-and-retention
, conversion-predict
, anomaly
, dynamic-pricing
, email-filtering
, demand-forecasting
, ltv
, personalization
, fraud-detection
, credit-risk
, recommendations
Response
Delete Model
Deletes a model.
Path Parameters
Get Model Versions
Returns all model versions and their creation date.
Path Parameters
Response
A List of VersionDetails objects, each with the following format:
Create Model Version
Defines a new version for an existing model.
Path Parameters
Request Parameters
Notes
ModelType options:
binary
,multiclass
,multi-label
,regression
Feature positions: When reporting a model schema, there is an optional argument called feature_positions. This argument provides mapping of feature names to feature positions in the dataframe which the model receives. Feature Positions are required for Explainability capabilities. In the console, to explain a data point, go to Model Overview -> Investigation Toolbox -> Data points and click Explain on a specific data point. For example:
Response
Create Monitor
Creates a new monitor.
The documentation for each monitor contains an example of creating that monitor using the REST API.
Request Parameters
MonitorType options: model_activity
, missing_values
, data_drift
, prediction_drift
, values_range
, new_values
, model_staleness
, performance_degradation
, metric_change
, custom_metric
Response
Delete Monitor
Deletes a monitor.
Path Parameters
Get Existing Environments
Return the defined environments.
Request Parameters
No parameters required for the request.
Response
Return "environments" list of objects with the following fields:
Get Model Tags
Returns all of the tags that were defined for a model.
Path Parameters
Response
Delete Model Tag
Deletes a single model tag.
Path Parameters
Create Model Tags
Creates or updates model tags.
Path Parameters
Request Parameters
Notes
Each model is restricted to 10 tags
Tag keys are restricted to 15 characters, and may only contain letters, numbers, spaces, '-' and '_'.
Tag values are restricted to 100 characters, and may only contain letters, numbers and special characters
If a tag key already exists, you can use this enpoint to update its value
Update Model Owner
Update the owner of an existing model.
Path Parameters
Request Parameters
Response
Update Feature Positions
Update feature positions for an existing model version. Feature Positions are required for Explainability capabilities. In the console, to explain a datapoint, go to Model Overview -> Investigation Toolbox -> Datapoints and click Explain on a specific datapoint.
Path Parameters
Request Parameters
Notes
Features should be identical to the model schema.
Update Feature Importance
Update feature importance for an existing model version.
Path Parameters
Request Parameters
Notes
Mapping of features from the scema and their importance is expected. Partial mappings are also supported.
When using the API call, all previous reported feature importance values will be overridden.
Last updated