Skip to content
Docs

API & Automation

AgentWatch has two API surfaces: the inference API applications call, and an administrative API covering everything the console can do — so provisioning and policy can be driven from existing automation rather than clicked through a UI.

A full OpenAI-compatible surface — chat completions, legacy completions, embeddings, images, audio, batches, reranking, fine-tuning, moderations, and the complete Assistants, Files, and Vector Stores APIs — plus native Anthropic Messages, Google Vertex AI, Azure OpenAI, and Cohere V2 endpoints. Streaming is fully supported, with token counting and time-to-first-token measured on streamed responses.

Authentication accepts an API key (header or bearer), a session token, or a per-user key. Every request, on every path, passes through the full pipeline: authentication, rate limiting, DLP, guardrails, schema validation, routing, proxying, response processing, and event emission. There is no bypass route.

The full governance surface: organizations, teams, and employees; provider and key management including efficacy testing and rotation; the model catalog and per-team model access; budgets and rate limits; DLP policies and custom recognizers; guardrail policies; gateway routes and plugins; schema definitions; MCP server registration and access-control lists; identity providers and SCIM configuration; roles and permissions; audit and usage queries; the event pipeline; webhooks; agent-fleet administration and identity policy; insider-risk indicators, cases, and enforcement policy; and observability queries behind the console dashboards.

Yes. AgentWatch auto-publishes OpenAPI 3.x specifications for its gateway routes, with an interactive documentation page mounted in the product so developers can authorize and try endpoints against a live instance. Security schemes and scopes are included in the generated specification, so client generation and contract testing work without reverse-engineering the surface. A full API test collection with a CI runner ships alongside each release for smoke testing and post-upgrade acceptance.

Through scoped API keys with time-to-live and rotation hooks, rather than a separate client-credentials token endpoint. Keys carry the organization’s model access, budget, and DLP policy, can be scoped to an individual service or employee, and are revocable independently of any deployment change. Incoming OIDC tokens can additionally carry scopes, and gateway routes can require named scopes and reject calls missing them.

  • Employee lifecycle — provision and deprovision users, keys, and budgets from the HR system or directory, or hand it entirely to SCIM.
  • Key rotation — rotate provider keys and user keys on a schedule as part of the existing secrets workflow.
  • Policy as code — keep DLP policies, guardrail settings, gateway routes, and budgets in version control and apply them through the API, so a change is reviewed before it reaches production.
  • Compliance export — pull audit records on a schedule into a SIEM or long-term archive.
  • Cost reporting — export usage and cost by team, user, model, and task category into the finance system for chargeback.
  • Incident response — pause an employee’s or an agent’s access, and open an insider-risk case, from an existing security-orchestration playbook.

Yes. Sandboxed JavaScript plugins run at pre-request and post-response hooks, filtered by route pattern, with their own configuration and priority — used for organization-specific transformations, header injection, and custom checks. A separate enrichment pipeline can call external tools or APIs in response to configurable triggers, with a full audit trail of what each enrichment did.