Score Module

get
Compute Policy Scores

https://api.tint.ai/v2/policy/:policyId/scores
Calculate scores for the given policy.
Request
Response
Request
Path Parameters
policyId
optional
string
Calculate the scores for this policy ID
Response
200: OK
List of scores calculated for the given policy.
[
{
"id": "080949ea-0de3-4690-8cb4-6f558118d7e5",
"value": 43,
"status": "DONE",
"prediction_type": "PHYSICAL_DAMAGE",
"reject_threshold": 75,
"reject": false,
"created_at": "2019-08-11T12:42:51.00Z",
"updated_at": "2019-08-11T12:42:51.00Z"
},
{
"id": "b0af7561-c140-4892-9185-96d4d6cdb51f",
"value": 1,
"status": "DONE",
"prediction_type": "THEFT",
"reject_threshold": 50,
"reject": false,
"created_at": "2019-08-11T12:42:51.00Z",
"updated_at": "2019-08-11T12:42:51.00Z"
}
]

get
Get Policy Score

https://api.tint.ai/v2/policy/:policyId/score/:scoreId
Retrieve the details of a calculated score.
Request
Response
Request
Path Parameters
policyId
optional
string
Policy ID of the retrieved score
scoreId
optional
string
Score ID to retrieve
Response
200: OK
Returns the Score object corresponding to the given ID.
{
"id": "080949ea-0de3-4690-8cb4-6f558118d7e5",
"value": 43,
"status": "DONE",
"prediction_type": "PHYSICAL_DAMAGE",
"reject_threshold": 75,
"reject": false,
"created_at": "2019-08-11T12:42:51.00Z",
"updated_at": "2019-08-11T12:42:51.00Z"
}