- List assessments GET
- Assess an event POST
- Retrieve an assessment GET
- Report an assessment's outcome POST
- List allow and block list entries GET
- Add an allow or block list entry POST
- Retrieve a list entry GET
- Remove a list entry DELETE
- Forget a user DELETE
- Retrieve the risk settings GET
- Update the risk settings PATCH
- Retrieve the calibration GET
- List rules GET
- Create a rule POST
- Retrieve a rule GET
- Update a rule PATCH
- Delete a rule DELETE
- Check an email address POST
- Check an IP address POST
- Check a phone number POST
- Classify content POST
- Check a rate limit POST
- List rate limit buckets GET
- Create a rate limit bucket POST
- Retrieve a rate limit bucket GET
- Update a rate limit bucket PATCH
- Delete a rate limit bucket DELETE
Retrieve the calibration
How often each reason and rule was right over the last 90 days, by the outcomes you reported with feedback, and the reason weights that supports. Nothing changes until you apply them with reason_weights in the settings.
bearerAuthAuthorizationBearer <token>A secret API key from the dashboard: coss_live_… for production environments, coss_test_… for sandbox environments.
Coss-Version?"2026-10-10"The API version (a date) to use for this request. Defaults to your organization's version, pinned to the latest one when it first used the API and upgraded from the dashboard. The SDK always sends the version it was built for.
"2026-10-10"The calibration.
application/json- response
- response
- …
Feedback against the reasons and rules that fired, over the last 90 days. Feedback you give mostly on reviews and blocks over-represents those: read precision as a guide, not a measurement.
object*"risk_calibration""risk_calibration"window_days*integerHow many days back it looks.
assessments*integerAssessments in the window.
labeled*integerOf those, with feedback.
reasons*array<>How each reason did against your feedback.
rules*array<>How each rule did against your feedback.
import { Coss } from "coss";const coss = new Coss({ apiKey: process.env.COSS_API_KEY, baseUrl: "https://api.coss.com",});const { data, error } = await coss.risk.calibration();{ "object": "risk_calibration", "window_days": 90, "assessments": 1840, "labeled": 212, "reasons": [ { "code": "ip.hosting_provider", "fired": 96, "fraud": 4, "legitimate": 38, "precision": 0.095, "default_weight": 0.25, "weight": 0.25, "suggested_weight": 0.16 } ], "rules": [ { "rule": "rskrule_01k7c8m4q2f3e9v6t5r1n0p8yz", "name": "Disposable email from a data center", "matched": 31, "fraud": 12, "legitimate": 1, "precision": 0.923 } ]}