OPTINROUTER / DEVELOPER DOCS

Developer documentation

Integration guides and public preview contracts for routing, enterprise policies, grammars, context actions and inference traces.

Contract preview · Production API access is closed. All /v1 endpoints currently return 401.Install CLI

Quickstart & authentication

Install the public CLI, understand the closed access gate, and see the proposed inference request.

Read the guide

API reference

Endpoint inventory, availability and planned authorization scopes. All /v1 routes currently return 401 for every supplied key.

Read the guide

Policies & routing configuration

Versioned rules control destinations, processing, transformations and release decisions before preferences are considered.

Read the guide

Grammar definition & enforcement

A grammar is a versioned output contract. It defines allowed structure independently of whether a response sounds plausible.

Read the guide

Context actions & parallel execution

Policy-approved triggers can enrich, filter or transform a flow and run additional checks before or after inference.

Read the guide

Managed, server & device profiles

The same policy model applies across three execution placements. Their trust boundaries and supported hooks differ.

Read the guide

Tracing, provenance & insight

Connect the request, controls, inference and action graph without treating private content as telemetry.

Read the guide

Errors, limits & failure behavior

A failed required control stops the protected flow. A useful error explains the next check without exposing private data.

Read the guide

Interactive workspaces

Four role-specific demos expose the planned routing, action, governance and marketplace workflows.

Read the guide

CLI reference

Install the public access CLI today; review the proposed workspace commands separately.

Read the guide

MCP integration preview

A scoped agent interface to routing, policy explanations, synthetic action simulation and trace metadata. Production MCP access is closed.

Read the guide
01

Start with the public surface

The CLI can be installed today. Login and signup are closed, API keys are not issued, and every /v1 endpoint returns 401. The contracts below define the proposed beta interface. They do not run an inference gateway or an action engine.

02

Choose the part you are building

Read Quickstart for authentication and a minimal request. Use API reference for the endpoint and scope matrix. Policies defines decision precedence and configuration. Grammars and Context actions define the two control layers. Deployment profiles and Tracing cover execution boundaries and evidence. Interactive workspaces maps all four demo roles to their contracts. CLI and MCP have dedicated reference guides.

03

Download the contracts

OpenAPI 3.1 and JSON Schema files are available below. Examples use placeholder model IDs and references. Production compatibility, grammar support and deployment profiles will be certified individually before access opens.

Contracts & examples

Download the preview, validate its shape locally and review the capability limits before planning an integration.

OpenAPI preview

OptinRouter AI guide

Product and developer guidance.

A good place to start

What would you
like to know?

Ask about public APIs, policies, grammars, context actions or the product. This guide uses approved information and can’t reveal private details or take actions.

Recent messages stay in this page’s memory. Reload or reset to clear them here.