RideKit
Docs/Reference/Nafath identity and Absher background-check consent (Saudi Arabia)

Nafath identity and Absher background-check consent (Saudi Arabia)

Built: 2026-11-02. For the operator, and for whoever maintains the code.

Saudi platforms confirm who a captain is through Nafath, the national single sign-on run by SDAIA and Elm. They check the captain's criminal record through Absher, with the captain's consent. Both happen in the driver app's Documents and onboarding screens.

What the driver does

  1. Confirm your identity with Nafath. The driver types their National ID or Iqama number. The number is checked as it is typed.
  2. They tap Verify with Nafath. A request goes to the Nafath app on their phone. RideKit shows a large two-digit number and the time left (3 minutes). Open Nafath opens the Nafath app.
  3. The driver picks that number in Nafath. The card turns to "✓ Identity confirmed with Nafath" within a few seconds, because the app checks every 3 seconds.
    • If the driver declines in Nafath, or the request runs out, the card says so and they can try again.
    • At most 3 requests can be made in 10 minutes.
  4. Background check through Absher. The driver taps I agree to the Absher check. The consent is stored with its time.

What the operator does

  • Admin → Providers → Nafath (Saudi Arabia). Enter the API base URL, APP-ID and APP-KEY from Elm. The service name and the request and status paths have defaults and can be changed to match Elm's documents.
    • Without these keys the card is hidden.
    • The reviewer can then record an identity check by hand, with a reference: Drivers → KYC → Record a check → What was checked: Identity.
  • Absher result. The operator runs the check on Absher Business, then records it under Drivers → KYC with the case reference. This closes the driver's consent row, rather than adding a new one. A clear result passes the background check.
  • Admin → Markets → KYC → Who can drive → Identity confirmed before verification. On for Saudi Arabia. A driver is not verified until a Nafath check, or a recorded identity check, is clear.

How it fits

  • Citizens-only rule. When Nafath confirms a number, it is written onto the driver's national ID document, with its holder (citizen or Iqama). The citizens-only rule reads it there (docs/driver-eligibility.md).
  • Elm's callback. It is accepted at POST /api/kyc/nafath/callback, but only as a prompt to ask Nafath again. The outcome is always read from Nafath's status call, never from the callback's body.

Not confirmed live. Elm's Nafath interface is given to licensed integrators and is not public. The adapter follows the request and status shape integrators describe, so it is marked as an unverified adapter until it has run against Elm.

For developers

Piece Where
States, number, limits backend/src/kyc/nafath.ts
Start / poll / callback / Absher consent kyc/nafath.service.ts, kyc/nafath.controller.ts (/driver/nafath, /driver/nafath/start, /poll, /absher-consent; /kyc/nafath/callback)
KYC gate eligibility.identityRequired (drivers/driver-eligibility.ts). DriverKycService.checklist needs a clear kind = 'identity' check.
Manual identity, and closing Absher consent VerificationService.recordManual (kind)
Data driver_verifications (+ details jsonb, migration 124)
Driver app src/components/NafathCard.tsx on documents.tsx and onboarding.tsx
Admin components/fleet/VerificationChecks.tsx, components/markets/DriverEligibilityCard.tsx, Providers → Nafath
Tests kyc/nafath.spec.ts, drivers/driver-eligibility.spec.ts

Tested end to end with the install switched to Saudi Arabia and a stand-in Nafath (scratchpad/nafath-mock.mjs). The stand-in checks the APP-ID and APP-KEY and answers WAITING until it is told otherwise.

  • Android emulator:
    • the ID is entered and the number 42 shows with a countdown;
    • the app keeps polling with the app headers;
    • once the stand-in answered COMPLETED, the card turned to "Identity confirmed with Nafath" by itself;
    • Absher consent was given;
    • in the database: Nafath clear (identity), Absher pending.
  • iOS simulator:
    • an Iqama number started a request and the number showed;
    • once the stand-in answered REJECTED, the card said the request was declined and offered a retry.
  • Chrome, admin:
    • the KYC rows showed "Clear · Nafath · Identity" and "Waiting · Absher · Background check · Driver consented…";
    • recording the Absher result with a reference turned that row clear, with no duplicate row;
    • the market card showed both rules on;
    • the checklist API reported identityVerified: true.
source: docs/nafath-absher.md (ships identically in the product zip)