Braintrust · AsyncAPI Specification
Braintrust Streaming (SSE) API
Version 1.0
AsyncAPI description of Braintrust's documented HTTP Server-Sent Events (SSE) streams. Braintrust does NOT expose a WebSocket API. Streaming is delivered as one-way HTTP SSE over the same REST endpoints when the request body sets `stream: true`: streaming function invocation and the OpenAI-compatible AI proxy chat completions endpoint. This document models those SSE streams; it must not be read as describing a WebSocket transport.
View Spec
View on GitHub
Artificial IntelligenceLLMEvaluationObservabilityLLMOpsAsyncAPIWebhooksEvents
Channels
/v1/proxy/chat/completions
Receive streamed chat completion chunks over SSE.
OpenAI-compatible chat completions over the AI proxy. When the request sets stream=true, the response is an SSE stream of completion chunks terminated by a `data: [DONE]` event.
/v1/function/{function_id}/invoke
Receive streamed function invocation events over SSE.
Server-side function invocation. When the request sets stream=true, the function result is delivered as an SSE stream of progress and result events.
Messages
ChatCompletionChunk
Chat Completion Chunk (SSE data event)
One SSE `data:` event carrying a partial chat completion delta.
FunctionInvokeEvent
Function Invoke Event (SSE data event)
One SSE `data:` event carrying a chunk of the function invocation result.
Servers
https
production
api.braintrust.dev
Braintrust US data plane. SSE streams are delivered over HTTPS POST requests with stream=true; this is HTTP Server-Sent Events, not WebSocket. EU data plane is api-eu.braintrust.dev.
AsyncAPI Specification
Work with this as data
Every AsyncAPI spec here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for asyncapi
4 MCP tools reach this
find_asyncapisBrowse and filter every AsyncAPI spec in the catalog.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.
Call it yourself
curl for this page
This AsyncAPI spec
curl "https://apis.io/api/v1/asyncapis/braintrust-data-asyncapi"
All asyncapi
curl "https://apis.io/api/v1/asyncapis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.