Govern an outbound API call.
Last updated
What you are building
The same review-and-approve pipeline you already have in front of a database, put in front of an outbound API call. Somebody composes a request against a registered API, AccessFlow scores it, a reviewer approves it, and only then does the call go out — with the response masked according to policy and the whole thing recorded.
This is useful wherever a third-party or internal API is as sensitive as a database: payment providers, HR systems, customer-support tooling, anything that will happily action a request from whoever holds the token.
What can AccessFlow govern besides SQL?
Outbound REST, SOAP, GraphQL and gRPC calls. You register the API once as a connector, load its schema so AccessFlow knows its operations, and grant people access to it the same way you grant access to a datasource. gRPC calls can be registered and reviewed but do not run yet; REST, SOAP and GraphQL calls run in full.
You need the connector-manage permission, which admins hold. Work through your first governed query first if you have not — the review machinery is shared, and this guide assumes you have met it.
No API section in your sidebar? Your organization has API
governance switched off — the default unless someone turned it on during
setup. An admin turns it back on at
/admin/governance-domains
(Organizations &
quotas), and the menus appear immediately.
1. Register the API
Sidebar → API Connectors → New connector. Give it a name, choose the Protocol — REST, SOAP, GraphQL or gRPC — and set the Base URL.
Then Auth method. AccessFlow holds the credential so callers never do, which is much of the point: people get to make governed calls without ever holding the token themselves.
Default headers are merged into every governed call, which is a tidy place for a version header or a tenant id. Timeout and Max response bytes bound what a single call can cost you.
Use Test connection before going further. It checks the API is reachable and, for OAuth 2.0 connectors, that a token can actually be fetched — which is where a wrong client secret shows up.
2. Load its schema
A connector without a schema can still be called free-form, but loading one is what makes the rest work: an operation catalog to grant against, read/write classification, better AI analysis, and plain-English request drafting.
On the Schema tab, supply it one of three ways — Paste, Upload file, or From URL, which AccessFlow fetches server-side. Five formats are understood: OpenAPI, WSDL, GraphQL SDL, gRPC proto, and a Postman Collection export. Files are capped at 5 MB.
Large APIs import better with an Import filter: exclude paths, keep only certain paths, drop verbs, operation ids or tags, and skip deprecated operations. The Preview tells you how many of the total operations survive before you commit to the import.
The parsed result lands on the Operations tab, one row per operation with its verb, path, and whether AccessFlow classified it as a Read or a Write. That classification drives review: a connector can require review for writes but not reads, exactly as a datasource can.
APIs change. A schema loaded From URL can be checked again on a timer: set an Auto-refresh interval when you load it, or change it later with the Auto-refresh button in the schema list. Refresh now on the Drift tab checks straight away.
When the published document changes, the Drift tab lists what changed — operations added or removed, a changed path or shape, a newly deprecated operation, or one that switched between read and write. Nothing changes on its own: the Operations tab keeps the current catalog until an admin presses Accept revision, and a finding you don't care about can be dismissed. Accepting never edits anyone's permissions, but a removed operation can no longer be called — so a removed operation shows how many grants still name it, with a link to the Permissions tab to tidy them up.
3. Grant access
On the Permissions tab, grant to a user or a group. The fields are deliberately close to a datasource grant:
- Read and Write — matched against each operation's classification.
- Allowed operations — leave empty for all of them, or name a subset. This is the tightest and most useful control on the form.
- Masked response fields — dot-paths masked for this person specifically, on top of any connector-wide masking.
- Expires — as with datasources, access that removes itself.
- Break-glass and Override variables — leave both off unless somebody has a concrete need.
Without a grant, a connector simply does not appear in the editor. That is the intended behaviour, and the editor says so rather than showing an empty dropdown.
4. Mask what comes back
Governing the request is only half of it — the response is where the sensitive data actually is. The Masking tab defines policies over response fields, applied before the response is stored.
Each policy matches a field one of four ways:
- Schema field — by name, against the loaded schema.
- JSON path — for JSON responses, e.g.
data.ssn. - XML path (XPath) — for SOAP.
- Regex — the fallback when structure does not help.
Then a strategy: full mask, partial with a visible suffix, SHA-256 hash, email-preserving, format-preserving, keep first N, constant, nullify, regex replace, numeric bucket, or date generalization — the same set the datasource masking tab offers. A Reveal to list names the roles, groups or people who see the real value; leave it empty and it is masked for everyone.
The Classification tab is the shortcut worth knowing about. Tag response fields as PII, PCI, PHI, GDPR, Financial or Sensitive, switch on Auto-apply masking, and AccessFlow derives sensible policies for you — partial masking for PII, GDPR and financial data, full masking for card and health data, hashing for anything merely sensitive. The same tags raise the AI risk score for calls that touch those operations, so a reviewer sees the stakes without having to know the schema.
5. Make a governed call
Sidebar → API Editor. Pick the connector, then either choose an operation from the catalog or compose a free-form call. Fill in query parameters, headers and a body across the tabs; connector default headers are shown read-only so you can see what will be sent alongside yours.
Add a Justification, optionally use Analyze risk to see the AI verdict before committing, and Submit for review. You land on the request's own page and can follow it from there.
Reviewers work the API requests tab of the review queue — the same page that holds query and deployment reviews, one tab per kind of request you may review — with the same approve and reject controls as queries, and the same rule that nobody decides their own request. Approved calls execute and the response — masked — appears on the request page. Once a call has finished, the same page lets you replay it as a new request that is reviewed again, and compare its response with the previous run. Everyone's own requests are listed under API Requests.
Worth knowing
- Scheduled calls work as they do for queries: set a time and the call runs after approval rather than immediately.
- Break-glass for API calls exists in the engine and is gated on a per-connector grant, but there is no button for it in the editor — it can only be exercised through the REST API today. Executions still land in the break-glass log for retrospective review.
- Request and response size caps are configurable with
ACCESSFLOW_APIGOV_MAX_REQUEST_BODY_BYTESandACCESSFLOW_APIGOV_MAX_RESPONSE_BYTES; review timeout withACCESSFLOW_APIGOV_REVIEW_TIMEOUT. - Knowing when an API goes down — set a Health check interval on the connector's Configuration tab and AccessFlow checks that the API's base URL still answers on that schedule. Any answer counts, an error page included — this tells you the API is unreachable, not that it is returning errors. The settings page shows a health badge (click it for the recent checks) and the connector list gains a Health column. Admins are alerted once the API stops answering several checks in a row. Leave the interval empty and the connector reads Not monitored.
- Replaying a call — once a request has finished, the person who submitted it can press Replay on its page. That creates a new request under their name, checked like any new call — analysis, routing and review, as the connector requires — before it runs. The original is left as it was. Override values they are no longer allowed to set are dropped, and a message says how many.
- Comparing a response with the last run — on a request that ran, the Compare to previous run card lists which fields were added, removed or changed since the last run of the same call, and how the status code, duration and size moved. Below that, it shows short previews of both responses side by side. Only JSON and XML responses can be compared. The card compares the stored, masked responses, so a change to a masking rule between runs shows up as a changed value. To compare with a different run, paste that request's ID; it must be an earlier run of the same call. Reviewers and admins compare against anyone's earlier run; everyone else compares only against their own, so a colleague's run of the same call is not offered.
- Capping how often an API is called — the connector's Limits & budget tab sets calls per minute, calls per day and the share of each limit one person may use; leave a field empty for no limit. When a limit is reached, a request run on its own is not lost: it stays approved, its page says Queued — retries at a time, and AccessFlow runs it automatically once the limit allows. The person who submitted it can still cancel it. A call inside a grouped request is not retried — it counts as a failed step. The connector list shows each connector's limits at a glance.
- Tracking what an API costs — the same tab sets a cost per call and a monthly budget, both in plain units with no currency, and charts calls, failed calls and throttled calls per day against this month's spend. The budget never stops calls: reaching it alerts admins.
- Chaining a call to a query — grouped requests bundle ordered members into one approval. Note there is no distributed rollback: if a later member fails, the earlier ones have already happened.
- Explaining a decision without making the call —
the connector's Simulate tab (or
POST /api/v1/admin/api-call-simulations) replays one hypothetical call through the very evaluator that decides real ones and returns a per-stage trace: the connector gate, whether the operation counts as a read or a write and where that classification came from, the schema catalog, the caller's effective connector permission, every routing policy in priority order, the review requirement, who could review it, and the masking rules that would rewrite the response. The governed API is never contacted, nothing is persisted and no AI provider is called; it needs the same permission that manages connectors, and every run is recorded in the audit log. The query-side counterpart is the effective-access explainer.
Connector fields, schema parsing detail and the full masking reference: API connectors.