Skip to content

InsightsTutorial

Getting started with the Rifraux API

From a sandbox key to your first scored transaction and AML screen, with the response fields that matter.

Rifraux team · · 5 min read

This walkthrough takes you from a new account to your first fraud decision and sanctions screen. You need a terminal and five minutes.

1. Create an account and copy your test key

Sign up at rifraux.com/signup. Your first key starts with rfx_test_ and is shown once, so copy it into your server’s environment variables straight away. Keys belong on your backend, never in a mobile app or browser code.

2. Score a transaction

curl -X POST https://api.rifraux.com/v1/check/transaction \
  -H "X-API-Key: $RIFRAUX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"transaction_id":"TXN-0001","user_id":"U-100","transaction_type":"p2p_transfer",
       "amount":250000,"balance":300000,"channel":"mobile_app",
       "timestamp":"2026-11-09T14:00:00Z"}'

The response includes action (allow, review, challenge or block), risk_level, fraud_probability, matched_rules and reason_codes. Act on action; show reason_codes to the analyst who reviews the transaction.

3. Screen a customer

curl -X POST https://api.rifraux.com/v1/aml/screen \
  -H "X-API-Key: $RIFRAUX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Alhaji Musa Ibrahim","entity_type":"individual","country":"NG","customer_id":"C-100"}'

Screening strips honorifics such as Alhaji, Chief and Dr before matching, and returns a decision (clear, potential_match or strong_potential_match) with each candidate and its similarity score. If you pass customer_id and the result is not clear, a case opens automatically for your compliance team.

4. Receive webhooks

Send us your webhook URL during onboarding to receive decisions and case updates. Every delivery is signed in the X-Rifraux-Signature header; verify it before trusting the body. The API documentation has a ready-made verifier.

New insights by email

CBN and NFIU updates, fraud patterns we are seeing and product changes. No marketing filler.

We respect your privacy. Unsubscribe at any time.