BRIDGE API Reference

One endpoint, one bearer token, signed consensus out. SDKs in five languages, MCP-compatible, GitHub Action, OpenAI / Copilot / Gemini plugins. This page is the authoritative reference.

BASE URL https://api.getbridge.dev/v1

Introduction

The BRIDGE API exposes the verification protocol: dispatch content to a panel of frontier AI models, orchestrate adversarial debate when they disagree, return a signed consensus with confidence score and audit trail.

Every endpoint returns JSON. Every response includes consensus_id when applicable. Every consensus is reproducible — the same input dispatched within 24 hours returns the cached result with the same consensus_id.

Authentication

All requests require a bearer token in the Authorization header. Create keys at Dashboard → API Keys.

$ curl https://api.getbridge.dev/v1/auth/me \
   -H "Authorization: Bearer sk_live_..."

Keys are scoped: read, verify, ask, admin. Production keys are prefixed sk_live_; test keys sk_test_. Rotate keys via dashboard or API.

Base URL & Versions

Production: https://api.getbridge.dev/v1. Sandbox: https://api.getbridge.dev/v1?env=sandbox (free, returns cached canned responses). EU residency: https://api.eu.getbridge.dev/v1.

The v1 version is stable. Breaking changes will go to v2 with 12-month deprecation notice for v1.

Error Codes

CODEHTTPMEANING
BRIDGE_UNAUTHENTICATED401Missing or invalid token.
BRIDGE_FORBIDDEN403Token lacks scope.
BRIDGE_QUOTA_EXCEEDED402Plan quota hit.
BRIDGE_RATE_LIMITED429Rate limit hit. Retry-After provided.
BRIDGE_LOOP_DETECTED429Recursive verify of a prior result.
BRIDGE_INPUT_TOO_LARGE413Content exceeds tier limit.
BRIDGE_PANEL_UNAVAILABLE503≥ 2 models in panel timed out.
POST /v1/verify CORE · TIER 1–3

Run the full consensus protocol on a content artifact. Returns verdict, confidence, corrections, audit hash.

Request body

PARAMTYPEDESCRIPTION
contentstring requiredUp to 50K tokens.
tier1 | 2 | 3Routing tier. Default 2.
categorystringcontracts · code · claims · business · healthcare · compliance · other
panelstring[]Override model selection. Team / Enterprise only.
thresholdnumberConfidence threshold for findings. 0.50–0.99. Default 0.75.
project_idstringAttribute to a project.

Response (200 OK)

{
  "consensus_id": "c_7f2a91b4e8c3d09f",
  "verdict": "verified_with_corrections",
  "confidence": 0.942,
  "models_agreed": 5,
  "rounds": 2,
  "latency_ms": 4823,
  "corrected_content": "...",
  "corrections": [
    { "id": "F-01", "severity": "high", "applied": true }
  ],
  "audit": {
    "input_hash": "0xa8f3...",
    "signature": "ed25519:3a91...",
    "chain_block": 2184309
  }
}
POST /v1/ask ASK · CONVERSATIONAL

Verified Answers — conversational endpoint. Routes automatically across tiers. Returns body + confidence + optionally debate transcript.

Request body

PARAMTYPEDESCRIPTION
querystring requiredThe question.
conversation_idstringContinue a prior conversation.
force_tier"auto" | 1 | 2 | 3Override automatic routing.
include_transcriptbooleanInclude the debate transcript for T3 responses. Default false.
GET /v1/consensus/records AUDIT

List consensus records for your account. Paginated, filterable.

Query parameters

PARAMTYPEDESCRIPTION
limitint1–100. Default 25.
cursorstringPagination cursor.
categorystringFilter by category.
min_confidencenumberFilter by min confidence.
from / toISO 8601Date range.
GET /v1/consensus/{id} AUDIT

Retrieve a single consensus by ID. Includes full panel verdicts, corrections, signed audit hash, and chain anchor.

GET /v1/consensus/{id}/report AUDIT · PDF

Generate a signed PDF audit report. Includes methodology, per-model verdicts, debate transcript, and chain proof. Returns application/pdf.

GET /v1/models PUBLIC

List available panel models with current health, latency, and pricing. No auth required.

GET /v1/leaderboard PUBLIC · CACHED 5MIN

Live model performance rankings. No auth. Returns 7-day adversarial survival scores by domain.

GET /v1/auth/me ACCOUNT

Returns your account info: user ID, tier, organization, scopes, current usage.

GET /v1/billing/status ACCOUNT

Current plan, usage against quota, next invoice date.

POST /v1/projects ACCOUNT

Create a project. Also GET, PUT, DELETE on /v1/projects/{id}.

POST /v1/api-keys ACCOUNT

Create a new API key. Returns the full key once (the only time you'll see it). Subsequent listings show prefix only.

POST /v1/webhooks AUTOMATION

Create a webhook subscription. Events: consensus.completed, consensus.failed, usage.threshold. Payloads HMAC-SHA256 signed; verify with the X-BRIDGE-Signature header.

Guide · Tier Routing

BRIDGE routes queries across three tiers automatically. You can override with tier on verify or force_tier on ask.

Guide · Webhook Signatures

Every webhook payload is signed with HMAC-SHA256 of the request body, keyed with your webhook secret. Verify before acting.

$ echo -n "$BODY" | openssl dgst -sha256 -hmac "$SECRET"
# Compare with X-BRIDGE-Signature header (constant-time compare)

Guide · Rate Limits

TIERREQ / MINBURST
Starter60120
Builder6001,200
Team6,00012,000
EnterpriseCustomCustom

Guide · SDKs

Five official SDKs: Python, JavaScript / TypeScript, Go, Ruby. Beta: Rust, Java. See Developers.