Braintrust Functions API

The Functions API from Braintrust — 3 operation(s) for functions.

GitHub OpenAPI

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

0 of 7 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 1 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

POST /v1/function Create a function without replacing · Create function #
Ask an LLM
“How do I create a new function in a project?”
“What happens if I create a function with a slug that already exists?”
Tell an agent
Create function {slug} in project {project_id} with {function_data}.
Add a new function {slug} to {project_id} described as {description}.
PUT /v1/function Replace a function's definition · Create or replace function #
Ask an LLM
“How do I overwrite a function's definition in a project?”
“Will replacing a function with the same slug replace the existing one?”
Tell an agent
Replace function {slug} in project {project_id} with {function_data}.
Overwrite the function {slug} in {project_id} with prompt {prompt_data}.
GET /v1/function List functions in a project · List functions observed #
Ask an LLM
“Which functions are defined in my Braintrust project?”
“Can I list only the functions from one project?”
Tell an agent
List all functions in project {project_id}.
Find the function named {function_name} in project {project_id}.
GET /v1/function/{function_id} Get a function by id · Get function #
Ask an LLM
“How do I fetch one function's definition by its id?”
“Can I read a function's definition at a specific version?”
Tell an agent
Get function {function_id}.
Show function {function_id} at version {version}.
PATCH /v1/function/{function_id} Partially update a function · Partially update function #
Ask an LLM
“How do I rename a function or change its description?”
“Can I add tags to an existing function?”
Tell an agent
Rename function {function_id} to {name}.
Set the tags on function {function_id} to {tags}.
DELETE /v1/function/{function_id} Delete a function · Delete function #
Ask an LLM
“How do I delete a function from a project?”
“Can I remove a function by its id?”
Tell an agent destructive · confirm first
Delete function {function_id}.
Remove the function {function_id} from its project.
POST /v1/function/{function_id}/invoke Invoke a function · Invoke function #
Ask an LLM
“How do I call a function with an input?”
“Can I invoke a function and expect a specific output?”
Tell an agent
Invoke function {function_id} with input {input}.
Call function {function_id} expecting output {expected}.

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/braintrust:braintrust-functions-api"
All apis
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.

Get an API 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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

braintrust-functions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.0
  title: Braintrust Functions API
  description: 'API specification for the backend data server. The API is hosted globally at

    https://api.braintrust.dev or in your own environment.


    You can access the OpenAPI spec for this API at https://github.com/braintrustdata/braintrust-openapi.'
  license:
    name: Apache 2.0
servers:
- url: https://api.braintrust.dev
security:
- bearerAuth: []
- {}
tags:


# --- truncated at 32 KB (74 KB total) ---
# Full source: https://artifacts.apis.io/braintrust/openapi/braintrust-functions-api-openapi.yml