- Check an email address POST
- Check an IP address POST
- Check a rate limit POST
- Classify content POST
- Assess an event POST
- Report an assessment's outcome POST
- Create a rate limit bucket POST
- Add an allow or block list entry POST
- Create a rule POST
- Delete a rate limit bucket DELETE
- Remove a list entry DELETE
- Delete a rule DELETE
- Forget a user DELETE
- Retrieve an assessment GET
- Retrieve the calibration GET
- Retrieve a rate limit bucket GET
- Retrieve a list entry GET
- Retrieve a rule GET
- Retrieve the risk settings GET
- List assessments GET
- List rate limit buckets GET
- List allow and block list entries GET
- List rules GET
- Update a rate limit bucket PATCH
- Update a rule PATCH
- Update the risk settings PATCH
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*integerassessments*integerAssessments in the window.
labeled*integerOf those, with feedback.
reasons*array<>rules*array<>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 } ]}