@rootplatform/node-sdk
v0.2.0
Published
Root Platform Node SDK
Downloads
14
Keywords
Readme
The Root Platform SDK
WARNING This is a beta release and is not production ready.
Root enables flexible, modern digital insurance products to come to life in record time. This is achieved by abstracting & automating most of the complexity of insurance, exposing the rest in a flexible no-code/low-code environment.
The Root Platform SDK makes it simple to use the Root API.
Usage
- To install:
npm i @rootplatform/node-sdk
- To import:
import * as root from "@rootplatform/node-sdk";
- The following environment variables need to be properly set:
- ROOT_API_KEY=sandbox_xxx
- ROOT_BASE_URL=https://sandbox.rootplatform.com/v1/insurance
- Example:
const policy = await root.getPolicyById({ policyId });