How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Braintrust Logs API

The Logs API from Braintrust — 3 operation(s) for logs.

Braintrust Logs API is one of 41 APIs that Braintrust publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Logs. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 4 operations across 3 paths, and defines 21 schemas. It is described by OpenAPI 3.2.0, at version 1.0.0.

Requests are made against a single base URL, https://api.braintrust.dev.

4 operations 3 paths 21 schemas 1 GET3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0.0
Base URL
https://api.braintrust.dev
Authentication
HTTP Bearer
License
Apache 2.0
Resource Areas
1

Authentication & Security 1

Braintrust Logs API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (API key or JWT) (bearerAuth). By default, every request must be authenticated, though some operations may also be called without credentials.

  • bearerAuth — Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [apikey] to your HTTP request. You can create an API ke…

Paths & Operations 4

Across 3 paths, the API surfaces 4 operations — 1 GET, 3 POST. Each is listed below with its method, path, parameters, and response codes.

Logs 4
POST
/v1/project_logs/{project_id}/insert
Insert project logs events
postProjectLogsIdInsert 1 param body → 200400401403429500
POST
/v1/project_logs/{project_id}/fetch
Fetch project logs (POST form)
postProjectLogsIdFetch 1 param body → 200400401403429500
GET
/v1/project_logs/{project_id}/fetch
Fetch project logs (GET form)
getProjectLogsIdFetch 5 params → 200400401403429500
POST
/v1/project_logs/{project_id}/feedback
Feedback for project logs events
postProjectLogsIdFeedback 1 param body → 200400401403429500

Schemas 21

The contract defines 21 schemas that model the data the API accepts and returns. The most detailed are ProjectLogsEvent (27 properties), InsertProjectLogsEvent (22 properties), FeedbackProjectLogsItem (7 properties), ObjectReferenceNullish (5 properties). Each schema is shown below with its type and property counts.

InsertProjectLogsEventRequest
object
1 property 1 required
MaxXactId
string
DEPRECATION NOTICE: The manually-constructed pagination cursor is deprecated in favor of the explicit 'cursor' returned by object fetch requests. Please prefer…
FetchPaginationCursor
string
An opaque string to be used as a cursor for the next page of results, in order from latest to earliest. The string can be obtained directly from the cursor pro…
FetchEventsRequest
object
5 properties
FeedbackProjectLogsEventRequest
object
1 property 1 required
FetchLimit
integer
limit the number of traces fetched Fetch queries may be paginated if the total result size is expected to be large (e.g. projectlogs which accumulate over a lo…
InsertEventsResponse
object
1 property 1 required
FetchProjectLogsEventsResponse
object
2 properties 1 required
ObjectReferenceNullish
object
Indicates the event was copied from another object.
5 properties 3 required
SpanAttributes
object
Human-identifying attributes of the span, such as name, type, etc.
3 properties
FetchLimitParam
integer
limit the number of traces fetched Fetch queries may be paginated if the total result size is expected to be large (e.g. projectlogs which accumulate over a lo…
FunctionTypeEnum
string
The type of global function. Defaults to 'scorer'.
FeedbackProjectLogsItem
object
7 properties 1 required
Version
string
Retrieve a snapshot of events from a past time The version id is essentially a filter on the latest event transaction id. You can use the maxxactid returned by…
InsertProjectLogsEvent
object
A project logs event
22 properties
ProjectIdParam
string
Project id
FeedbackResponseSchema
object
1 property 1 required
SavedFunctionId
Optional function identifier that produced the classification
ProjectLogsEvent
object
27 properties 8 required
MaxRootSpanId
string
DEPRECATION NOTICE: The manually-constructed pagination cursor is deprecated in favor of the explicit 'cursor' returned by object fetch requests. Please prefer…
SpanType
string
Type of the span, for display purposes only

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

braintrust-logs-api-openapi.yml Raw ↑

Other APIs Braintrust publishes across the network.

Braintrust API
Braintrust Acls API
Braintrust AiSecrets API
Braintrust ApiKeys API
Braintrust CORS API
Braintrust CrossObject API
Braintrust Datasets API
Braintrust DatasetSnapshots API
Braintrust Environments API
Braintrust EnvVars API
Braintrust Evals API
Braintrust Experiments API
Where this information came from

This is an independent, third-party profile of Braintrust Logs API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.