Skip to main content
Rasad

Blog

Blog Overview

Saudi government APIs: what each one actually proves

PublisherAbwab Admin
Published OnDec 5, 2026
Reading Duration10 min read
Last UpdateDec 5, 2026
Saudi government APIs: what each one actually proves

A practical guide to Nafath, Yakeen, Wathq and Absher-style services: what each proves, what it does not, sandbox versus production, and failure modes.

In proposals, government integrations collapse into a single line: “supports Nafath”. That line looks equal across bidders, but it hides a large gap between a team that knows what each national service proves and what it does not, and a team that wires an endpoint and then builds decisions larger than the answer can carry. A service that confirms an identity is not automatically a service that grants authority, and a record that proves a commercial registration exists is not a certificate that the person in front of you may sign for it. The confusion does not show up in testing; it shows up in the first real case.

We wrote earlier about Nafath integration from inside the identity journey: roles, consent, logs, the test environment and the fallback path. This article steps back and looks at the whole landscape: Nafath, Yakeen, Wathq, Absher-style services, the difference between what they prove and what they do not, the gap between sandbox and production, and the failure modes that only appear at the first real outage. The central idea is that an integration is an architectural decision, not a key you request.

The question each integration answers

The common methodological error is treating these services as one layer called verification. They are not. Nafath answers a question of possession: does this person hold an active national account and approve this request now? Yakeen answers a question of matching: does the identity data the user entered agree with the official record? Wathq answers a question about a registry: does this company exist, and who are its declared managers? Absher-style services are not a public developer interface; they are a channel that runs through a sponsoring entity entitled to query. Four different questions, and four different failure semantics — plus sector interfaces layered on top with their own boundaries.

The table below places each service against what it proves and what it does not. Read it as a negotiation tool with the entity, not as a technical reference: if a decision in your product needs proof of authority, no row will give it to you, and you have to build it yourself — from an internal role register, a signed delegation, or an approved list.

ServiceWhat it provesWhat it does not prove
NafathThat the person holds an active national account and approved this request at that momentThat they may act for an organisation, are entitled to this service, or that the session after it is secure
YakeenThat the identity data entered matches the official recordThat the person typing is the record holder, is present, or has consented
WathqThat the commercial registration exists, and the managers as declared in the registryThat the signatory is authorised, or that the company is legally eligible for this work
Absher-styleWhatever the sponsoring entity is permitted to query within an agreed scopeA general developer interface, or an open right to query beyond that scope
Sector APIsData for one sector within a contractual relationship with its supervisorContinuity of service, or a response shape that never changes between versions

The difference between no and I do not know is the most important line in that table. An identity call that times out does not say the user does not exist; it says we could not ask. A product that treats both the same way rejects legitimate users at the first slow response and creates support tickets nobody can explain. Separate in code between a definite rejection, a temporary error, and an outage, and write a different message for each.

Sandbox is a promise, production is a contract

The sandbox proves the shape of the response, not the behaviour of the registry. That is a real difference: you may see fixed fields and a handful of happy cases in testing, while production surfaces cases you never designed for — an expired identity, a minor, a resident without a national ID, a name changed after a registry update, a suspended commercial registration, a person blocked from one specific service. A team that builds against ten happy tests discovers in the first week of operation that it built for one case.

  1. Know who owns the credential: production access is usually issued to the entity, not the vendor, and you operate as a delegate on its account. Write that name into the contract before you start.

  2. Get the scope in writing: which fields, which services, which environment, which request quota. A verbal scope shrinks at the first security review.

  3. Test the unhappy cases: a name that does not match, an expired identity, a suspended registration. If the sandbox cannot produce them, write down how your system behaves when they appear in production.

  4. Assume slowness and outage: set a short timeout, a retry ceiling, and a fallback that does not bypass verification but parks it for review.

  5. Do not store more than you need: keep the verification result and enough for audit, not the full registry payload. What you receive is a copy, and it has a shelf life.

  6. Log the event, not the content: who requested, when, with which result, from which system. A log containing the identity number becomes a new source of risk.

  7. Write the exit plan: what happens to your account and data when the agreement with the entity ends? Who returns the keys, and who deletes the copies?

Failure is the normal case

National services are not less reliable than others, but they sit entirely outside your control: you do not own their maintenance window, you do not know when a version changes, and you cannot negotiate a response time. So the integration is designed on the assumption that failure is expected. That means deciding what the product does when a response is late: block sign-in entirely, allow a limited session, or route to human review? Each option is acceptable if it is written down and accepted by the entity, and unacceptable if it is incidental behaviour the user discovers.

Then there is silent failure, which is worse: a response arrives quickly and looks correct but means something else. A recurring example is reusing an identifier from one service in another on the assumption that it means the same thing, or storing a verification result and using it months later as if it were still true. The remedy is not technical cleverness but discipline: every result has an expiry, every identifier has a named source, and every authority decision has a record of who granted it. We covered the identity and permission layer in identity and access management.

The data you receive is not yours to keep

Every government integration hands you a copy of personal or commercial data. That copy is bound to the reason it was received, the minimum needed, and a defined period. A team that stores the full payload because it might be useful later builds an archive nobody can justify, and it becomes the first thing requested in an audit or an incident. Write beside every received field: what displays it, for which screen, and when it is deleted. Fields that no screen shows and no decision reads should be removed from storage, not only from the interface.

The other side is display: do not show more on screen than the decision requires. A support agent does not need the full identity number to answer a question, and a user does not need to see everything the entity knows about them. Minimisation here is not a design preference but a reduction of liability: what is not displayed is not screenshotted and not pasted into a chat. That is why a review of any integration should start from the screen, not from the API.

What goes into requirements before the first line

From reading to shipping

Want this built, not just explained?

Bring us the problem behind the article. We will tell you what it takes, what it costs, and whether we are the right team.

An integration written as one line in requirements gets implemented as one line and then managed as a problem for years. Write five lines instead: the entity that owns the credential, the agreed scope, the test access available and who grants it, the error taxonomy and what the product does for each class, and who carries responsibility during an outage. Those five lines protect the team more than any technical document, because they define what is inside the agreement and what is not.

Add a sixth line about experience: what does the user see when the service fails? In government systems the user does not know what Nafath is or why it was slow; they only see that the portal does not work. A message saying the identity check could not be completed now, try again shortly or use the alternative path is better than a technical error code, and far better than a message saying the data is incorrect when it is not. This kind of detail is actually assessed at acceptance, and we collected what recurs in government website requirements.

Where to start

Start from the list of integrations your product assumes, and write beside each one the question it answers and the decision that relies on it. If you find a decision that needs proof of authority while the service only proves identity, you have found a design gap before production finds it. Then test failure before success: drop the network, replay requests, submit an expired identity, and watch what the user sees. That simple test reveals more than a full architecture review, because failure is what people remember. You can look at how we run integrations if you want to see this layer built with the entity rather than left to the moment of wiring.

Frequently asked questions (FAQ)

Is Nafath enough to verify a user's identity?

It is enough to establish that the person holds a national account and approved the request. It is not enough to establish that they may act for a company, are entitled to the service, or that the resulting session is secure. Build your permission layer on top of the identity result, and do not skip it because verification succeeded.

Can we rely on the sandbox entirely?

No. Testing proves the shape and the main path; it does not prove registry behaviour, edge cases, or real response time. Treat it as a contract on the message shape, and write your assumptions about unavailable cases explicitly so they are tested in the first weeks of operation.

What do we do when the service is down?

A decision written in advance, not improvised during the incident. The usual options are parking verification for human review, allowing a limited session that cannot reach sensitive operations, or an announced pause. Any option is acceptable if the entity agrees and its duration is written down; an undocumented option will later be read as a bypass.

Do we need to store the commercial-registry data?

Usually not, beyond what serves a displayed decision or a required audit. Store the result, the date and the reference, not the whole record. If a screen needs a field, render it from the response or store it briefly, tied to a stated reason.

Who owns the integration after handover?

The entity usually owns the credential, and you own the code if the contract says so. State plainly who holds the keys, who requests changes, and who bears the cost of a change the provider imposes. Ambiguity here becomes a dispute over an invoice a year later.

Sources

  1. Digital Government Authority — reference for digital government services and their rules.

  2. Saudi Data and AI Authority — national digital identity and data protection.

  3. Elm — operator of identity-verification and commercial-registry services.

  4. Ministry of Commerce — source of commercial-registry data.

  5. Ministry of Interior — electronic services tied to identity and residency.

Cover image: Chris Ried, Unsplash License, via Unsplash.

Get in Touch

We'd love to hear from you. Fill out the form and we'll get back to you soon.