Skip to main content
The proxy covers model calls. The Decision API covers everything else your agent does, such as issuing a refund, deleting a record or sending a message to a customer. You describe the action, Navige decides, and your code acts on the answer. POST /enforce The full field list, with a request you can send from the page, is in Ask for a decision.

Request

One optional header sits beside x-navige-key: x-navige-client names which app on a connected computer is asking, so its calls land on its own agent. You will rarely send either by hand: navige connect sets up hooks that call this endpoint for every tool call Claude Code, Codex, Cursor and GitHub Copilot CLI make, sending the shape of the arguments (sizes and fingerprints), never their content. With each call it sends the name of the git repository and branch the chat is working in (github.com/acme/api, main), so spend can be shown by repository; run connect --no-repo to keep those on the computer. In the body these are the optional fields transaction.repo and transaction.branch.

Answers

Every response carries a decision, and most carry a transactionId so you can report the outcome later.
A refusal carries a code as well as a reason, so you can tell the person something useful: policy (a guardrail), kill_switch, spend_cap, and, when you sent onBehalfOf, unknown_requester (nobody has linked this person; ask an admin), inactive_requester or requester_unavailable. A request with onBehalfOf also gets back requester: who Navige took it to be, never what they may do.
On Watchtower, or in shadow mode, a guardrail’s verdict is recorded but not enforced, and the answer is allow with "enforced": false, wouldHaveBeen and the code beside it. Read those fields if you want to act on what Navige would have done. A request carrying onBehalfOf never gets this kind of allow from a guardrail, except in shadow mode: when the agent acts for a person, the verdict is the real one.

Handling them

Two of these mean go, three mean stop, pending means wait, and error means Navige could not say. Do not treat the decision as a boolean.
Do not handle error as deny. A malformed request and an unreachable Navige both come back as error, told apart by unavailable. If you map either one to denied, an outage stops your agents without warning. If you map both to allowed, a typo in your payload leaves them ungoverned without warning.

Long holds

GET /enforce/status/:approvalId With wait left at its default, the call blocks up to five minutes waiting for a human. If your caller cannot hold a request open that long (Salesforce Apex caps around 120 seconds), send "wait": false and poll this instead. It answers pending until someone decides, then approved, rejected or expired. An approval id it does not know gets 404. See Check a held decision. Once settled, approved and rejected carry decidedBy: { "channel": "console", "memberId": "…", "role": "admin" } when a member decided in the console, or { "channel": "link", "memberId": null } when the decision came from an email or Slack link. Those links need no sign-in, so Navige does not know who clicked, and the response says so instead of guessing.

Reporting the outcome

Navige knows whether the call was allowed. It does not know whether the work succeeded, and will not infer it from an HTTP 200.
Until you report it, the outcome is unjudged. Unjudged is not the same as failed, and it is counted as neither a success nor a failure.