Ask before you act: POST /enforce, and how to handle each answer.
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 /enforceThe full field list, with a request you can send from the page, is in Ask for a decision.
Request
Field
Type
What it does
tool (required)
string
What the agent wants to do, such as issue_refund. Up to 200 characters; longer is rejected, not truncated.
system
string
Which system it acts on, such as stripe or salesforce. Lets one policy cover a tool name that exists in several places.
classification
string
One of read, write, destructive, financial, unknown.
arguments
object
What it would be called with. Policies can read these; secrets are redacted before anything is stored.
transaction
object
{ workflowKey, externalRef }: the business task this belongs to.
workflow
object
{ key, runId }: tags the call for the workflow view. Without transaction, it also names the task, so per-workflow budgets apply.
wait
boolean
Default true. Set false to get an immediate pending instead of blocking on an approval.
onBehalfOf
object
The person the agent is acting for: { memberId }, or an identity a workspace admin linked in Settings → Members, such as { provider: "lark", externalId: "ou_…" }. Navige works out who that is, records it, lets guardrails match on their role, and refuses a person it cannot establish. With it, guardrail verdicts are real on every plan.
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.
r = enforce(tool="issue_refund", ...)if r["decision"] in ("allow", "approved"): do_the_thing()elif r["decision"] in ("deny", "rejected", "expired"): stop(r.get("reason"))elif r["decision"] == "pending": # Only when you sent wait=false. park_and_poll(r["approvalId"])elif r["decision"] == "error": # unavailable=True is Navige being down, not your request being wrong. # Your own fail-open or fail-closed choice decides this branch. handle_unavailable(r)
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/:approvalIdWith 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.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Navige Docs","description":"Navige decides, before an AI agent's tool or model call runs, whether it is allowed, what it will cost, and whether it is recorded.","colors":{"primary":"#1845C2","light":"#ADBFEC","dark":"#1845C2"},"logo":{"light":"https://mintcdn.com/navige-f7315af9/7L2ph0JoYDzp6A9h/logo/light.svg?fit=max\u0026auto=format\u0026n=7L2ph0JoYDzp6A9h\u0026q=85\u0026s=dbf3224a34bc805aa0cd4d57dfebe8ab","dark":"https://mintcdn.com/navige-f7315af9/7L2ph0JoYDzp6A9h/logo/dark.svg?fit=max\u0026auto=format\u0026n=7L2ph0JoYDzp6A9h\u0026q=85\u0026s=15b9cf8697d0f424d38094f1e37f5cbe","href":"/"},"favicon":"https://mintcdn.com/navige-f7315af9/7L2ph0JoYDzp6A9h/favicon.svg?fit=max\u0026auto=format\u0026n=7L2ph0JoYDzp6A9h\u0026q=85\u0026s=c38bf8d6e699b264b4bcb314221f983c","api":{"openapi":"openapi.json","playground":{"display":"interactive"},"examples":{"prefill":true}},"appearance":{"default":"light","strict":true},"background":{"color":{"light":"#eeece7","dark":"#15131a"}},"navbar":{"links":[{"href":"https://app.navige.ai/contact-sales","label":"Talk to sales"}],"primary":{"type":"button","label":"Open console","href":"https://app.navige.ai"}},"footer":{"links":[{"header":"Product","items":[{"label":"Console","href":"https://app.navige.ai"},{"label":"Pricing","href":"https://navige.ai/pricing"}]},{"header":"Legal","items":[{"label":"Terms of use","href":"https://app.navige.ai/legal/terms"},{"label":"Privacy","href":"https://app.navige.ai/legal/privacy"},{"label":"Data processing","href":"https://app.navige.ai/legal/dpa"}]},{"header":"Company","items":[{"label":"Website","href":"https://navige.ai"},{"label":"Talk to sales","href":"https://app.navige.ai/contact-sales"},{"label":"hello@navige.ai","href":"mailto:hello@navige.ai"}]}]},"seo":{"metatags":{"canonical":"https://docs.navige.ai"}},"fonts":{"heading":{"family":"Inter Tight","weight":600,"source":"fonts/InterTight.woff2","format":"woff2"},"body":{"family":"Inter Tight","weight":400,"source":"fonts/InterTight.woff2","format":"woff2"}},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"navige-f7315af9","hasAudioNarration":false,"actualSubdomain":"navige-f7315af9","customDomains":["docs.navige.ai"],"gitSource":{"type":"github","owner":"navige-ai","repo":"navige","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":"","_id":"6b0401d8d49407ff19952399"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b04686b07135da59bd8e877","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"Guides","count":15},{"language":"default","tag":"API reference","count":12},{"language":"default","tag":"Concepts","count":5},{"language":"default","tag":"Connect","count":5},{"language":"default","tag":"Usage and tasks","count":4},{"language":"default","tag":"Get started","count":3},{"language":"default","tag":"Overview","count":3},{"language":"default","tag":"Decisions","count":3},{"language":"default","tag":"Provisioning and public","count":2},{"language":"default","tag":"Updates","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:\"Geist Mono\";src:url(\"/fonts/GeistMono-500.woff2\") format(\"woff2\");font-weight:400 600;font-display:swap}@font-face{font-family:\"Instrument Serif\";src:url(\"/fonts/InstrumentSerif-400-italic.woff2\") format(\"woff2\");font-style:italic;font-weight:400;font-display:swap}:root{--nv-blue: #1845c2;--nv-ink: #15131a;--nv-body: #3d3a44;--nv-muted: #5c5963;--nv-line: #dedad3;--nv-paper: #eeece7;--nv-radius: 14px}html,body,*{scrollbar-width:none}*::-webkit-scrollbar{display:none;width:0;height:0}h1,h2,h3,h4,#page-title{color:var(--nv-ink);letter-spacing:-0.03em}h1,#page-title{font-weight:600;letter-spacing:-0.04em}#content-area .prose{color:var(--nv-body)}#content-area .prose a{color:var(--nv-blue);text-decoration-color:rgba(24, 69, 194, .35);text-underline-offset:3px}#content-area .prose a:hover{text-decoration-color:currentColor}code,pre,kbd,samp{font-family:\"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace!important}[data-component-part=\"code-block-root\"],.code-block{border-radius:var(--nv-radius)!important}.code-block,div:has(>[data-component-part=\"code-block-root\"]){border-color:var(--nv-line)!important}#topbar-cta-button a>span.absolute{background:var(--nv-ink)!important;border-radius:999px!important}#topbar-cta-button a{padding-left:1rem;padding-right:0.8rem}#navbar{background:color-mix(in srgb, var(--nv-paper) 88%, transparent)!important;backdrop-filter:saturate(1.4) blur(12px)}:focus-visible{outline:2px solid var(--nv-blue)!important;outline-offset:2px!important;border-radius:6px}@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.nv-home{max-width:1040px;margin:0 auto;padding:3.5rem 1.5rem 5rem;color:var(--nv-ink)}.nv-home a{color:var(--nv-blue);text-decoration:none}.nv-home a:hover{text-decoration:underline;text-underline-offset:3px}.nv-title{font-size:clamp(2.4rem, 5vw, 3.6rem);line-height:1.05;font-weight:600;letter-spacing:-0.045em;margin:0 0 1rem;max-width:24ch;text-wrap:balance}.nv-lede{font-size:1.0625rem;line-height:1.6;color:var(--nv-muted);max-width:60ch;margin:0 0 1.75rem}.nv-actions{display:flex;flex-wrap:wrap;align-items:center;gap:0.75rem 1.5rem}.nv-serif{font-family:\"Instrument Serif\", Georgia, serif;font-style:italic;font-weight:400;font-size:1.12em;letter-spacing:-0.01em}.nv-home a.nv-btn{display:inline-flex;align-items:center;min-height:44px;padding:0.65rem 1.4rem;border-radius:999px;background:var(--nv-ink);color:#ffffff;font-weight:600;font-size:0.95rem}.nv-home a.nv-btn:hover{background:#2a2730;text-decoration:none}.nv-textlink{font-weight:600;font-size:0.95rem}.nv-example{margin-top:2.5rem}.nv-flow{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));background:#fff;border:1px solid var(--nv-line);border-radius:var(--nv-radius);margin-top:1rem}.nv-step{padding:1rem 1.1rem 1.1rem}.nv-step+.nv-step{border-left:1px solid var(--nv-line)}.nv-step p{margin:0}.nv-step-label{font-size:0.8rem;font-weight:600;color:var(--nv-muted)}.nv-step-main{margin-top:0.45rem!important;font-size:1.02rem;font-weight:600;line-height:1.4;color:var(--nv-ink)}.nv-step-detail{margin-top:0.35rem!important;font-size:0.9rem;line-height:1.55;color:var(--nv-muted)}.nv-section{margin-top:3.5rem;padding-top:2.5rem;border-top:1px solid var(--nv-line)}.nv-h2{font-size:1.3rem;font-weight:600;margin:0 0 0.4rem;color:var(--nv-ink)}.nv-sub,.nv-note{color:var(--nv-muted);font-size:0.95rem;line-height:1.6;max-width:70ch;margin:0 0 1.25rem}.nv-note{margin:1rem 0 0}.nv-table-wrap{overflow-x:auto;background:#fff;border:1px solid var(--nv-line);border-radius:var(--nv-radius)}.nv-table{width:100%;border-collapse:collapse;font-size:0.9rem;line-height:1.5}.nv-table th,.nv-table td{text-align:left;vertical-align:top;padding:0.7rem 0.9rem;border-bottom:1px solid var(--nv-line)}.nv-table tr:last-child td{border-bottom:0}.nv-table th{font-weight:600;font-size:0.8rem;color:var(--nv-muted);white-space:nowrap}.nv-table td:first-child{font-weight:600;white-space:nowrap}.nv-table code{font-size:0.85em;white-space:nowrap}.nv-two-col{display:grid;grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr);gap:3rem}.nv-terms{list-style:none;padding:0;margin:1rem 0 0}.nv-terms li{display:flex;flex-direction:column;gap:0.2rem;padding:0.75rem 0;border-bottom:1px solid var(--nv-line)}.nv-terms a{font-weight:600}.nv-terms span{color:var(--nv-muted);font-size:0.95rem}.nv-news{list-style:none;padding:0;margin:1rem 0 0}.nv-news li{display:flex;flex-direction:column;gap:0.15rem;padding:0.75rem 0;border-bottom:1px solid var(--nv-line)}.nv-date{font-size:0.8rem;color:var(--nv-muted);font-variant-numeric:tabular-nums}#footer>div{padding-top:2.5rem!important;padding-bottom:2rem!important;gap:1.75rem!important}#footer button{display:none!important}@media (max-width: 760px){.nv-home{padding:2rem 1rem 3.5rem}.nv-title{font-size:2rem}.nv-two-col{grid-template-columns:1fr;gap:1rem}.nv-flow{grid-template-columns:1fr}.nv-step+.nv-step{border-left:0;border-top:1px solid var(--nv-line)}}"}]}
{"page":{"pagePath":"connect/enforce","slug":"/connect/enforce","pageMetadata":{"title":"Decision API","description":"Ask before you act: POST /enforce, and how to handle each answer.","href":"/connect/enforce"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Ask before you act: POST /enforce, and how to handle each answer.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`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.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /enforce`})}),`\n`,_jsxs(_components.p,{children:[`The full field list, with a request you can send from the page, is in `,_jsx(_components.a,{href:`/reference/enforce`,children:`Ask for a decision`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`What it does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`tool`}),` (required)`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsxs(_components.td,{children:[`What the agent wants to do, such as `,_jsx(_components.code,{children:`issue_refund`}),`. Up to 200 characters; longer is rejected, not truncated.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`system`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsxs(_components.td,{children:[`Which system it acts on, such as `,_jsx(_components.code,{children:`stripe`}),` or `,_jsx(_components.code,{children:`salesforce`}),`. Lets one policy cover a tool name that exists in several places.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`classification`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsxs(_components.td,{children:[`One of `,_jsx(_components.code,{children:`read`}),`, `,_jsx(_components.code,{children:`write`}),`, `,_jsx(_components.code,{children:`destructive`}),`, `,_jsx(_components.code,{children:`financial`}),`, `,_jsx(_components.code,{children:`unknown`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`arguments`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{children:`What it would be called with. Policies can read these; secrets are redacted before anything is stored.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`transaction`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`{ workflowKey, externalRef }`}),`: the business task this belongs to.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`workflow`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`{ key, runId }`}),`: tags the call for the workflow view. Without `,_jsx(_components.code,{children:`transaction`}),`, it also names the task, so per-workflow budgets apply.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`wait`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`boolean`})}),_jsxs(_components.td,{children:[`Default `,_jsx(_components.code,{children:`true`}),`. Set `,_jsx(_components.code,{children:`false`}),` to get an immediate `,_jsx(_components.code,{children:`pending`}),` instead of blocking on an approval.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onBehalfOf`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsxs(_components.td,{children:[`The person the agent is acting for: `,_jsx(_components.code,{children:`{ memberId }`}),`, or an identity a workspace admin linked in Settings → Members, such as `,_jsx(_components.code,{children:`{ provider: \"lark\", externalId: \"ou_…\" }`}),`. Navige works out who that is, records it, lets guardrails match on their role, and refuses a person it cannot establish. With it, guardrail verdicts are real on every plan.`]})]})]})]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`bash`,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.navige.ai/enforce`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-navige-key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$NAVIGE_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tool\": \"issue_refund\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"system\": \"stripe\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"classification\": \"financial\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"arguments\": { \"amount_usd\": 1240, \"customer\": \"cus_PZ8\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"transaction\": { \"workflowKey\": \"billing.refund\", \"externalRef\": \"ticket-88412\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Windows PowerShell`,numberOfLines:`12`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tool\": \"issue_refund\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"system\": \"stripe\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"classification\": \"financial\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"arguments\": { \"amount_usd\": 1240, \"customer\": \"cus_PZ8\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"transaction\": { \"workflowKey\": \"billing.refund\", \"externalRef\": \"ticket-88412\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'@`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Invoke-RestMethod`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Method Post `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Uri https:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`//`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`api.navige.ai`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`enforce `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:\"`\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`@`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-navige-key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`env:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`NAVIGE_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:\"`\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ContentType `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Body `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$body`})]}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`One optional header sits beside `,_jsx(_components.code,{children:`x-navige-key`}),`: `,_jsx(_components.code,{children:`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: `,_jsx(_components.code,{children:`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 (`,_jsx(_components.code,{children:`github.com/acme/api`}),`, `,_jsx(_components.code,{children:`main`}),`), so spend can be shown by repository; run `,_jsx(_components.code,{children:`connect --no-repo`}),` to keep those on the computer. In the body these are the optional fields `,_jsx(_components.code,{children:`transaction.repo`}),` and `,_jsx(_components.code,{children:`transaction.branch`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`answers`,children:`Answers`}),`\n`,_jsxs(_components.p,{children:[`Every response carries a `,_jsx(_components.code,{children:`decision`}),`, and most carry a `,_jsx(_components.code,{children:`transactionId`}),` so you can report the outcome later.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"decision\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"allow\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"transactionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01937c4f-…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"decision\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"deny\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Refunds over $500 require a human\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"transactionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01937c4f-…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"decision\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"approvalId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01937c4e-…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"expiresAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-14T09:12:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"decision\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"approved\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"decision\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rejected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"denied by approver\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"decision\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"expired\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"approval request timed out\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"decision\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"approval required, but recording the request failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"unavailable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`A refusal carries a `,_jsx(_components.code,{children:`code`}),` as well as a reason, so you can tell the person something useful: `,_jsx(_components.code,{children:`policy`}),` (a guardrail), `,_jsx(_components.code,{children:`kill_switch`}),`, `,_jsx(_components.code,{children:`spend_cap`}),`, and, when you sent `,_jsx(_components.code,{children:`onBehalfOf`}),`, `,_jsx(_components.code,{children:`unknown_requester`}),` (nobody has linked this person; ask an admin), `,_jsx(_components.code,{children:`inactive_requester`}),` or `,_jsx(_components.code,{children:`requester_unavailable`}),`. A request with `,_jsx(_components.code,{children:`onBehalfOf`}),` also gets back `,_jsx(_components.code,{children:`requester`}),`: who Navige took it to be, never what they may do.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`On Watchtower, or in shadow mode, a guardrail’s verdict is recorded but not enforced, and the answer is `,_jsx(_components.code,{children:`allow`}),` with `,_jsx(_components.code,{children:`\"enforced\": false`}),`, `,_jsx(_components.code,{children:`wouldHaveBeen`}),` and the `,_jsx(_components.code,{children:`code`}),` beside it. Read those fields if you want to act on what Navige would have done. A request carrying `,_jsx(_components.code,{children:`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.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`handling-them`,children:`Handling them`}),`\n`,_jsxs(_components.p,{children:[`Two of these mean go, three mean stop, `,_jsx(_components.code,{children:`pending`}),` means wait, and `,_jsx(_components.code,{children:`error`}),` means Navige could not say. Do not treat the decision as a boolean.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`r `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` enforce(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`tool`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"issue_refund\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"decision\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"allow\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"approved\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` do_the_thing()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`elif`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"decision\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"deny\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rejected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"expired\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` stop(r.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`elif`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"decision\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pending\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Only when you sent wait=false.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` park_and_poll(r[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"approvalId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`elif`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"decision\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # unavailable=True is Navige being down, not your request being wrong.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Your own fail-open or fail-closed choice decides this branch.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` handle_unavailable(r)`})}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Do not handle `,_jsx(_components.code,{children:`error`}),` as `,_jsx(_components.code,{children:`deny`}),`. A malformed request and an unreachable Navige both come back as `,_jsx(_components.code,{children:`error`}),`, told apart by `,_jsx(_components.code,{children:`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.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`long-holds`,children:`Long holds`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`GET /enforce/status/:approvalId`})}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`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 `,_jsx(_components.code,{children:`\"wait\": false`}),` and poll this instead. It answers `,_jsx(_components.code,{children:`pending`}),` until someone decides, then `,_jsx(_components.code,{children:`approved`}),`, `,_jsx(_components.code,{children:`rejected`}),` or `,_jsx(_components.code,{children:`expired`}),`. An approval id it does not know gets `,_jsx(_components.code,{children:`404`}),`. See `,_jsx(_components.a,{href:`/reference/enforce-status`,children:`Check a held decision`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Once settled, `,_jsx(_components.code,{children:`approved`}),` and `,_jsx(_components.code,{children:`rejected`}),` carry `,_jsx(_components.code,{children:`decidedBy`}),`: `,_jsx(_components.code,{children:`{ \"channel\": \"console\", \"memberId\": \"…\", \"role\": \"admin\" }`}),` when a member decided in the console, or `,_jsx(_components.code,{children:`{ \"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.`]}),`\n`,_jsx(Heading,{level:`2`,id:`reporting-the-outcome`,children:`Reporting the outcome`}),`\n`,_jsx(_components.p,{children:`Navige knows whether the call was allowed. It does not know whether the work succeeded, and will not infer it from an HTTP 200.`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`bash`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.navige.ai/v1/transactions/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TX_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/outcome`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-navige-key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$NAVIGE_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"succeeded\": true}'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Windows PowerShell`,numberOfLines:`6`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`{\"succeeded\": true}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'@`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Invoke-RestMethod`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Method Post `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Uri `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.navige.ai/v1/transactions/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`env:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TX_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/outcome\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:\" `\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`@`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-navige-key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`env:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`NAVIGE_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:\"`\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ContentType `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Body `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$body`})]}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`Until you report it, the outcome is `,_jsx(_components.strong,{children:`unjudged`}),`. Unjudged is not the same as failed, and it is counted as neither a success nor a failure.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Decision API","description":"Ask before you act: POST /enforce, and how to handle each answer.","href":"/connect/enforce"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Answers","slug":"answers","depth":2,"children":[]},{"title":"Handling them","slug":"handling-them","depth":2,"children":[]},{"title":"Long holds","slug":"long-holds","depth":2,"children":[]},{"title":"Reporting the outcome","slug":"reporting-the-outcome","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"navige-f7315af9","siteName":"Navige Docs","title":"Decision API - Navige Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-23T15:36:24.957Z","originalFileLocation":"connect/enforce.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Ask before you act: POST /enforce, and how to handle each answer.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Navige Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/navige-f7315af9/V1POghR8PIrkouo4/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/navige-f7315af9/V1POghR8PIrkouo4/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/navige-f7315af9/V1POghR8PIrkouo4/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/navige-f7315af9/V1POghR8PIrkouo4/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/navige-f7315af9/V1POghR8PIrkouo4/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/navige-f7315af9/V1POghR8PIrkouo4/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/navige-f7315af9/V1POghR8PIrkouo4/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/navige-f7315af9/V1POghR8PIrkouo4/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/navige-f7315af9/V1POghR8PIrkouo4/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Decision API - Navige Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Ask before you act: POST /enforce, and how to handle each answer.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Navige Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.navige.ai/connect/enforce\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://navige-f7315af9.mintlify.site/_mintlify/api/og/v2?division=Connect\u0026amp;title=Decision+API\u0026amp;description=Ask+before+you+act%3A+POST+%2Fenforce%2C+and+how+to+handle+each+answer.\u0026amp;theme=19a5823fe47121c22558a2bd\u0026amp;signature=62cafa4219ae0e89d8c531578dee9e28b7ba406467f3a2179fb455420e45b85d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Decision API - Navige Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Ask before you act: POST /enforce, and how to handle each answer.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://navige-f7315af9.mintlify.site/_mintlify/api/og/v2?division=Connect\u0026amp;title=Decision+API\u0026amp;description=Ask+before+you+act%3A+POST+%2Fenforce%2C+and+how+to+handle+each+answer.\u0026amp;theme=19a5823fe47121c22558a2bd\u0026amp;signature=62cafa4219ae0e89d8c531578dee9e28b7ba406467f3a2179fb455420e45b85d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/navige-f7315af9/V1POghR8PIrkouo4/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Navige Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1845C2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.navige.ai/connect/enforce\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/connect/enforce.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.navige.ai/#organization\",\"name\":\"Navige Docs\",\"url\":\"https://docs.navige.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/navige-f7315af9/7L2ph0JoYDzp6A9h/logo/light.svg?fit=max\u0026auto=format\u0026n=7L2ph0JoYDzp6A9h\u0026q=85\u0026s=dbf3224a34bc805aa0cd4d57dfebe8ab\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.navige.ai#website\",\"name\":\"Navige Docs\",\"url\":\"https://docs.navige.ai\",\"publisher\":{\"@id\":\"https://docs.navige.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.navige.ai/connect/enforce#webpage\",\"url\":\"https://docs.navige.ai/connect/enforce\",\"name\":\"Decision API\",\"description\":\"Ask before you act: POST /enforce, and how to handle each answer.\",\"dateModified\":\"2026-11-23T15:36:24.957Z\",\"isPartOf\":{\"@id\":\"https://docs.navige.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.navige.ai/connect/enforce#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.navige.ai/connect/enforce#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Connect\",\"item\":\"https://docs.navige.ai/connect/llm-proxy\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Decision API\",\"item\":\"https://docs.navige.ai/connect/enforce\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.navige.ai/connect/enforce#article\",\"headline\":\"Decision API\",\"name\":\"Decision API\",\"description\":\"Ask before you act: POST /enforce, and how to handle each answer.\",\"url\":\"https://docs.navige.ai/connect/enforce\",\"mainEntityOfPage\":{\"@id\":\"https://docs.navige.ai/connect/enforce#webpage\"},\"dateModified\":\"2026-11-23T15:36:24.957Z\",\"publisher\":{\"@id\":\"https://docs.navige.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.navige.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Navige Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Navige Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/connect/enforce.md","siteName":"Navige Docs","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Get started","pages":[{"title":"Navige Docs","sidebarTitle":"Home","mode":"custom","href":""},{"title":"Quickstart","href":"/quickstart"},{"title":"How a call is handled","href":"/how-it-works"}]},{"group":"Connect","pages":[{"title":"LLM proxy","href":"/connect/llm-proxy"},{"title":"Claude Code","description":"Send Claude Code's model calls through Navige, and what that changes.","href":"/connect/claude-code"},{"title":"Decision API","href":"/connect/enforce"},{"title":"MCP","description":"Put Navige in front of an MCP server so its tools are governed.","href":"/connect/mcp"},{"title":"Usage import","href":"/connect/usage"}]},{"group":"Concepts","pages":[{"title":"Where a saving comes from","href":"/concepts/savings"},{"title":"Watchtower and paid","href":"/concepts/watchtower"},{"title":"Transactions","href":"/concepts/transactions"},{"title":"Recorded, modelled, measured","href":"/concepts/evidence"},{"title":"Policies and decisions","href":"/concepts/policies"}]},{"group":"Help","pages":[{"title":"Troubleshooting","href":"/troubleshooting"}]},{"group":"Updates","pages":[{"title":"Changelog","href":"/changelog"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/reference/endpoints"}]}]},"basePath":"","title":"Decision API - Navige Docs","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}