API Documentation
Screen people and companies against official sanctions, trade-restriction and politically-exposed-person registries, from your own systems.
Every result is a potential match that requires human review. RiskMotor does not decide that anyone is sanctioned. A name similarity is not proof of identity, and PEP status is not a sanction and implies no wrongdoing. Your compliance decisions remain yours.
Quickstart
One call. Replace the key with your own: your account administrator creates keys in the app, under Settings → API keys.
curl -X POST https://api.riskmotor.com/v1/screenings \
-H "Authorization: Bearer rm_live_your_key_here" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-1042" \
-d '{"name": "Boutique La Maison", "type": "COMPANY"}'
The reply tells you three things before any detail: whether a human needs to look, how serious the worst finding is, and how many distinct designations were found.
{
"screening_id": "e3fbcf1f-fc63-4fdc-9325-b5b84cfee917",
"overall_status": "REVIEW_REQUIRED",
"highest_severity": "CRITICAL",
"unique_listing_count": 1,
"source_confirmation_count": 2,
"matches": [ /* … */ ]
}
NO_MATCH with an empty matches array is a
successful screening, not an error.
Authentication
Send your key as a bearer token. X-API-Key works too, if your
HTTP layer reserves Authorization.
Authorization: Bearer rm_live_a1b2c3d4_…
| Prefix | Meaning |
|---|---|
rm_live_ | Metered and billed. Every successful screening is one run on your invoice. |
rm_test_ | Identical engine, identical data, never billed. Use it to build against. |
Server-side only. This API sends no CORS headers, so a browser cannot call it — deliberately. A key in a web page is a key in every visitor's developer tools. Keep it on your server.
We store only a hash of your key, so it cannot be shown to you again after it is created. If one leaks, revoke it in Settings → API keys (or ask us to) and create another; there is no way to rotate the secret in place.
Reading a result
Two numbers in every response look similar and mean very different things. Getting them the wrong way round is the most common mistake made against this API, so it is worth one minute now.
| Concept | What it is |
|---|---|
| Entity | The real-world person or company we believe your subject may be. One entry in matches. |
| Unique listing | One designation by one authority — a UN listing, an OFAC SDN entry, a BIS Entity List entry. Counted by unique_listing_count. This is what a compliance decision is about. |
| Source confirmation | One official file carrying that designation. Counted by source_confirmation_count. |
The U.S. Treasury publishes the same SDN entry in two places: the SDN list itself, and the Consolidated Screening List. So a single designation routinely arrives with two confirmations:
"unique_listings": [{
"listing_key": "OFAC_SDN:424",
"authority": "US_TREASURY_OFAC",
"list": "OFAC Specially Designated Nationals (SDN) List",
"severity": "CRITICAL",
"restriction_class": "FINANCIAL_BLOCKING",
"programs": ["CUBA"],
"source_confirmations": [
{ "source": "OFAC_SDN", "source_record_id": "424", "role": "PRIMARY" },
{ "source": "US_CSL", "source_record_id": "SDN:424", "role": "CONFIRMATION" }
]
}]
That is one sanction, verified through two official files — not
two sanctions. Report it as “1 OFAC SDN designation · confirmed in
2 official sources”. A second confirmation means better corroboration, never
more restrictions, and source_confirmation_count must never be
shown as a count of findings.
What a restriction actually does
Not every listing is a sanction. restriction_class says what
the designation does, separately from how serious it is:
| Value | Meaning |
|---|---|
FINANCIAL_BLOCKING | Assets blocked — an OFAC-style sanction. |
VISA_OR_ENTRY_RESTRICTION | U.S. entry restricted. Not an asset freeze. |
TRADE_RESTRICTION | Export or trade controls, e.g. the BIS Entity List. |
PROCUREMENT_INTEGRITY / DEBARMENT | Ineligible for bank-financed contracts. Not a sanction. |
Political exposure is separate
A PEP hit arrives on match.pep and never contributes to
unique_listing_count or highest_severity. A
PEP-only result is REVIEW_REQUIRED with
highest_severity: null — by design, because holding office
carries no severity and implies no wrongdoing.
Confidence is not severity
These answer different questions, and a UI that blends them will alarm people wrongly.
| Field | Question it answers |
|---|---|
match_confidence (0–1) | Is this the same real-world entity? |
severity on a listing | How serious is that designation? |
A match_confidence of 0.6 against a
CRITICAL listing is a possible match
against a serious designation. It is not a confirmed sanction, and must
never be rendered as one.
match_evidence shows the working per field — name, identifier,
date of birth, country — so a reviewer can see why rather than trust
a number:
"match_evidence": [
{ "field": "name", "result": "EXACT", "detail": "\"BOUTIQUE LA MAISON\" (similarity 1.00)" },
{ "field": "identifier", "result": "NOT_PROVIDED", "detail": "no identifier supplied in query" }
]
Supplying identifier_value, dob or
country raises confidence when they agree. An exact identifier
match is never downgraded because a name is spelled differently.
Screen a subject
The billable call. Every request that returns 200 is one
metered run.
| Field | Type | Notes |
|---|---|---|
name | string | Required. Min 2 characters. Accents and original scripts are preserved. |
type | string | PERSON, COMPANY or UNKNOWN (default). |
country | string | ISO 3166-1 alpha-2. Raises confidence; never excludes a match. |
dob | string | YYYY-MM-DD or a year. |
identifier_type | string | e.g. PASSPORT, NATIONAL_ID, TAX_ID. |
identifier_value | string | Strongest identity corroboration available. |
sources | string[] | Codes from /v1/sources. Omit to screen everything — recommended. |
threshold | integer | 30–100, default 65. Lower finds more and reviews more. |
A narrowed sources list is used exactly as sent, so anything
missing from it is silently not screened. Omitting the field searches every
dataset, which is what you want unless you have a specific reason. An empty
array is rejected rather than treated as “all”.
List and retrieve
Paging is keyset, not offset: pass the last id you saw as
starting_after and rows cannot shift under you between pages.
has_more tells you when to stop.
Retrieving a screening replays the stored snapshot — the answer exactly as it was given at the time, never recomputed against today's data. That is what makes it usable as an audit record a year later.
Only screenings made through the API by your account are listed. Runs your colleagues made in the web app are not, and LIVE and TEST are kept separate.
Scheduled monitoring checks are excluded from the
list by default too — monitoring 500 subjects means 500 runs a day, which
would bury the calls you made yourself. Add ?include=monitoring
to see them. Either way, an individual monitoring run is always retrievable
by its id, which is what the alert payload gives you.
Batches
Screen many subjects in one job. A batch row produces an ordinary screening — same engine, same metering, same audit record — so a name screened in a batch is indistinguishable from one screened on its own. Up to 2,000 rows per batch.
curl -X POST https://api.riskmotor.com/v1/batches \
-H "Authorization: Bearer rm_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"rows": [
{"row_no": 1, "name": "Boutique La Maison", "type": "COMPANY"},
{"row_no": 2, "name": "Juan Pérez García", "type": "PERSON", "country": "GT"}
]
}'
This creates a draft. Nothing is screened and nothing is billed yet — the draft exists so you can check the quote and the row count first.
{
"batch": { "id": "a4f7abdb-…", "status": "DRAFT", "rows_skipped": 0 },
"quote": { "runs": 2, "priced": true, "amount": 2.00, "currency": "USD" },
"row_count": 2
}
"priced": false does not mean free. It
means no rate is configured on your account, so we quote the run count and
say nothing about money rather than print a figure that is not a commercial
commitment. Never render it as $0.00.
Your row_no is echoed back on every result, so findings
reconcile against your own records. Rows with a name under two characters are
dropped before queueing and counted in rows_skipped — a row that
cannot be screened must never reach the queue, where it would fail and look
like an outage.
Confirm to start it
This freezes the row count and starts the queue. This is where the work becomes chargeable, and the number frozen here is the number on the invoice — it is never recomputed.
The whole batch is checked against your remaining daily allowance and refused outright if it will not fit, naming both numbers. Running half a batch and failing the rest is the worst of the available answers, so it is not one of them. Split it, or ask us to raise the account's limit.
Follow it
Poll for progress. There is no webhook yet, and no connection is held open — the queue drains on our side, so a 2,000-row job completes whether or not you stay connected.
{
"batch": { "status": "RUNNING", "confirmed_row_count": 500 },
"progress": {
"total": 500, "done": 412, "pending": 88, "failed": 0,
"restrictions": 3, "pep_only": 11, "no_match": 398
}
}
A batch ends COMPLETED, or PARTIAL if some rows
could not be screened — read the rows to see which.
Read the results
Every row with its outcome and the screening it produced. Fetch the full
consolidated result from /v1/screenings/{screening_request_id}
when you need the matches themselves.
{ "row_no": 1, "query_name": "Boutique La Maison", "status": "DONE",
"outcome": "RESTRICTIONS", "screening_request_id": "e3fbcf1f-…" }
Getting every result in bulk
Fetching 2,000 screenings one id at a time is 2,000 requests. Add
include=result and each row carries its whole result inline —
the same object POST /v1/screenings returns, so you have one
shape to parse either way.
Full results are large, so this mode is paged. offset is safe
here and nowhere else in this API: a batch's row set is fixed once created,
so nothing shifts under you between pages. Read has_more to know
when to stop.
Withdraws everything not yet started. Rows already screened stay done and stay billed — that work was really performed.
Adverse media on batch rows
Choose which rows also get an adverse media check — row by row, not all
or nothing. Set "adverse_media": true on those rows when you
create the batch; the quote carries a separate adverse line
(rows, unit price, amount — priced: false means no rate is
configured, not free). Each check is its own run, billed on its own statement
line only if it is delivered, and it never changes the row's
outcome.
{ "rows": [
{ "row_no": 2, "name": "Juan Pérez García", "country": "GT", "adverse_media": true },
{ "row_no": 3, "name": "Acme Exportadora S.A." }
] }
At confirm the selected rows are checked against this month's adverse
media capacity whole: if they do not fit, the batch is refused
with 409 adverse_media_capacity and max_adverse_runs,
the number that would — mark fewer rows and resubmit. Each row then reports
adverse_media (null when not requested) with its
status and finding_count; read the findings with
GET /v1/screenings/{id}/adverse-media.
Add checks after reading the results — usually for the rows that need
review — or retry rows whose check failed. Send the row ids
with "confirm": false for the quote (nothing is reserved), then
the same ids with "confirm": true. Rows already checked or not
screened are skipped and counted, never charged.
Monitoring
A screening is true on the day it runs. Monitoring keeps it true: enrol a subject and we re-screen it daily, telling you when something new appears against it.
Each check is a screening and is billed as one. Enrolling a subject is a standing daily commitment, not a one-off cost — 100 subjects is 100 screenings a day. That is why monitoring is not available on a TEST key, and why each account has a cap on how many subjects it may monitor at once.
curl -X POST https://api.riskmotor.com/v1/monitored-subjects \
-H "Authorization: Bearer rm_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"name": "Example Trading Company", "type": "COMPANY", "external_ref": "CASE-4471"}'
Enrolment screens immediately and returns that result. You find out at once whether the subject is already listed, and that first result becomes the baseline — which is why an existing designation never arrives later as an alert. You were told when you enrolled.
{
"monitored_subject": { "id": "2a4127c5-…", "status": "ACTIVE", "external_ref": "CASE-4471" },
"baseline": { "overall_status": "NO_MATCH", "unique_listing_count": 0, … }
}
external_ref is your own case or client number. It is echoed
on every alert, so a finding lands in your system without a lookup table on
your side.
What raises an alert
Each check compares the listings found against the previous check. Only what is new alerts:
| Change | Alert? |
|---|---|
| A new designation against the subject | Yes — this is the product. |
| The subject newly matches an older listing (an alias added upstream, a spelling corrected) | Yes — as urgent as a new one. |
| A listing already reported at the last check | No. You have it. |
| A listing disappearing | No — a delisting is not an alert today. |
Alerts arrive as the monitoring.alert webhook, carrying
only the new listings — sending the whole result would bury
the thing that changed among findings you reviewed weeks ago.
{
"type": "monitoring.alert",
"data": {
"external_ref": "CASE-4471",
"name": "Example Trading Company",
"screening_id": "36aef59b-…",
"highest_severity": "CRITICAL",
"new_listings": [{
"listing_key": "OFAC_SDN:424", "authority": "US_TREASURY_OFAC",
"severity": "CRITICAL", "restriction_class": "FINANCIAL_BLOCKING",
"match_confidence": 0.9
}]
}
}
Fetch the full consolidated result from
/v1/screenings/{screening_id}.
Pause, relabel, remove
Only status and external_ref can change. Pausing
stops the daily checks, and the daily charge with them.
The screening input is frozen on purpose. A subject whose name changed is a different subject — rewriting it in place would rebase the alert history onto someone else. Enrol a new one and remove the old.
Checks stop and the charge stops. The screenings already performed stay in your history — they were run and billed.
Adverse media
Optional add-on: whether the press reports anything adverse about the
subject — negative news in the last 180 days, or a major past event — with
evidence an auditor can open. It is a separate, asynchronous job:
the screening answers immediately as usual; the adverse media run takes a
few minutes and is read afterwards. Every finding is something a named
publisher reported — never a RiskMotor conclusion — and it never
changes the screening's overall_status or
highest_severity.
Billed per delivered run, on top of the screening. A run
that could not be completed (PROVIDER_FAILURE) is not billed,
and is never reported as a clean result. The account must have adverse
media enabled; ask us.
Send "adverse_media": true with the usual body. The response
gains adverse_media: {run_id, status: "QUEUED"} — or, when the
request was refused, adverse_media: {error: {type, code, message}}
beside a perfectly good screening result.
Requests a run on an existing screening. Idempotent while a run is live
(created: false, nothing new billed); after a failure, send
{"force": true} to start a new, billable run.
Poll stage while it is in progress (a few minutes). Then read
findings[]: each carries subject_match ("is this
the same person or company?") separately from
severity ("if so, how serious?"), the reported status
(REPORTED_INVESTIGATION, REPORTED_CHARGE,
REPORTED_CONVICTION, REPORTED_ACQUITTAL…), bilingual
headline and summary, the publisher citations and any
exonerating_evidence. Article text is never returned: open the
publisher. COMPLETED with finding_count: 0 means
nothing adverse was found in the sources searched — not that the subject
is clean.
Registro de Detenciones Guatemala searches
Guatemala only: the Registro de Detenciones Guatemala (the Organismo Judicial's
Registro Central de Detenidos), searched by a person's name in parts. Each answer
lists the registrations Registro de Detenciones Guatemala published for that text — document, date of
arrest, detention centre, who ordered it, the court — exactly as Registro de Detenciones Guatemala wrote
them. A separate, asynchronous check: it never changes a screening's
overall_status.
Show the caveats with every result. Each answered search
carries caveats, always all four: Registro de Detenciones Guatemala matches
text, not people ("JUAN" also finds "JUANA"; a registration may be
someone else with the same name); no registrations is not a clean
record; a registration is a detention on its date, not today's
situation; and it records detentions, not convictions.
Billed when Registro de Detenciones Guatemala answers — records found or not. A search
Registro de Detenciones Guatemala could not answer ends FAILED and is not billed; nor is one
refused or cancelled. The account must have Registro de Detenciones Guatemala searches enabled; ask us. Scopes:
recede:write to request, recede:read to read.
Send the parts you know for certain — first_name and
first_last_name are required, second_name and
second_last_name optional — plus an optional
customer_reference and screening_id. Every part you
send must appear in the registration, so leave out what you are unsure of.
We never split a full name for you. Send an Idempotency-Key.
Answers 202 with queue.position and
queue.estimated_minutes.
curl https://api.riskmotor.com/v1/recede-searches \ -H "Authorization: Bearer $RISKMOTOR_KEY" \ -H "Idempotency-Key: exp-77-recede" \ -d '{"first_name":"ROXANA","first_last_name":"BALDETTI","customer_reference":"exp-77"}'
Or ask beside a screening: POST /v1/screenings with
"recede": {"first_name": …, "first_last_name": …}. The name is
checked before the screening runs; the response gains
recede: {search_id, status: "QUEUED"}, or an error
beside a good screening result. Batch rows take "recede": true
with recede_name.
Once COMPLETED: outcome (RECORDS_FOUND
or NO_RECORDS), rows[] in Registro de Detenciones Guatemala order with values
verbatim (placeholders such as "No Porta" included;
arrest_date is a calendar date, arrest_date_raw the
text Registro de Detenciones Guatemala wrote), caveats and notice. Lists
(GET /v1/recede-searches, optionally
?screening_id=) and the recede_search.completed
webhook carry counts only — never the registrations.
POST /v1/recede-searches/{id}/cancel withdraws a search still
QUEUED.
Sandbox. TEST keys never reach Registro de Detenciones Guatemala. First name
PRUEBA with first surname REGISTROS (two fabricated
registrations), SINREGISTROS (no records),
NODISPONIBLE or ILEGIBLE (ends FAILED).
Tax compliance (SAT)
Guatemala only: whether a taxpayer is up to date with SAT
(Superintendencia de Administración Tributaria), looked up by NIT through
SAT's Verificador Integrado. SAT answers whether the taxpayer
presents incumplimientos and which: RTU data pending update,
omitted returns (year, period, tax, form), books pending authorization — and
any category SAT adds later. SAT's own report comes as a PDF. A separate,
asynchronous check: it never changes a screening's
overall_status.
Render the categories SAT sends, including ones you do not
know. The list is open: a category SAT adds arrives as
type: "OTHER" with SAT's own label and
text. Show label for any type you do not
recognise — dropping it would turn "presents incumplimientos" into a list
with nothing in it. has_incumplimientos is SAT's verdict at
sat_checked_at, relayed unchanged.
Billed when SAT answers — up to date, with
incumplimientos, or "NIT not registered". A lookup SAT could not answer ends
FAILED and is not billed; nor is one refused or cancelled.
Slow by nature: SAT answers one lookup every few minutes
for every customer together, so expect minutes to hours. The account must
have tax compliance enabled; ask us. Scopes:
tax_compliance:write to request, tax_compliance:read
to read.
Send the nit (with or without the hyphen; a wrong check digit
is a 400 invalid_nit that costs nothing) and an optional
customer_reference. Send an Idempotency-Key.
Answers 202 with queue.position and
queue.estimated_hours.
curl https://api.riskmotor.com/v1/tax-compliance-lookups \ -H "Authorization: Bearer $RISKMOTOR_KEY" \ -H "Idempotency-Key: prov-77-sat" \ -d '{"nit":"2000002-2","customer_reference":"prov-77"}'
Batch rows take "tax_compliance": true with the row's
nit (the same column RTU reads); the quote adds a
tax_compliance line with eta_hours.
Once COMPLETED: outcome (SUCCESS or
NIT_NOT_FOUND), has_incumplimientos,
verification (the taxpayer, sat_checked_at and
incumplimientos[], SAT's wording verbatim) and
document.pdf_url — a bearer link: whoever holds it can open
SAT's report. Never log it; POST
/v1/tax-compliance-lookups/{id}/revoke-links issues a new one if it
leaks. Lists (GET /v1/tax-compliance-lookups) carry the verdict,
the taxpayer's name and each category's type and count — never the detail or
the link. The tax_compliance_lookup.completed webhook carries the
full lookup. POST /v1/tax-compliance-lookups/{id}/cancel
withdraws a lookup still QUEUED.
Sandbox. TEST keys never reach SAT. 20000014
up to date, 20000022 with incumplimientos (every category,
OTHER included), 20000030 NIT not registered,
20000049 ends FAILED; any other valid NIT answers
NIT not registered. Sandbox answers carry no PDF.
Webhooks
Rather than polling a long batch, have us tell you when it finishes. Ask us to configure an endpoint — we set them up on request, because each carries a signing secret we hand over out of band.
Every delivery is a POST of the event JSON with three
headers:
RiskMotor-Signature: t=1790056800,v1=5f3c…
RiskMotor-Event-Type: batch.completed
RiskMotor-Delivery-Id: 8f21c0de-…
{
"id": "8f21c0de-…",
"type": "batch.completed",
"created": "2026-09-21T22:41:07Z",
"data": {
"batch_id": "f06eddf7-…",
"status": "COMPLETED",
"confirmed_row_count": 500,
"progress": { "total": 500, "done": 500, "restrictions": 3, "pep_only": 11, "no_match": 486 }
}
}
batch.completed fires on any terminal state — read
data.status for COMPLETED, PARTIAL or
CANCELLED.
Verify the signature
HMAC-SHA256 over <timestamp>.<raw body> with your
signing secret. Use the raw body — a re-serialised copy will
not match.
// Node
const [ts, sig] = header.split(",").map((p) => p.split("=")[1]);
const expected = crypto.createHmac("sha256", secret)
.update(`${ts}.${rawBody}`).digest("hex");
if (!crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(sig))) return 401;
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return 401; // too old
Compare in constant time, and reject a timestamp more than five minutes old. The timestamp is signed with the body, so it cannot be swapped for a fresh one — but only if you actually check it.
Answer quickly, and deduplicate
| Rule | Why |
|---|---|
| Acknowledge within 10 seconds | We time out after that and treat it as a failure. Return 2xx first, do your work afterwards. |
Deduplicate on id |
If your 200 is lost on the way back we retry, and you will see the same event again. The id is stable across retries. |
| Expect retries | Roughly 1, 5 and 25 minutes, then 2, 6 and 12 hours — about a day — then we give up. |
Anything that is not a 2xx is retried, including a 404: a receiver answering 404 today is usually a deploy in progress, not a decision.
| Event | Fires when |
|---|---|
batch.completed | A batch reaches a terminal state. Read data.status. |
monitoring.alert | A monitored subject has something new against it. |
adverse_media.completed | An adverse media run reached a terminal state (read data.status; a failure is delivered too). |
adverse_media.alert | A monitored subject has new reported findings. |
recede_search.completed | A Registro de Detenciones Guatemala search was answered (COMPLETED) or could not be (FAILED). Counts only; fetch the search for its registrations. |
tax_compliance_lookup.completed | A tax compliance lookup was answered (COMPLETED) or could not be (FAILED). The full lookup, PDF link included. |
Datasets
What every screening runs against, and how current it is. This is the endpoint to cite when an auditor asks.
{
"code": "OFAC_SDN",
"name": "OFAC Specially Designated Nationals (SDN) List",
"record_class": "RESTRICTION",
"last_successful_sync_at": "2026-09-18T16:05:23Z",
"last_verified_at": "2026-09-21T12:05:11Z",
"is_overdue": false
}
Those two timestamps are not the same thing, and conflating them makes a healthy dataset look neglected:
last_successful_sync_at is when the dataset last
changed. last_verified_at is when we last
confirmed we hold the authority's current file. A list the
authority simply has not republished for three weeks is current, not stale —
last_verified_at is the field that says so.
Idempotency
Send an Idempotency-Key header on every screening — any unique
string up to 255 characters; your own order or case id works well.
Idempotency-Key: order-1042
Your HTTP client cannot tell a request that never arrived from a response that was lost coming back, so retrying after a timeout is the right thing to do. Without this header, that retry is a second billable screening.
For 24 hours, a repeat with the same key and the same body replays the
stored response — byte for byte, same screening_id — and carries
Idempotent-Replay: true. A replay is not metered.
| Situation | Response |
|---|---|
| Same key, same body | 200 + Idempotent-Replay: true |
| Same key, different body | 422 idempotency_key_reuse |
| First request still running | 409 idempotency_in_progress + Retry-After |
A reused key with a changed body is refused rather than replayed. The alternative would be to answer about the previous subject — telling you that you screened someone you never screened. Use a new key per subject.
Limits
There are two, they mean different things, and both are reported in headers so you can pace yourself rather than discovering them by hitting them.
| Limit | Counts | Default |
|---|---|---|
Per minuterate_limit_exceeded |
Every request, reads included. | 120 |
Per daydaily_quota_exceeded |
Screenings actually performed. This is what you pay for. | 500 |
# on every response
X-RateLimit-Minute-Limit: 120
X-RateLimit-Minute-Remaining: 118
# on a screening
X-RateLimit-Limit: 500
X-RateLimit-Remaining: 499
X-RateLimit-Reset: 1790056800
Both answer 429, and the code tells you which —
they call for different reactions. rate_limit_exceeded means
slow down and retry after Retry-After seconds;
daily_quota_exceeded means come back when the allowance
resets.
Neither is billed: both are checked before any screening runs. Both are set by your contract and shared across all your LIVE keys — issuing a second key does not buy a second allowance.
A request refused by the per-minute limit still counts against
that minute. Retrying immediately keeps your window full and keeps
you refused — back off for the Retry-After interval instead of
looping.
The day is yours, not UTC. The daily allowance resets at midnight in your account's billing timezone, so it lines up with your own records and with your invoice rather than cutting over in the middle of your afternoon.
Errors
Every error has the same shape. Branch on type and
code — those are stable. message is prose and may be
reworded.
{
"error": {
"type": "invalid_request_error",
"code": "invalid_threshold",
"message": "`threshold` must be a number between 30 and 100.",
"param": "threshold",
"request_id": "0b5c1d2e-3f4a-5b6c-7d8e-9f0a1b2c3d4e"
}
}
| Status | Type | When |
|---|---|---|
400 | invalid_request_error | Malformed body or field. param names the culprit. |
401 | authentication_error | Key missing, malformed, unknown, revoked or expired — all identical by design. |
403 | permission_error | Key lacks the scope, or the account is suspended. |
404 | not_found_error | No such screening on your account. |
409 | conflict_error | A request with that idempotency key is still running. |
422 | invalid_request_error | Idempotency key reused for a different request. |
429 | rate_limit_error | rate_limit_exceeded (per minute) or daily_quota_exceeded (per day). |
500/502 | api_error | Our fault. Quote the request_id. |
Every response — success or failure — carries X-Request-Id.
Quote it and we can find the exact request in our logs. That log records the
method, route, status, timing, your key's prefix and the calling IP address
for 90 days — never the request body, so the people you
screen are not in it. Your account administrators can look a request up
themselves in Settings → API keys.
Machine-readable spec
The full OpenAPI 3.1 description is at riskmotor.com/openapi.yaml. Generate a client from it — it is the source of truth for this page.
There is also a ready-made
Postman collection, generated
from that same spec. Import it, paste your key into the
apiKey variable once, and every endpoint is runnable — the
billable POST already carries an Idempotency-Key.