Reference

API reference

This section contains the full API specification for Braintrust's data plane. The API is hosted globally at https://api.braintrust.dev or in your own environment. The API allows you to access all of the core objects in Braintrust, including experiments, datasets, prompts, users, groups, roles, and more. It also enables you to access Braintrust from languages other than TypeScript and Python.

You can access the full OpenAPI spec for this API at https://github.com/braintrustdata/braintrust-openapi.

API wrappers

Through Stainless, we have language-specific wrappers over the bare REST API for a variety of languages. Note that unlike our custom-built Python or TypeScript SDKs, these libraries map essentially 1:1 with the REST API: