Skip to main content

EU AI Act and your API gateway: logs, oversight, deadlines

Annex III high-risk obligations now apply from 2 Dec 2027. What the EU AI Act asks of your API gateway: Article 12 logs, Article 14 stop controls, evidence.

  • compliance
  • audit
  • governance
  • ai-agents
  • ai
Zerq team

Updated October 2026: the Digital Omnibus on AI, Regulation (EU) 2026/1744, moved the Annex III high-risk deadline from 2 August 2026 to 2 December 2027. This post was rewritten against the Commission's consolidated text and the current Zerq code.

What the EU AI Act asks of an API gateway comes down to three things once the gateway sits in the path of a high-risk AI system: a log that reconstructs every call the system made (Articles 12, 19 and 26(6)), a way for a named person to constrain or stop the system without a deployment (Articles 14 and 26(2)), and evidence a market surveillance authority will accept. Annex III obligations apply from 2 December 2027, not August 2026.

The Digital Omnibus on AI was published in the Official Journal on 24 July 2026 and rewrote Article 113. Annex III systems, which include credit scoring, insurance pricing, recruitment and benefits eligibility, now have until 2 December 2027; systems embedded in Annex I products have until 2 August 2028. The obligations that touch infrastructure did not change: Articles 9, 12, 13, 14, 19 and 26 carry no amendment marker in the Commission's consolidated text.

Many vendor guides still cite 2 August 2026 and map the Act to features in general terms. This post shows which gateway record answers which article, with the field names, roles and status codes Zerq actually produces. It is a technical mapping, not legal advice.

What changed with the Digital Omnibus, and what did not

ObligationApplies fromWhere it is written
Prohibited practices and AI literacy (Chapters I and II)2 February 2025Art. 113(a)
New prohibitions on non-consensual intimate imagery and child sexual abuse material (Art. 5(1)(ba), (bb), 5(1a), 5(1b))2 December 2026Art. 113(a), as amended
General-purpose AI model obligations (Chapter V)2 August 2025Art. 113(b)
Everything not listed separately, including Article 50 transparency2 August 2026Art. 113
Annex III high-risk systems (Art. 6(2)): Chapter III, Sections 1 to 32 December 2027Art. 113(c)(i), as amended
Annex I high-risk systems (Art. 6(1))2 August 2028Art. 113(c)(ii), as amended

Two transitional rules matter for an existing estate. Under Article 111(2), a high-risk system already placed on the market or put into service before 2 August 2026 falls under the new rules only if its design changes significantly after that date, and systems used by public authorities must comply by 2 August 2030. Under Article 99(4), a deployer that breaches Article 26 faces fines of up to EUR 15 000 000 or 3 percent of worldwide annual turnover, whichever is higher.

Read the extra sixteen months as time to accumulate evidence, not as slack. The logs an authority will ask for in 2028 have to exist for the months before the request, and if you are a financial entity under DORA or an essential entity under NIS2, comparable logging obligations apply today.

Is your API gateway part of a high-risk AI system?

The Act distinguishes the provider, who develops the system and places it on the market, from the deployer, who uses it under its own authority. A bank running a vendor's credit model is a deployer; a bank that builds its own scoring model is also a provider. Articles 9, 12, 13 and 14 are design obligations on the provider. Article 26 is the deployer's list, and it is where the gateway does most of its work, because the deployer has to monitor operation (26(5)), keep the logs it controls for at least six months (26(6)) and assign oversight to people with the authority to act (26(2)).

Annex III names the use cases. The ones that most often run through an enterprise gateway are:

Annex III pointUse caseAPIs typically in the path
5(b)Creditworthiness evaluation and credit scoring (fraud detection excluded)loan origination, affordability, bureau lookups
5(c)Risk assessment and pricing for life and health insuranceunderwriting, quoting
4(a), 4(b)Recruitment, promotion, task allocation, performance monitoringapplicant tracking, HR records
5(a)Eligibility for public benefits and healthcare services, including reduction and revocationcase management, benefits
1(a) to 1(c)Remote biometric identification, biometric categorisation, emotion recognition (verification against a claimed identity is excluded)identity platforms
6, 7, 8Law enforcement, migration and border control, administration of justicecase and records systems in government

Two configurations are common: the AI system calls your APIs, so the gateway sees it as a client, or the AI system is itself exposed as an API, so the gateway sees it as an upstream. Zerq records both the same way. The Article 6(3) carve-outs for narrow procedural tasks are the provider's classification call; ask for it in writing and ask counsel which role you hold.

Which Article 12 purposes can a gateway log actually serve?

Article 12(1) requires that a high-risk system "technically allow for the automatic recording of events (logs) over the lifetime of the system." Article 12(2) names three purposes: identifying situations that may present a risk or amount to a substantial modification, facilitating post-market monitoring under Article 72, and monitoring operation under Article 26(5). Article 19 makes the provider keep those logs for at least six months to the extent it controls them, and Article 26(6) puts the same floor on the deployer; financial institutions may keep them inside their existing financial-services documentation.

A gateway cannot see inside the model. It sees every call the model's components make across an API boundary and records them with the caller's identity, which application logs usually lack. This is what Zerq stores for each request:

{
  "_id": "68f1c2d4e9a1b2c3d4e5f601",            // MongoDB id of the record
  "created_at": "2026-10-29T09:14:03.218Z",     // when the record was written, just after the response
  "request_id": "0f3c9a2e-7d41-4b6a-9f2e-1c8d5e4a7b90", // returned to the caller as X-Request-ID
  "client_id": "68f0a11b2c3d4e5f60718293",      // the named client: one per AI system or agent
  "profile_id": "68f0a1c4d5e6f70819203a4b",     // the access profile the call authenticated with
  "collection": "68e9f0a1b2c3d4e5f6071829",     // the API collection the path matched
  "method": "POST",
  "path": "/credit/v2/decisions",               // path as received by the gateway
  "target_url": "https://scoring.internal/decisions", // backend the gateway forwarded to
  "status": 200,                                // status returned to the caller
  "latency": 183,                               // end-to-end milliseconds
  "client_ip": "10.40.2.17",                    // peer address as the gateway saw it (your ingress, if one sits in front)
  "error": "",                                  // gateway rejection reason when a call was refused
  "request_headers": { "Authorization": "[REDACTED]", "X-Gateway-Source": "mcp" }, // request headers, credential values masked (abridged here)
  "request_body": "{\"applicant_id\":\"a-1042\"}",   // request payload, secret fields masked
  "response_headers": { "Content-Type": "application/json" },
  "response_body": "{\"decision\":\"refer\"}"    // response payload, secret fields masked
}

Read against Article 12(2), the record covers purpose (c) directly: filter by client_id and a time range and you have the system's operation for the period, including the calls the authentication layer refused, logged with their status and the reason in error. It covers purpose (a) partially: a change in the mix of 401, 403, 404 and 405 responses for one client, or calls to endpoints it never used before, is the earliest signal that a system is reaching outside its intended purpose. For purpose (b), the provider's post-market monitoring, request_id is how the deployer's record joins the model service's own logs: if the AI system sends an X-Request-ID, Zerq stores it, and otherwise it generates one, returns it to the caller and forwards it to the backend under the same header.

Five operational facts belong in your evidence file. At the default log level every gateway request produces a record: authentication refusals, rate-limit and quota refusals (429) and responses served from the gateway's response cache are all logged. Zerq writes the record to a collection in your own MongoDB and keeps it for as long as REQUEST_LOG_RETENTION_DAYS allows: the default, 0, keeps everything, and once you set it a retention job deletes older entries at startup and then hourly, so set it to at least 184 days for the six-month floor in Article 26(6), and longer where DORA or national law requires. An admin can delete a single record through DELETE /api/v1/logs/:id, and that deletion is itself audited. The record is written off the request path, so storing it does not delay the response, and every write is counted in zerq_logs_writes_total{log="request"} by result; the ZerqRequestLogWriteFailures alert fires when any entry could not be stored, and zerq_gateway_requests_total gives the matching request count for the same window. Bodies and headers are stored, with Authorization, cookies and other credential headers, secret JSON fields and credential query parameters replaced by [REDACTED]; everything else, personal data included, is kept as sent, so limit readers to the viewer roles mapped from your identity provider and mask other sensitive fields upstream. Because of that masking the record is not an unaltered copy of the traffic; if you need one, capture the raw exchanges at your ingress.

GET /api/v1/logs and the Logs screen filter by path, method, status code, client, profile, source IP, request ID, target endpoint, payload text, collection, latency and time range, and the filters live in the URL, so a saved view can go into an evidence pack. An agent reaching the same API through Gateway MCP produces the same record: execute_endpoint makes a real HTTP request to the gateway with the agent's X-Client-ID and X-Profile-ID headers and marks it X-Gateway-Source: mcp, so it passes the same authentication, limits and logging as an application. One caveat: the discovery tools (list_collections, list_endpoints, endpoint_details) read the catalog directly and leave no record. The request-log evidence guide covers the query patterns in depth.

Where does the Article 14 stop button live?

Article 14(4)(e) requires that the people assigned to oversight can "intervene in the operation of the high-risk AI system or interrupt the system through a 'stop' button or a similar procedure that allows the system to come to a halt in a safe state," and 14(4)(d) that they can decide not to use it or to override its output. Article 26(2) requires the deployer to assign that oversight to natural persons with "the necessary competence, training and authority." The gateway cannot halt the model process, but it can halt the model's reach, which for an API-driven system is what the authority will test.

Step 1: stop the system

In the management UI open Clients, select the client that represents the AI system and switch it to inactive, or call PUT /api/v1/clients/{id} with the body {"active": false}. Either path needs the modifier role. Prefer the explicit update over the /status route in a runbook, because that route toggles whatever value it reads. The next request from that client is refused with 401 and the body {"error": "Client is inactive"}. The refusal applies whatever credential is presented, so an OIDC access token that is still within its lifetime stops working at the same moment. Deactivating a single access profile instead (PUT /api/v1/clients/{clientId}/profiles/{id} with active: false) stops one integration and leaves the rest of the system running.

Step 2: throttle or narrow instead of stopping

When the risk is volume rather than existence, edit the access policy attached to the client. With the limiter enabled (GATEWAY_ENABLE_LIMITER=true), Zerq enforces rate_limit_requests per rate_limit_interval and a longer quota_requests per quota_interval, counted per client across all its profiles, and answers excess calls with 429. To narrow what the system can reach, the profile's allowed_methods list turns disallowed methods into 405, its allowed_ips list turns unexpected source addresses into 403 (addresses as the gateway's own listener sees them, so behind a reverse proxy this control needs a network path you control), and the client's collection list makes out-of-scope APIs answer 404, as if the route did not exist. All four are edits to configuration, not deployments, and each refusal shows up in the request log with its reason.

Step 3: know how fast the stop propagates

Zerq caches client, profile and policy lookups. With CACHE_TYPE=redis, the update deletes the client:{id} entry from the shared cache as soon as the management call returns, so every replica reads the new state on its next lookup. With the in-memory cache, each replica keeps a client for up to ten minutes and a profile for up to five, so a multi-replica deployment without Redis can take that long to refuse the last call. One more delay applies in any topology: requests already in flight, including open streams, are not cut. The response cache runs after authentication, so a client that authentication refuses gets nothing from it. Run the shared cache and write the lookup-cache lifetime into the oversight procedure; the high-availability post explains what replicas have to agree on.

Step 4: prove who pressed it

With AUDIT_ENABLED=true, the management audit middleware records every rule in audit_rules.yaml, and the client update is one of them. The record names the person through the email claim of their OIDC token, and only identities in your auditor role list can read it at GET /api/v1/audit/logs, the separation of duties Article 26(2) assumes between those who act and those who review:

{
  "timestamp": "2026-10-29T09:21:44.907Z",      // when the stop was performed
  "actor_id": "[email protected]",         // email claim from the actor's OIDC token
  "actor_type": "gateway-modifier",            // the IdP roles the actor held
  "resource_type": "client",                   // what was changed
  "action": "update",                          // action name from audit_rules.yaml
  "ip_address": "10.8.0.21",                   // where the management call came from
  "user_agent": "Mozilla/5.0 ...",             // browser or tool used
  "request_id": "7a1e5c90-2b3f-4d8e-a6c1-0f9b8e7d6c5a", // correlates with gateway and SIEM records
  "metadata": {
    "url": "/api/v1/clients/68f0a11b2c3d4e5f60718293", // management endpoint called
    "request_body": "{\"active\":false}",      // the payload submitted
    "response_body": "{\"active\":false}",     // what the API returned
    "status_code": 200
  }
}

The same stop can be performed through Management MCP by an assistant or a runbook: the update_client and update_profile tools, with active set to false, forward to the same endpoints with the caller's own bearer token, so the role check is the same and the audit record names the same person, with the Management MCP hop as user agent. How to govern those writes is covered in AI agent change control for your API gateway.

Article 9 and Article 26(5): limiting foreseeable misuse before it happens

Article 9(2)(b) asks the provider to evaluate risks "under conditions of reasonably foreseeable misuse" and 9(2)(d) to adopt targeted measures; Article 26(5) asks the deployer to monitor operation and to suspend use and inform the provider when the system may present a risk. At the API layer, foreseeable misuse has a short list: a loop that repeats a call, a component that starts writing where it only needed to read, a credential reused from another environment, and a call from somewhere the system does not run. The controls in Step 2 are the targeted measures for that list; the setup guide for AI agent API access configures them per system. The monitoring half of 26(5) is the request log filtered by client and status, reviewed on a schedule you can show.

A gateway evidence checklist for high-risk AI systems

  1. Is each high-risk AI system its own client with its own profiles, so client_id in the log names the system rather than a shared service account?
  2. Can you produce every call the system made in a given week, filtered by client and time range, in minutes?
  3. Does the record include refused calls, with the gateway's reason, and not only successes?
  4. Is request-log retention set to at least six months by a mechanism you can describe, and longer where DORA, national law or your regulator requires it?
  5. Can a named person with the modifier role deactivate the system's client, and is that action attributed to them in the audit log?
  6. Is the lookup cache shared across replicas, so a deactivation is total within a time you have written down?
  7. Are request-log readers limited to viewer roles mapped from your identity provider, and audit-log readers to the auditor role?
  8. Do agents reaching the APIs through MCP produce the same records as applications?
  9. Can you join the gateway record to the model service's own logs through the request ID?
  10. Has counsel confirmed, per system, whether you are the deployer, the provider or both?

Limitations and when Zerq isn't the right fit

Gateway logs are not the AI system's logs. Article 12 is a design obligation on the provider, and Zerq records what crosses an API boundary. If the model runs embedded in an application with no API calls, or if the decisive inputs never leave the model service, the gateway record is incomplete evidence and you need the provider's logging to meet 12(2).

Audit entries are hash-chained (HMAC-SHA256 when AUDIT_CHAIN_KEY is set), so auditors can verify that no entry was altered and the sequence has no gaps, and export the trail. Request logs are protected by access control only: their integrity rests on MongoDB permissions, audited deletions and whatever write-once storage you stream them to. If your regulator requires WORM retention, ship the logs there.

Retention is off unless you set REQUEST_LOG_RETENTION_DAYS and AUDIT_LOG_RETENTION_DAYS, and bodies and headers are stored with only credentials masked (per proxy you can log metadata only), so a data protection impact assessment has to cover the log itself. Request and audit log writes are counted in zerq_logs_writes_total, and ZerqRequestLogWriteFailures alerts on any entry that could not be stored. AI Gateway requests carry model, token and cost data in the same metrics, traces and log streams as the rest of the gateway.

Zerq does nothing for the paperwork side of the Act: no conformity assessment, no Annex IV technical documentation, no fundamental rights impact assessment under Article 27, no registration, and no Article 50 content marking. If your AI estate is mostly embedded models with no API traffic, a governance platform matters more than a gateway.

What this looks like in practice

Illustrative scenario, not a specific customer deployment.

A consumer lender in the EU runs a vendor-built credit decisioning service, which makes it the deployer of an Annex III point 5(b) system. The service calls a bureau connector, an internal accounts API and an affordability API. Before the review, all three calls used one shared service account, logs lived in three application stacks with no common identifier, and the only way to stop the service was to revoke a key that other batch jobs also used.

The platform team created a client named for the decisioning service, one access profile per integration with the methods and source ranges each needs, and a policy with a rate limit sized to peak application volume, so client_id now named the system. They set REQUEST_LOG_RETENTION_DAYS to 731 (24 months), documented it as the Article 26(6) mechanism, and ran the stop procedure in a quarterly drill: a named modifier deactivated the client, the next call returned 401, and the auditor pulled the audit record naming the person and the time.

The compliance team's monthly 26(5) review is now a saved Logs view filtered by the client and the review period, with refusals checked by status code. The evidence pack is three artefacts: the request-log extract for the period, the audit record of the last drill, and the profile configuration showing the scope the system was limited to. The gateway runs in the lender's own Kubernetes cluster, so none of it leaves the deployment boundary.

Closing summary

The Annex III deadline is 2 December 2027 and the Annex I deadline is 2 August 2028; the content of Articles 9, 12, 14, 19 and 26 did not change. The gateway's request log, keyed by a client that names the AI system, is the deployer's Article 12(2) and 26(6) evidence for every call that crosses an API boundary. Deactivating that client is the Article 14 stop for the system's reach, it takes effect on the next request, whatever credential is presented, and the audit log names who did it. Retention, cache topology and the join to the model's own logs are the three things to settle now, because evidence only counts if it was collected before anyone asked. The security and observability overviews map the rest of your controls.

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.