What left, and under which label.
Every call in the period: allowed, refused or failed. Below the chart, the data that left by sensitivity label, and how much was sent as it was, masked and restored, blocked, or only recorded.
cognita api is a gateway for the calls your applications make to outside services: AI models, search, data and SaaS APIs. Applications hold a gateway key, never the vendor's. The gateway checks who is calling and what they may call, classifies what the call carries, masks or blocks sensitive data before it leaves, and writes every call to a log.
Built and tested; a pilot has not started. Where it stands.
An application calls the gateway with its own key. The gateway works out who is calling, checks the grant, runs the plugins that apply, adds the vendor's credential and forwards the call through an egress proxy that reaches only the hosts you list. The answer comes back the same way.
Before a prompt leaves for an external model, the gateway reads it, gives the call a sensitivity label, and acts on that label: let it through, mask the sensitive values, or refuse the call. The application that sent it needs no change.
| Label | Found, by default | Default action |
|---|---|---|
| Critical | Credentials, payment cards, national IDs | Block the call |
| Sensitive | Names, e-mail, phone, dates of birth, addresses, bank accounts, listed terms | Mask, then send |
| Internal | IP addresses, host names and URLs, organisations | Mask, then send |
| Public | Nothing found | Send as it is |
the application sends Summarise the complaint from Dana Whitfield (dana.whitfield@northwind.example), account NW-0042-7781. the outside model receives Summarise the complaint from [PERSON_1] ([EMAIL_1]), account [ACCOUNT_1]. the application gets back Dana Whitfield reports a duplicate charge on NW-0042-7781 ...
Label and record every call and change nothing, so you can read what would be masked or blocked before you enforce it.
The same detectors can read what comes back: record it, redact it, or refuse an answer at or above a label you choose.
The call log keeps the label, the action and how many values of each kind were found. Kept payloads are what crossed the boundary: masked.
Classification decides what happens to a call on the service it was sent to: allowed, masked or refused. The gateway does not move a call to a different model by itself.
Patterns cannot find a person, a company or a place named in running prose. A private model can. The gateway asks a model you host to name them, then masks what it names with the same reversible placeholders, before the call goes to the external model.
The local model is a gateway service marked internal, with a chat completions API, as vLLM, Ollama and others provide. A second person confirms an internal service's address before it is used.
What the patterns found is already replaced by placeholders when the local model is asked, so even it does not see the card numbers or credentials.
A name the model returns is used only if it occurs in the text exactly. A wrong answer cannot add or change anything in the call.
Ask the model for every call, the only way to catch a name in otherwise clean text, or only once patterns have already found something. The first adds the model's response time to each call.
If the local model cannot be reached the call is refused, unless you choose to continue on patterns alone.
Patterns find what has a shape and a model finds most of the rest; neither finds everything. Images, audio and files inside a body are not inspected.
A model API reports how many tokens a call took. The gateway reads that as the answer passes, without changing a byte, and records the model, tokens in and out, and the cost at prices you set.
Understands the usage formats of the common model APIs, in one answer or spread over a stream.
Per consumer. The call that crosses the line completes; the next is refused until the period resets, and an alert fires at 80%.
A consumer's owner sees its calls, usage and keys, and nothing of anyone else's.
From the dashboard to a single call: what is running, what was refused and why, what left under which label, and what it cost. About two minutes.
Every call in the period: allowed, refused or failed. Below the chart, the data that left by sensitivity label, and how much was sent as it was, masked and restored, blocked, or only recorded.
Each worker and the configuration version it serves, calls and response time by the minute, and every service's health. Here one of a service's two targets is failing, so the gateway says so and sends its calls to the other.
Where each service forwards, whether it is external or internal, and how the gateway presents its credential. An internal address waits for a second person to confirm it.
A service's targets with their weight and health, the routes that lead to it with the proof of identity each accepts, and the consumers granted access.
What to look for, the label each kind of value carries, and whether a call of each label is allowed, masked or blocked. Your own terms, such as a project's code name, get a label too.
Who called, the model, tokens and cost, the label found, and what was done: here values were masked, then put back in the answer. The log keeps kinds and counts, never the values.
Read from each answer as it passes, at prices you set. A model on your own network is metered too, with no cost against it.
A failing target, a token budget at 86%, a key about to expire: open until the condition ends, with who acknowledged it. The rules and their thresholds are below.
| Control | What it does |
|---|---|
| Identity | A gateway key, a signed token checked against a registered issuer's keys, or a client certificate. Each route says which it accepts. |
| Access | A consumer reaches a service only with a grant. Unauthenticated calls are logged up to a limit per address, then refused. |
| Vendor credentials | API key, bearer token, basic or OAuth 2 client credentials, sealed so that only the gateway process can open them, added to the call on the way out. |
| Limits | Rate limit, quota, request size, address restriction and a maintenance switch, per service, route or consumer. |
| Egress | The gateway has one way out: a proxy that carries HTTPS only to the hosts in a list kept apart from the gateway's own configuration. Private address ranges are refused. |
| Call log | A row is written before the call is forwarded: who, what, when, outcome, sizes, label and action. Query strings stay out of every log. Payloads are kept only where you switch that on, sealed, and opening one needs a fresh authenticator code. |
| Resilience | Retries on connection failures only, a circuit breaker per service, several weighted targets with health checks and failover, a response cache, streamed large bodies and WebSocket routes. |
| Alerts | Gateway not reporting, a service failing or held back, a target down, keys about to expire, a budget nearly used, export behind. Open until the condition ends, with an optional webhook. |
| Change history | Who changed what in the configuration, with the fields before and after, on a hash-chained audit log. The whole configuration exports as a file and imports with a dry run. |
| Separation of duties | Operators manage services and consumers; security officers manage plugins, token issuers and alert rules; auditors read; consumer owners see their own. No single role holds every permission. |
| Operations | Metrics for Prometheus, the call and audit logs to your SIEM over TLS, retention you set, a call log partitioned by month, and several gateway replicas behind one address. |
cognita api runs as its own installation, on the same foundations as the rest of the family: sign-in with an authenticator or your identity provider, roles, a hash-chained audit log and Docker Compose. It has been exercised end to end on a local stack. No institution runs it in production yet.
We will put it behind the gateway, call it with a gateway key, turn classification on in monitor mode, and read what the log says left.
cognita api screenshots show a fictional bank's demonstration data: invented services, consumers, calls and costs, with a simulated upstream.