Access Ledger Analytics, our state-of-the-art insurance data science models and data structures, via convenient API endpoints.

API keys

To access our API endpoints, first email [email protected]. On receipt of your email, we will send you an invite link to sign up to our platform where you can create and manage API keys.

Base endpoint

The base URL for all these endpoints is:

Base endpoint
https://ldgr.app/analytics

Authentication and access

Triangles and models are only accessible by users within the same organization. Users cannot access objects from other organizations, but all users within the same organization can access the same objects.

Companion Python package

For ease of use, we have a companion LedgerAnalytics Python package and associated documentation. The latter contains more technical details about modeling configuration and rationale.

Triangle endpoints

List all triangles

NameMethodDescription
/triangleGETList all triangles a user can access within their organization. Returns all relevant data for triangles, including name and internal ids.

Create or update a triangle

NameMethodDescription
/trianglePOSTCreate a named triangle in the database.
ParameterTypeRequiredDescription
triangle_namestringyesThe name of the triangle.
triangle_dataJSONyesThe triangle data. See our Python package Bermuda for more information about the correct dictionary/JSON format. The easiest option is to generate the JSON by saving the results of the .to_dict() method called on a Bermuda Triangle instance.
overwritebooleannoIf a triangle already exists in the database, you must force it’s re-creation by setting overwrite=true

Delete a triangle

NameMethodDescription
/triangle/{id}DELETEDelete a triangle in the database using the triangle id.

Model endpoints

The LedgerAnalytics API has a number of loss development, tail development, and loss ratio forecasting models available for use. Each model type has it’s own endpoint for basic CRUD operations. The specific endpoints are:

  • /development-model
  • /tail-model
  • /forecast-model

For the different types of endpoints below, substitute {model} for any of the four specific endpoints above.

Create or update a model

This endpoint fits the specific model to a triangle of data already in the database.

NameMethodDescription
/{model}POSTCreate a named triangle in the database.
ParameterTypeRequiredDescription
triangle_namestringyesThe name of a triangle present in the database.
model_namestringyesThe user’s chosen name of the model.
model_typestringyesThe specific type of model. For full information about model types, see the Model types section.
model_configJSONyesConfiguration parameters for the model. See the User Guide sections for our companion Python LedgerAnalytics package for a full description of each model’s technical explanation and configuration parameters.
overwritebooleannoSet overwrite=true to overwrite a previously fit model. Defaults to false to avoid unintended overwrites.

List fitted models

NameMethodDescription
/{model}GETList all created models, returning key information such as model names and internal ids.

Predict from a model

Take a fitted model and produce predictions on a new triangle.

NameMethodDescription
/{model}/{id}/predictPOSTMakes predictions using a fitted model and stores the triangle of predictions in the database.
ParameterTypeRequiredDescription
triangle_namestringyesThe name of the triangle to predict from. Many of insurance development and forecast models are auto-regressive and require an initial triangle to start predicting from.
predict_configJSONyesConfiguration parameters for the model. See the User Guide sections for our companion Python LedgerAnalytics package for a full description of each model’s technical explanation and predict configuration parameters.

Delete a model

NameMethodDescription
/{model}/{id}DELETEDelete a fitted model.

Terminate a running model

Our models run on remote cloud compute infrastructure. This endpoint allows users to terminate the remote process during model fit time.

NameMethodDescription
/{model}/{id}/terminatePOSTTerminate a remotely running model.

Model types

ModelTypesReference
development-model- ChainLadder
- TraditionalChainLadder
- MeyersCRC
- GMCL
- ManualATA
See the detailed documentation.
tail-model- GeneralizedBondy
- Sherman
- ClassicalPowerTransform
See the detailed documentation
forecast-model- AR1
- SSM
- TraditionalGCC
See the detailed documentation.