BrainstormRouter Liaison API
The liaison API from BrainstormRouter — 4 operation(s) for liaison.
The liaison API from BrainstormRouter — 4 operation(s) for liaison.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/brainstormrouter-com:brainstormrouter-com-liaison-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: BrainstormRouter Liaison API
version: 1.0.0
description: 'Autonomous AI API Engine — multi-tenant gateway that intelligently routes
AI traffic across providers with built-in memory, cost optimization, and
autonomous background processing.
All `/v1/*` endpoints require an API key via `Authorization: Bearer `.'
contact:
name: BrainstormRouter
url: https://brainstormrouter.com
license:
name: Proprietary
identifier: LicenseRef-Proprietary
servers:
- url: https://api.brainstormrouter.com
description: Production
security:
- BearerAuth: []
tags:
- name: liaison
paths:
/v1/liaison/open:
post:
operationId: liaisonOpen
summary: Open a negotiation session — mint signed liaison_id and SSE downlink URL
tags:
- liaison
x-br-capability-id: liaison.open
x-br-version: v1
requestBody:
required: true
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
properties:
intent_summary:
type: string
minLength: 1
maxLength: 1024
description: Plain-English statement of what this liaison is for
max_total_cost_usd:
type: number
exclusiveMinimum: 0
description: Hard upper bound on total spend across all committed plans
expected_duration_s:
type: integer
exclusiveMinimum: 0
maximum: 86400
description: Anticipated lifetime; clamped to the session TTL
peer_agent_card_url:
description: A2A peer agent card URL when opening on behalf of a peer
type: string
format: uri
callback_url:
description: Reserved for v2 server-initiated callbacks; ignored in v1
type: string
format: uri
required:
- intent_summary
- max_total_cost_usd
- expected_duration_s
additionalProperties: false
responses:
'200':
description: Success
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
propertyNames:
type: string
additionalProperties: {}
security:
- BearerAuth: []
/v1/liaison/{liaison_id}/close:
post:
operationId: liaisonClose
summary: Finalize a liaison — emit cost summary, trace digest, expire delegations
tags:
- liaison
x-br-capability-id: liaison.close
x-br-version: v1
parameters:
- name: liaison_id
in: path
required: true
schema:
type: string
minLength: 1
requestBody:
required: true
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
properties:
liaison_id:
type: string
minLength: 1
required:
- liaison_id
additionalProperties: false
responses:
'200':
description: Success
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
propertyNames:
type: string
additionalProperties: {}
security:
- BearerAuth: []
/v1/liaison/{liaison_id}/events:
get:
operationId: liaisonEvents
summary: SSE stream of routing decisions and trace envelopes scoped to a liaison session
tags:
- liaison
x-br-capability-id: liaison.events
x-br-version: v1
parameters:
- name: liaison_id
in: path
required: true
schema:
type: string
minLength: 1
responses:
'200':
description: Success
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
propertyNames:
type: string
additionalProperties: {}
security:
- BearerAuth: []
/v1/liaison/{liaison_id}/plan:
post:
operationId: liaisonPlan
summary: Mint a signed pre-flight contract binding cost ceiling + prompt fingerprint
tags:
- liaison
x-br-capability-id: liaison.plan
x-br-version: v1
parameters:
- name: liaison_id
in: path
required: true
schema:
type: string
minLength: 1
requestBody:
required: true
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
properties:
messages:
minItems: 1
type: array
items: {}
description: OpenAI-shaped messages
model:
description: Optional preferred model; if omitted BR auto-selects
type: string
max_tokens:
type: integer
exclusiveMinimum: 0
maximum: 128000
cost_slack:
type: number
minimum: 0
maximum: 1
max_cost_usd:
type: number
exclusiveMinimum: 0
ttl_seconds:
type: integer
minimum: 1
maximum: 300
allowed_models:
type: array
items:
type: string
allowed_tools:
type: array
items:
type: string
required:
- messages
additionalProperties: false
responses:
'200':
description: Success
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
propertyNames:
type: string
additionalProperties: {}
security:
- BearerAuth: []
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: API key (e.g. `br_live_...`)
SupabaseJWT:
type: http
scheme: bearer
description: Supabase JWT token (dashboard auth)