VisionX Governance
by VisionX Software

API reference

Connect the AI governance platform through scoped keys, signed webhooks, policy checks and LLM and MCP gateway contracts. Examples are fictional; review evidence before approval.

Open OpenAPI 3.1 specification

Smart routing API and hosted gateway

POST /api/v1/routing/decide and GET /api/v1/routing/decisions both require a company API key with scope routing:read. API feature access is also required when licensing is enforced. Decide accepts target_id (a Space or model app UUID), prompt (1–64,000 characters) and optional capabilities (up to five: tools, JSON output, vision, long context, web). It runs Shield inspection and deterministic routing without calling a model; only the prompt hash is audited. Smart routing must be enabled. Responses include task, complexity, token estimates, candidates, exclusions, qualifying models, chosen model and reason.

Decision history contains metadata, never prompt or answer content. Optional filters are target_id (UUID), task (exact task name), model (model ID, not catalog UUID), since (inclusive ISO 8601 timestamp with time zone) and limit (1–200, default 100). Records are returned newest first inside decisions. Task names are general Q&A, writing, summarization, long documents, coding, analysis/reasoning, translation and data extraction. Unknown query fields return 400 invalid_filters.

Routing errors include 400 invalid_request, 401 missing or invalid key, 403 missing scope or policy denial, 409 routing_disabled, 422 when no model qualifies and 503 routing_unavailable (or decisions_unavailable for history). A no-qualifying-model response still contains the decision with chosen: null and exclusion reasons.

For hosted Chat Completions, POST /api/public/shield/{workspace}/v1/chat/completions with a scoped Shield app key and model: "auto". The workspace identifier must match the key. Smart routing must be enabled and approved models must pass Shield and Space/app policy. Successful routed responses include X-VisionX-Model (selected model ID), X-VisionX-Route-Reason (routing explanation) and X-VisionX-Escalated ("true" or "false"). When Smart routing is off, Auto keeps its existing behavior; these routing headers are not added. Routing does not authorize tool execution.

The examples below use fictional Northwind models, identifiers and estimates. They do not represent real provider prices, real people or production credentials.

API evidence starts pending review

POST /api/v1/grc/evidence requires grc:write and always creates evidence as pending review (review_status: "pending"). Sending review_status cannot accept evidence; the caller value is ignored. A signed-in authorized reviewer must review and accept it in the app. Collection alone does not establish audit readiness or certification.

Workspace administration, trust and editions

Workspace Free includes governed chat, Spaces, knowledge and Actions for up to 3 users. Workspace Business is $15 per user per month billed annually ($180 per user per year), adding memory, administration/analytics, documents and web/image entitlements. Workspace Enterprise is $29 per user per month billed annually ($348 per user per year), adding enterprise sign-in, integrations, schedules and Shadow AI. Governance Enterprise and Private include Workspace Enterprise for up to 25 users; signed additional seats can expand that allocation. Partner console access belongs to assigned partner accounts.

Existing real companies keep licensing off unless an administrator enables signed enforcement. Employee Workspace seat claims are durable and company-scoped; deactivated memberships no longer consume active seats. Governance membership ceilings continue to apply separately. Entitlements never make an unfinished capability available.

Usage reports count tracked conversations, messages, tokens, configured model cost, adoption and redaction/block types. Estimated minutes saved are administrator estimates, not measured productivity. Team budgets alert at 80% and 100%; approval-mode overruns require an administrator adjustment before retry.

Customer SAML/OIDC mapping is not provider provisioning. Live Entra, Google or Okta sign-in requires registered customer metadata and hosted identity setup. Authenticator verification is supported; email codes are not a second factor. SCIM-style deprovisioning removes company access, not a global identity. DPA PDFs are electronic acceptance receipts for the current draft, not cryptographically signed contracts.

US/EU is a recorded preference, not relocation or guaranteed residency. Application storage, employee history, authentication, audit, backups and hosting remain on their existing locations. Provider regional coverage depends on the exact customer endpoint and contract; verify each component separately.

Integrations use only customer-admin tokens or OAuth apps in the encrypted vault, never builder-level connections. OAuth refresh requires existing app/refresh credentials; a complete consent/callback setup is not implemented. All connectors remain Beta and external delivery requires customer verification.

Partner administration and website handoff

Partner organizations and staff assignments are separate from customer memberships. Assign only the intended clients; suspend access immediately and use the 30-day deletion grace period for reviewed offboarding. Cleanup is currently triggered by partner snapshot processing, not a verified autonomous full-product deletion service.

Starter packs, co-branding, brochure resources, statements and public applications are available in the Partner console and Partner program. Client invitations, positive support access and live branded customer onboarding still require customer verification. Never treat a billing preview as settlement or a readiness report as certification.

Shadow AI ingestion, policy and managed deployment

POST /api/v1/shadow-ai/events requires shadow_ai:write; send an array or {events:[...]} containing 1–100 strict metadata events, up to 1 MB. Required fields: event_id, time (ISO 8601 with time zone), user_email, device_id, browser (chrome|edge|other|opera|brave|vivaldi|firefox), site (hostname only), account_type (personal|company|unknown), action (visit|paste_detected|visit_blocked|paste_warned|paste_blocked|upload_blocked|redirected|allowed_by_user|access_requested), optional department and, for access_requested only, optional reason, detector_kinds, counts and extension_version (semantic version). Allowed detector kinds: personal_data, phi, financial, secrets, credentials, confidential, injection, source_code, other. Counts are nonnegative integers up to 1,000,000 per kind. Unknown fields and raw text are rejected, including nested counts.

Idempotency is company-scoped by event_id. Repeated events do not replace earlier records or create duplicate audit entries; 202 returns accepted and duplicates. Missing keys return 401; wrong scopes, inactive companies or missing ws_shadow_ai entitlements return 403; malformed metadata returns 400 and oversized bodies 413. Audit entries retain site/action/detector metadata, not raw content.

GET /api/v1/shadow-ai/policy requires shadow_ai:read and returns mode (monitor|warn|block), allowed_sites, blocked_sites, redirect_url, block_kinds, message and labels [{name,keywords:[...]}] from active company AI Shield confidential labels. Each current Shield label is itself its matching keyword. Both endpoints allow cross-origin extension requests with Access-Control-Allow-Origin * and Authorization/Content-Type headers; OPTIONS preflight returns 204. Extensions 1.0.x and 1.1.0 send {events:[...]} and always report account_type unknown. paste_detected means sensitive data found but allowed in monitor mode; visit_blocked means the site was blocked. It never returns the API key or download configuration. The company configures its own VisionX Workspace redirect URL. Workspace admin shows a bounded 30-day window of up to 5,000 recent reports; a partial-coverage notice appears when truncated.

Managed settings keys are apiBaseUrl (your company HTTPS origin followed by /api/v1) and groups (a list of company group names), and apiKey (a dedicated company key carrying only shadow_ai:write and shadow_ai:read). Google Admin, Intune, Jamf Pro and supported Brave/Opera managed policies use fixed ID mikefpppmbmclhnabcajboppammlkphj and force-install value mikefpppmbmclhnabcajboppammlkphj;https://governance.visionx.software/extension/updates.xml. Off-store installation requires managed computers; unmanaged computers may load the ZIP in Developer mode for testing. Use the downloaded package managed schema. Managed browser credentials can be extracted on compromised devices; rotate dedicated keys after exposure. Workspace → Administration → Shadow AI → Download browser extension opens the download page; select Download visionx-shadow-ai-guard-1.2.1.zip for the verified private ZIP and Create restricted extension key on the Shadow AI tab for managed deployment; signed CRX updates and XML are publicly served without company secrets.

AI Shield 0.3 API: translated providers, bypass header and oversight

POST /api/public/shield/{workspace}/v1/chat/completions also serves Azure OpenAI, Google Gemini and Amazon Bedrock routes. Send the OpenAI Chat Completions body; non-text content on those routes returns 400 with "only text content is supported on <provider> routes". During an approved emergency bypass responses include X-VisionX-Bypass: <id>.

GET /api/v1/shield/oversight with a workspace API key scoped shield:read returns emergency bypasses, feedback counts per rule and the latest evaluation runs with attack success rate, p99 latency and per-category and per-language tables. It never returns prompts, token values or personal data.

In-app operations for bypass start/approve/reject/end, the Allow emergency bypass setting, re-identification opt-in and approval, token reveal, analyst feedback, policy preview and evaluation runs require a signed-in workspace member with the right role and are recorded in the hash-chained audit log; start, approve, end and reveal are marked critical.

AI Shield 0.3 API: red team CI gate and Shadow AI exceptions

POST /api/v1/shield/redteam requires an API key with scope shield:redteam (and the evaluation harness feature). Body (all optional): {"pack_ids":["<uuid>"],"include_builtin":true,"policy":"active"|"staged","baseline":"latest"|"none","fail_on_any":false}. It returns the stored report (policy, policy_version, packs_hash, passed, total, attack_success_rate, results, comparison {regressions, newly_stopped}) plus "gate": "pass" or "fail". The gate fails on any regression against the baseline, or on any attack that got through when fail_on_any is true. 400 invalid body, 401/403 key or scope, 422 missing active/staged policy or unknown pack.

GitHub Actions example: - name: AI Shield red team gate run: | curl -sS -X POST "$VISIONX_URL/api/v1/shield/redteam" -H "Authorization: Bearer $VISIONX_REDTEAM_KEY" -H "Content-Type: application/json" -d '{"policy":"staged","baseline":"latest","fail_on_any":false}' -o redteam.json jq -e '.gate == "pass"' redteam.json env: VISIONX_URL: ${{ vars.VISIONX_URL }} VISIONX_REDTEAM_KEY: ${{ secrets.VISIONX_REDTEAM_KEY }}

Shadow AI events accept action access_requested with an optional reason (≤280 characters, only on access_requested) and an optional department on any event (≤64 characters: letters, digits, space and & - . /). GET /api/v1/shadow-ai/policy now also returns "access_requests": true when Allow access requests is on, and its allowed/blocked lists include synced catalog decisions. GET /api/v1/shadow-ai/exceptions?user=<email> (scope shadow_ai:read, CORS like the other Shadow AI endpoints) returns {"exceptions":[{"site":"…","expires_at":"ISO time"}]} for that user's approved, unexpired exceptions; a missing or invalid user returns 400.

AI Shield gateway: conversation history setting

Under AI Control Plane → AI Shield → Model apps, the company setting "Allow conversation history (assistant/tool turns) from gateway clients" is off by default for new companies, and each model app has its own matching switch that is off by default for new clients. Both must be on before the gateway accepts earlier assistant or tool turns.

Companies and clients that already used the gateway when this setting arrived were switched on automatically so existing integrations keep working; the audit log records this as shield.gateway_history.auto_enabled, and every later change is audited.

When history is on, every assistant and tool turn receives the same AI Shield checks as prompts, tool-call arguments are inspected too, and each tool turn must match a tool call earlier in the same request. History is encoded as untrusted user data rather than authoritative provider assistant/tool roles; only server-owned instructions have authority. Callers can never send system or developer instructions. When history is off, requests that include those turns are rejected with a message telling the caller to contact an administrator.

AI Shield 0.3 API: delegation header, gateway behavior alerts and revocation

MCP gateway callers may send X-VisionX-Delegation: agent-a, agent-b, agent-c listing the delegation chain. Three or more agents raise delegation_chain, agents not in AI Inventory raise unknown_delegate:<id>, and repeats raise delegation_loop. The header is metadata only and never authorizes a call.

Connected self-hosted gateways can report behavior alerts in POST /api/v1/gateways/audit by adding alert_kind (new_destination:<host>, permission_probing, privilege_change:<tool>, privilege_escalation, delegation_chain, unknown_delegate:<id> or delegation_loop) and agent to an event. Unknown kinds are rejected with 400.

Revoked Shield keys (vxsh_, vxfleet_), gateway keys (vxcp_) and Shadow AI keys (vxg_) return 401 unauthorized on the next request. Quarantined agents or apps, disabled tools and disabled routes return the existing emergency deny decision.

AI Shield 0.3 administration: providers, bypass, tokenization and evaluation

Model routes can use OpenAI, Anthropic, Azure OpenAI (resource endpoint, API version 2024-10-21 or v1, optional deployment mapping), Google Gemini (generateContent) or Amazon Bedrock (Converse, with a Bedrock API key or an access key pair signed with Signature Version 4). Applications always call the OpenAI Chat Completions format at /api/public/shield/<workspace>/v1; the gateway translates requests and answers and returns a 400 for non-text content on translated routes. Retries (0–5, default 0) cover network errors, 429 and 5xx with exponential backoff and Retry-After up to 5 seconds.

Allow emergency bypass is off by default. An Administrator can request a bypass for one route, one app or the whole workspace for 1–240 minutes with a reason; a different Administrator or Reviewer must approve it. Start, approval and end are audited as critical. Each model app can override warn/block/quarantine thresholds.

Redaction style can be Placeholder (default) or Reversible token. Tokens such as [[email-1a2b3c4d5e]] are deterministic per workspace, values are encrypted with AES-256-GCM using a per-workspace vault key and expire after a TTL (default 24 hours, maximum 30 days). Secrets are never tokenized. Restore tokens in answers is a per-app option. Re-identify tokens requires an Administrator who enables it for themselves plus a second approver; each reveal of up to 100 tokens needs a reason and is audited as critical without values.

Evaluation datasets: Built-in (247 samples including obfuscated, multilingual and multi-turn cases), Feedback, Built-in + feedback, or upload. Reports add attack success rate, p99 latency and per-category and per-language recall and false-positive rate. Metrics describe the dataset only. Source code is a new detector category (risk weight 35, default alert).

AI Shield administration, model routes and evaluation

Stage a Model policy, validate and activate it, register an app with approved provider/model/endpoint routes, store its customer provider key with the exact HTTPS origin audience, then issue an expiring Shield key. Business includes model gateway, observe mode and exceptions. Enterprise/Private add output validation, analytics, graph, evaluation, signed policies and fleet. Existing workspace licensing stays unchanged and off by default.

SDK base URL is /api/public/shield/WORKSPACE/v1, supporting /chat/completions, /responses and /messages. Never send customer provider tokens from client applications. Request bytes, maximum output tokens, daily per-app/agent token and dollar budgets and concurrency are bounded. Worst-case cost is reserved before egress; incomplete provider usage remains conservatively reserved. Configure honest provider pricing and route SLO in the approved route. Test connection checks the configured provider; Test with mock exercises gateway inspection and budgets without provider credentials. Monitoring shows per-route p50/p95/p99 and SLO breaches.

Prompt evaluation uses POST /api/v1/shield/evaluate-prompt with app, bound agent, approved model, classification_tags and segments [{text,trust,source,label}]. External integrations use /api/public/shield/evaluate-prompt. Responses include decision, would_be, mode, risk_score, rule_ids, policy_version, policy_hash, event_id and correlation_id.

Tool authorization uses POST /api/v1/shield/authorize-tool with app, actor (scoped credential ID), agent, tool, server, tool_schema_sha256 (legacy tool_schema_hash accepted), typed args, data_class and intended_side_effect. External integrations use /api/public/shield/authorize-tool. Signed VXSH1 HMAC capabilities expire after 60 seconds and bind the exact call; POST /api/v1/shield/redeem (external /api/public/shield/redeem) consumes the nonce once and rechecks current policy and schema. Denied or held approval calls never receive an executable allow capability. Restricted or confidential send, payment and delete operations require exact-call human approval; a different approved tool schema hash is denied. Administrators export incident evidence by event, correlation, session, agent or time window. Exports include redacted events, policy versions, timestamps, hashes and a bundle SHA-256 and are audited. Link Inventory & GRC evidence creates pending-review records resolving to the same event ID; administrator audit packs include those records.

The built-in dataset contains 200 fictional US-English benign/adversarial cases. Evaluation reports record dataset/policy hashes, precision, recall, false-positive/negative rates, confusion matrix and latency p95. Customer CSV/JSONL imports are limited to 1 MB and 2,000 cases. Retained results contain sanitized excerpts and sample hashes only; customer sample content must be fictional or already sanitized.

Policy revisions are hashed and signed drafts until activation; rollback can restore an earlier version in the same policy family atomically. Last-known-good enforcement remains available if the active policy fails integrity verification. Sanitized behavioral attacks rerun before activation, rollback and on demand; a bypass raises a critical finding and blocks the change unless an administrator supplies an audited override reason. Enterprise/Private can download Ed25519-signed policy bundles with the verification public key. Connected Private gateways use a fleet-key-authenticated heartbeat at POST /api/v1/gateways/heartbeat (external /api/public/gateways/heartbeat), with a three-minute stale fail-closed contract; disconnected offline gateways cannot receive immediate emergency updates. Gateway connected-mode request contracts (first verified with 0.3.0) are tested against the hosted endpoints. Heartbeats accept a registered fleet key or a workspace API key with gateways:write scope; the response includes kill_switch entries. POST /api/v1/gateways/audit or /api/v1/events receives the VisionX audit envelope, retains sequence/hash links and creates pending evidence. Contract replay does not verify the container or Helm deployment itself.

Supported file extraction is limited to UTF-8 plain text, CSV, JSON and JSONL. PDF, image, audio and video content is not inspected by this revision; block it by default or explicitly mark it uninspected under policy. OAuth client-credentials is configured per model route or MCP server with a token URL, client ID, encrypted secret, scope and audience/resource. Short-lived bearer tokens must declare the expected audience and are encrypted in a cache until 60 seconds before expiry. Test credentials performs a fresh HTTP Basic client-credentials exchange against the saved token URL and shows success or a safe protocol error without revealing tokens; real customer tenant success still requires valid credentials. SIEM presets reuse HTTPS/TLS, all-address destination checks, no redirects, signing and bounded retry. Readiness and evidence never imply certification.

Control Plane administration, SIEM & hosted gateway

Eight feature keys are cp_inventory, cp_discovery, cp_inspection, cp_schema_lock, cp_sessions, cp_policy_packs, cp_siem and cp_gateway. Licensing is off by default. Readers remain workspace-scoped; changes require a governance editor. Schema acceptance requires a reviewer or manager; gateway keys and SIEM credentials require an administrator.

Alerts record blocked/redacted actions, schema changes and new unowned findings. SIEM presets format Splunk HEC, Elastic, Datadog and generic JSON events. The Sentinel preset targets a customer-managed JSON receiver, not native Azure Log Analytics signing. Deliveries are HMAC-SHA256 signed, logged, and capped at three attempts. Retry processing runs with the existing nightly job or through the manual test/retry controls.

SIEM, webhooks and gateway upstream calls resolve every A/AAAA address immediately before each send and retry; any private, loopback, link-local, CGNAT, multicast, reserved or metadata address blocks delivery. HTTPS uses normal TLS hostname verification. All 3xx responses fail without following redirects. Sends use a 12-second timeout (ordinary webhooks 5 seconds). No external DNS-pinning service is required. Because HTTPS fetch resolves independently after the check, a small DNS-rebinding race remains; use trusted destinations and stable DNS.

Issue a gateway key on an owned registered MCP server linked to an inventory agent and an inspection policy. The key is shown once, hashed at rest, bound to one server/agent/workspace, scoped gateway:call and expiring. POST /api/public/gateway/mcp/{workspace}/{server} with Authorization: Bearer vxcp_<secret> and optional X-VisionX-Session-Id. Keep keys outside committed client configuration.

Sample client configuration: {"mcpServers":{"visionx":{"url":"[customer provider endpoint]","headers":{"Authorization":"Bearer ${VISIONX_GATEWAY_KEY}"}}}}. Substitute your public app domain and record IDs; use a client that supports environment-expanded secret headers.

This revision is a bounded stateless Streamable HTTP proxy: initialize, ping, tools/list and tools/call only; POST notifications return 202. JSON and finite SSE results are supported. Request/response maximum is 1 MB and outbound timeout is 12 seconds. These are application limits, not verified hosting ceilings; hosting may impose tighter limits. Persistent MCP sessions, GET event streams, stdio processes and long-running tools are not supported. Stateful upstreams requiring MCP-Session-Id are rejected.

Every tool call refreshes the upstream tool catalog before policy evaluation. New or changed schemas stay pending review. Allowed/redacted arguments are forwarded and tool results are inspected before release. Approval-required calls are held and never forwarded; automatic resume after approval is not implemented. For customer-network deployments, self-hosted gateway version 0.5.0 is available to licensed Private / Regulated customers as a container image and Kubernetes Helm package. It works offline with a signed GOV license containing cp_gateway and enforces every routed MCP tool call with policy, redaction, maker-checker approvals, schema locking, tamper-evident audit and SIEM export. Contact sales for the installation package and guide. AI Shield adds an OpenAI- and Anthropic-compatible model gateway, decision APIs, observe mode, exceptions, emergency deny/quarantine, signed configuration, an evaluation harness and fleet heartbeat. High availability is active/standby, not active-active; detection is layered and not a guarantee. Nothing here establishes certification or enforcement outside calls routed through the gateway.

API keys, webhooks & OpenAPI

Create named workspace API keys with only the scopes required. Copy the secret once and keep it outside source code. Revoke unused or compromised keys. Send Authorization: Bearer vxg_<key> or X-API-Key. API access also requires the api license feature when licensing is enforced.

Vendor endpoints are /api/v1/vendors, /vendor-assessments, /vendor-issues and /vendor-documents. GET uses tprm:read; POST/PATCH uses tprm:write. Requests are scoped to the key’s workspace. Assessment PATCH records scored decisions, not arbitrary vendor submissions.

GRC endpoints provide frameworks, controls, tests, evidence and risks under /api/v1/grc. AI endpoints include ai-systems, incidents, events, agent-policy/check and approvals/{id}. The current OpenAPI 3.1 document is /api/v1/openapi.json.

Outgoing webhooks use X-VisionX-Signature: t=<unix>,v1=<hex> over <t>.<raw body> with HMAC-SHA256. Verify the raw payload and timestamp before processing, and handle repeated deliveries idempotently.

Vendor events include vendor.created/updated, assessment.submitted/decided, issue.created/updated and document.expiring. GRC adds control.status_changed, test.failed, evidence.expiring and risk.created/updated. Production portal submissions cannot access other vendors or internal records.

Smart routing · Fictional request and response examples

POST /api/v1/routing/decide · routing:read

{
  "target_id": "00000000-0000-4000-8000-000000000901",
  "prompt": "Draft a brief agenda for the fictional Northwind control review.",
  "capabilities": []
}

200 · Routing decision

{
  "task": "writing",
  "complexity": "low",
  "ambiguous": false,
  "input_tokens": 24,
  "output_tokens": 512,
  "candidates": [
    {
      "id": "00000000-0000-4000-8000-000000000910",
      "model": "northwind-fast-example",
      "name": "Northwind Fast example",
      "tier": "Fast",
      "quality": 82,
      "cost": 0.00014,
      "excluded": []
    }
  ],
  "qualifying": [
    {
      "id": "00000000-0000-4000-8000-000000000910",
      "model": "northwind-fast-example",
      "name": "Northwind Fast example",
      "tier": "Fast",
      "quality": 82,
      "cost": 0.00014,
      "excluded": []
    }
  ],
  "chosen": {
    "id": "00000000-0000-4000-8000-000000000910",
    "model": "northwind-fast-example",
    "name": "Northwind Fast example",
    "tier": "Fast",
    "quality": 82,
    "cost": 0.00014,
    "excluded": []
  },
  "reason": "Lowest cost; policy filters passed; quality 82.0 / minimum 60"
}

GET /api/v1/routing/decisions · routing:read

/api/v1/routing/decisions?target_id=00000000-0000-4000-8000-000000000901&task=writing&model=northwind-fast-example&since=2026-11-18T00%3A00%3A00Z&limit=20

200 · Decision history

{
  "decisions": [
    {
      "id": "00000000-0000-4000-8000-000000000920",
      "workspace_id": "00000000-0000-4000-8000-000000000900",
      "target_id": "00000000-0000-4000-8000-000000000901",
      "user_id": null,
      "created_at": "2026-11-18T07:00:00Z",
      "metadata": {
        "task": "writing",
        "complexity": "low",
        "model": "northwind-fast-example",
        "name": "Northwind Fast example",
        "tier": "Fast",
        "reason": "Lowest cost; policy filters passed; quality 82.0 / minimum 60",
        "candidates": [
          {
            "id": "00000000-0000-4000-8000-000000000910",
            "model": "northwind-fast-example",
            "name": "Northwind Fast example",
            "tier": "Fast",
            "quality": 82,
            "cost": 0.00014,
            "excluded": []
          }
        ],
        "input_tokens": 24,
        "output_tokens": 512,
        "cost": 0,
        "baseline": 0.00014,
        "escalations": 0,
        "fallbacks": 0,
        "attempts": [],
        "cache_hit": true,
        "classifier": null
      }
    }
  ]
}

Hosted gateway · model auto

{
  "model": "auto",
  "messages": [
    {
      "role": "user",
      "content": "Draft a brief agenda for the fictional Northwind control review."
    }
  ],
  "max_completion_tokens": 512
}

X-VisionX-Model: northwind-fast-example
X-VisionX-Route-Reason: Lowest cost; policy filters passed; quality 82.0 / minimum 60
X-VisionX-Escalated: false

400 · Conversation history disabled

{
  "error": {
    "type": "invalid_request",
    "message": "Conversation history (assistant/tool turns) is turned off for this gateway client. A company administrator can enable it under AI Control Plane → AI Shield → Gateway settings, and on the gateway client."
  }
}

Shield SDK · TypeScript

import OpenAI from 'openai';
const client = new OpenAI({
  apiKey: process.env.VISIONX_SHIELD_KEY,
  baseURL: process.env.VISIONX_SHIELD_BASE_URL // /api/public/shield/WORKSPACE/v1
});
const response = await client.chat.completions.create({
  model: 'YOUR_APPROVED_MODEL',
  messages: [{role: 'user', content: 'Summarize the approved control review.'}],
  max_completion_tokens: 1024
});
// Never log raw prompts, provider keys or protected responses.
// Enforce tool authorization separately before any enterprise action.

Shield SDK · Python

import os
from openai import OpenAI
client = OpenAI(api_key=os.environ['VISIONX_SHIELD_KEY'],
                base_url=os.environ['VISIONX_SHIELD_BASE_URL'])
response = client.chat.completions.create(
    model='YOUR_APPROVED_MODEL',
    messages=[{'role': 'user', 'content': 'Summarize the approved control review.'}],
    max_completion_tokens=1024)
# Tool calls require independent exact-call authorization and single-use consumption.
# Never log raw prompts or credentials.