Skip to main content

Saudi PDPL amendments: what changes at the API layer

Saudi PDPL amendments from SDAIA would add in-Kingdom storage, breach notice without a harm test and wider registration. What it means for your API layer.

  • compliance
  • data-residency
  • gcc
  • security
  • audit
  • api-gateway
Zerq team

The Saudi Data and AI Authority (SDAIA) has proposed amendments to the Implementing Regulation of the Personal Data Protection Law (PDPL). If adopted, controllers would have to store personal data inside the Kingdom, notify SDAIA of a breach within 72 hours whether or not harm is likely, and register if they send personal data abroad. The Saudi PDPL amendments are still a draft, but every one of those duties depends on knowing which APIs carry personal data, where it goes, and what your logs can prove.

What did SDAIA propose in October 2026?

SDAIA published the draft amendments on 6 October 2026 on Istitlaa, the national public consultation platform, and took comments until 5 November 2026. According to the law-firm summaries listed under Sources, the amended regulation would take effect 60 days after publication in the Official Gazette. As of 16 November 2026 we have not found a final text, so treat everything below as proposed, and check the gazetted version before you change contracts or architecture.

The changes that matter most for teams running APIs:

  • Storage inside the Kingdom (draft Article 23(2)). Controllers would have to store personal data within Saudi Arabia, while transfers and disclosures abroad stay possible under the PDPL and its transfer regulation. Reed Smith points out two readings: a mandatory local copy, or a baseline of "store locally unless lawfully transferred." Gowling notes that "store" is not defined for data sent offshore for processing but not kept there.
  • Security measures (draft Article 23(1)). Entities subject to National Cybersecurity Authority (NCA) controls follow those controls. Everyone else must follow "recognized cybersecurity standards" and best practices.
  • Breach notification (draft Article 24). The 72-hour deadline to notify SDAIA stays. The condition that the incident could cause harm goes away. Notifying the affected individuals would still depend on likely harm.
  • Impact assessments (draft Article 25). New triggers include large-scale or systematic monitoring, "emerging technologies," and solely automated decisions that affect people's rights.
  • Mandatory registration (draft Article 34). Registration on SDAIA's platform would be required for public entities, controllers whose core activity is processing personal data, controllers handling sensitive data, and controllers that transfer or disclose personal data outside the Kingdom.
  • Answering SDAIA (draft Article 36 repeated). Responses to SDAIA requests would be due within 20 business days, with extensions at SDAIA's discretion.
  • Marketing consent (draft Articles 28 and 29). Consent would be needed for promotional and awareness messages, with evidence of consent and a working withdrawal path.

Why do the Saudi PDPL amendments land on your API layer?

In a Saudi bank, retailer, hospital group or telecom operator, personal data now moves mostly through APIs: the mobile app calls the customer API, the loyalty platform pulls purchase history, the delivery partner receives a name and address. Each call is a processing event, and some are cross-border transfers.

The draft turns that traffic into four practical problems.

You cannot register transfers you cannot list. If registration becomes mandatory for any controller that transfers data abroad, the first question is "which systems send personal data outside the Kingdom, and which fields?" In most organizations the answer is spread across integration code, contracts and people's memories.

Your logs are personal data too. Gateway request logs often hold full request and response bodies, which means names, phone numbers, national IDs and addresses. If the gateway is a managed service whose logs live in another country's cloud region, the logs themselves may need the same storage analysis as the primary database.

Seventy-two hours is short without a harm test to hide behind. Without the harm condition, more incidents become notifiable. Within three days you need to say what happened, which data was involved and roughly how many people were affected. That is a log query, and it only works if the logs exist and your team can reach them.

Twenty business days to answer the regulator. An SDAIA request about a specific processing activity will ask who accessed what, under which configuration, and who changed that configuration. Without a configuration audit trail, the answer is a reconstruction.

In plain terms

The proposed Saudi PDPL amendments would make data location, breach reporting and registration much stricter, and most personal data now moves through APIs. Leaders should ask three things now: do we have a list of every API that sends personal data outside the Kingdom, are our API logs stored inside the Kingdom, and could we scope a breach from those logs in a day? If any answer is no, fix that before the final text is gazetted, because the draft gives 60 days after publication.

How Zerq maps to each proposed change

Zerq is an API gateway that runs entirely in your own infrastructure, so it does not add an offshore processor of its own. Here is how its capabilities line up with the draft.

Proposed changeWhat you need at the API layerZerq capability
In-Kingdom storage (Art. 23(2))Gateway, configuration and logs hosted in Saudi ArabiaSelf-hosted deployment on-premises, in a Saudi cloud region or air-gapped, with no external control plane (architecture)
Transfer registration (Art. 34)An inventory of every outbound flow that carries personal dataOne collection for cross-border APIs, so each transfer is a named, published proxy with its own logs
Data minimization on transferOnly the fields the foreign processor needsWorkflow builder: a code_node builds an allowlisted payload before the call leaves
Breach notice in 72 hours (Art. 24)Who called what, when, with which dataRequest logs in your own MongoDB, filterable by client, profile, collection, path, status, date and payload (observability)
Answering SDAIA in 20 days (Art. 36)Proof of who changed access and whenHash-chained audit log of configuration changes, with verify and export for the auditor role (security)
Security measures (Art. 23(1))Strong authentication and access control per consumerPer-client profiles, IP allowlists, allowed methods, mTLS and rate limits

The retail and e-commerce use case shows the same building blocks applied to partner and marketplace APIs. If you want to map them to your own transfer inventory, talk to our team.

Technical deep dive: an in-Kingdom API layer that produces PDPL evidence

This section is for the platform and security engineers who will build it. Every field and endpoint below exists in the current Zerq code.

1. Keep the whole data path inside the Kingdom

A Zerq deployment is the gateway and management backend, the management UI, MongoDB for configuration and logs, and Redis or KeyDB for coordination. All of them run where you put them: Kubernetes in a Saudi data center, a sovereign cloud region, or a disconnected network. Request logs and audit logs are written to your MongoDB, not to a vendor service. Upstream credentials are encrypted at rest with AES-256-GCM using your ENCRYPTION_KEY.

2. Decide what each log stores

Request logs answer "what data left, and to whom." They are also personal data, so set their scope deliberately:

# backend environment (excerpt)
REQUEST_LOG_LEVEL=full              # default for proxies without their own level: full | headers | metadata | none
REQUEST_LOG_RETENTION_DAYS=365      # delete request log entries older than this (0 keeps everything)
AUDIT_LOG_RETENTION_DAYS=0          # keep configuration audit entries until your retention policy says otherwise
AUDIT_CHAIN_KEY=<from your secret store>   # turns the audit hash chain into an HMAC chain

# stream copies to a SIEM that is also inside the Kingdom
LOG_STREAM_SPLUNK_HEC_URL=https://siem.riyadh.example.internal:8088
LOG_STREAM_SPLUNK_HEC_TOKEN=<token>
LOG_STREAM_INCLUDE_BODIES=false     # default: stream metadata only, bodies stay in your MongoDB

Each proxy can override the level with its log_level field. Transfer APIs usually want full, because the body is the evidence of which fields left; high-volume internal reads might use metadata (method, path, status, latency, IDs and error only). Credential headers and secret fields are masked in every case. Retention runs at startup and then hourly; take the number from your legal retention requirement, not from disk size.

3. Put every cross-border flow behind one collection

Create a collection, for example ksa-transfers-out, and publish one proxy per foreign processor: the marketing platform, the regional call-center SaaS, the group reporting service. Internal systems call the gateway instead of the vendor directly, and you block direct egress to those hosts at the firewall. The collection becomes your transfer inventory, and its request logs become the record of every transfer.

On each proxy, enable a workflow that builds the outbound payload from an allowlist, so new fields in your customer record never leave by accident:

{
  "id": "minimize_for_crm",
  "type": "code_node",
  "data": {
    "config": {
      "timeout_ms": 500,
      "code": "const c = $json['http_trigger'].request.body || {}; return { customer_ref: c.customer_ref, first_name: c.first_name, preferred_language: c.preferred_language, marketing_consent: c.marketing_consent === true };"
    }
  }
}

An http_request_node then sends {{ $json['minimize_for_crm'].result }} to the processor, and a response_node returns its answer. National ID, phone number, date of birth and address are not in the returned object, so they cannot reach the processor through this path. Every workflow save is recorded in the audit log with the saved definition, so the allowlist itself has a change history.

4. Scope a breach from the request log

When an incident starts the 72-hour clock, the first query is usually "what did this client receive in this window." With a viewer role:

curl -s -H "Authorization: Bearer $TOKEN" \
  "https://zerq.internal.example.sa/api/v1/logs?client_id=loyalty-partner&collection=$TRANSFERS_COLLECTION_ID&start_date=2026-11-10T00:00:00Z&end_date=2026-11-12T23:59:59Z&limit=100"

Add status, path, profile_id or payload (a search across request and response bodies, for example for a field name such as national_id) to narrow it. Each entry carries the authenticated client and profile, the target URL, the status and the bodies at the stored log level.

5. Prove the configuration history

For the "who allowed this" question, users with the auditor role call GET /api/v1/audit/verify to check that the hash chain over configuration changes is intact, then GET /api/v1/audit/export?format=ndjson (or csv) with the same filters as the list to hand the evidence over. Entries record the actor from the OpenID Connect (OIDC) token, the action, the resource and the request body with secrets masked.

Illustrative scenario: a Saudi online retailer

Illustrative scenario, not a specific customer deployment.

Before. A Riyadh-based online retailer runs its storefront and order systems in a Saudi data center. Its loyalty program runs on a SaaS platform in another Gulf country, its support desk on a European SaaS, and its managed cloud API gateway keeps logs in a region outside the Kingdom. Order events reach the loyalty platform with the full customer record, phone number and national address included. Nobody can say which fields the support desk receives.

What they set up in Zerq. The retailer deploys Zerq on its existing Kubernetes cluster in Riyadh, with MongoDB on local storage. It creates a ksa-transfers-out collection with two published proxies, one per foreign processor, each with a code_node allowlist. Egress to both vendors is blocked at the firewall except from the gateway. Transfer proxies use log_level: full, the rest use headers, and request logs keep 365 days. Audit entries are HMAC-chained with AUDIT_CHAIN_KEY, and copies stream without bodies to the in-Kingdom SIEM.

After. The DPO's transfer inventory is the collection: two processors, two field lists, one log per transfer. A suspected credential leak at the loyalty vendor becomes a 30-minute query on one client ID and a date range, showing which customer references were sent and that no national IDs left. When SDAIA asks how access to the support-desk API is controlled, the compliance team exports the audit trail for that proxy and its client in one file.

Checklist: is your API layer ready for the Saudi PDPL amendments?

  1. Do you have a current list of every API that sends personal data outside the Kingdom?
  2. Does each of those APIs send only the fields the recipient needs, enforced in code rather than by convention?
  3. Are your gateway's request logs and configuration stored inside Saudi Arabia?
  4. Could you list every call a given partner made in a 48-hour window, with bodies, within one working day?
  5. Is there a retention period set on request logs that matches your legal requirement?
  6. Can you show who changed a partner's access, when, and what the configuration was before and after?
  7. Can someone outside the platform team (compliance, internal audit) read that evidence without being able to change configuration?
  8. Is direct egress from internal systems to foreign processors blocked, so the gateway is the only route?
  9. If you stream logs to a SIEM, is that SIEM also inside the Kingdom, and are bodies excluded unless approved?

Where this approach has limits

A gateway covers personal data that moves over APIs it fronts. It does not see database replication, batch file exports, email, or analytics SDKs inside mobile apps, and those need their own controls. It does not decide whether a transfer is lawful; that stays with your DPO and legal advisers, using SDAIA's transfer rules and standard contractual clauses. If your organization is a critical national infrastructure operator, NCA controls apply in addition, and a gateway is one control among many. And because the amendments are still a draft, wait for the gazetted text before you commit to an interpretation of the storage article.

Summary

SDAIA's draft would make in-Kingdom storage explicit, remove the harm test for notifying SDAIA of breaches, widen registration to anyone transferring data abroad, and give organizations 20 business days to answer the regulator. Each of those duties needs an API layer that knows where personal data goes and can prove it. Running the gateway, its logs and its audit trail inside the Kingdom, with every cross-border flow behind a named, minimized proxy, turns those questions into queries. Start the inventory now; the 60-day window after publication will be short.

For related reading, see how Saudi banks run the open banking API layer inside the Kingdom, our component-by-component look at UAE data residency for the API gateway, sovereign cloud API management, and, for India's data protection rules, the DPDP Act at the API layer. For pricing that does not scale with traffic or log volume, see pricing, and for how Zerq compares with cloud-hosted gateways, see compare.

Sources


Zerq is an enterprise API gateway built for regulated industries — one platform for API management, AI agent access, compliance audit, and developer portal, running entirely in your own infrastructure. See how it works or request a demo to walk through your specific requirements.