calibrate
POST /v1/calibrate sends the outcomes of records you scored, so the score improves over time.
Up to 10 calibrations per score per day. See Calibration.
Sends the outcomes of records you scored, matched by score_id, and updates the score with them. Returns 202 with a job_id; score calls after the job completes use the updated score. One calibration at a time per score. Rows whose score_id wasn't sent to this score are skipped; sending an outcome again replaces it. A failed request records none of its outcomes.
Request body
application/json or multipart/form-data
| Field | Type | Description |
|---|---|---|
model_idrequired | string | The score these outcomes are for. |
datarequired | array of object or string | The outcomes: a JSON array of rows, or CSV text with a header row. A |
| Field | Type | Description |
|---|---|---|
score_idrequired | string or number | The |
is_badrequired | boolean or number or string |
|
| Field | Type | Description |
|---|---|---|
model_idrequired | string | The score these outcomes are for. |
filerequired | string | CSV of |
Responses
The calibration is running.
| Field | Type | Description |
|---|---|---|
job_id | string | The calibration's job, |
matched | integer | Rows that matched a call to this score. |
unmatched | integer | Rows skipped. |
request_id | string |
|
| Status | Type and when |
|---|---|
400 |
|
401 |
|
404 |
|
409 |
|
413 |
|
429 |
|
Every error has the same shape; see Errors.
Examples
curl -X POST 'https://api.finic.ai/v1/calibrate' \ -H "Authorization: Bearer $FINIC_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "model_id": "scm_01M4XRC000RT2GZSKYPD8J86G9", "data": [ { "score_id": "pay_88213", "is_bad": true }, { "score_id": "pay_88214", "is_bad": false } ]}'{ "job_id": "job_01M4YY4AZRJ8NR5QFRW628CJ5G", "matched": 2, "unmatched": 0, "request_id": "req_01M4YPJNK0SZGEQS0A76EEND4N"}