List views
List out all views. The views are sorted by creation date, with the most recently-created views coming first
Authorization
Authorization
Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key]
to your HTTP request. You can create an API key in the Braintrust organization settings page.
In: header
Query Parameters
limit
integerLimit the number of objects to return
0
starting_after
stringPagination cursor id.
For example, if the final item in the last page you fetched had an id of foo
, pass starting_after=foo
to fetch the next page. Note: you may only pass one of starting_after
and ending_before
"uuid"
ending_before
stringPagination cursor id.
For example, if the initial item in the last page you fetched had an id of foo
, pass ending_before=foo
to fetch the previous page. Note: you may only pass one of starting_after
and ending_before
"uuid"
ids
Any properties in string, array<string>Filter search results to a particular set of object IDs. To specify a list of IDs, include the query param multiple times
view_name
stringName of the view to search for
view_type
stringType of table that the view corresponds to.
"projects" | "experiments" | "experiment" | "playgrounds" | "playground" | "datasets" | "dataset" | "prompts" | "tools" | "scorers" | "logs" | null
object_type
The object type that the ACL applies to
"organization" | "project" | "experiment" | "dataset" | "prompt" | "prompt_session" | "group" | "role" | "org_member" | "project_log" | "org_project"
object_id
The id of the object the ACL applies to
"uuid"
Returns a list of view objects
Create view
Create a new view. If there is an existing view with the same name as the one specified in the request, will return the existing view unmodified
Authorization
Authorization
Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key]
to your HTTP request. You can create an API key in the Braintrust organization settings page.
In: header
Request Body
application/json
OptionalAny desired information about the new view object
object_type
The object type that the ACL applies to
"organization" | "project" | "experiment" | "dataset" | "prompt" | "prompt_session" | "group" | "role" | "org_member" | "project_log" | "org_project"
object_id
The id of the object the view applies to
"uuid"
view_type
Type of table that the view corresponds to.
"projects" | "experiments" | "experiment" | "playgrounds" | "playground" | "datasets" | "dataset" | "prompts" | "tools" | "scorers" | "logs" | null
name
Name of the view
view_data
objectThe view definition
options
objectOptions for the view in the app
user_id
stringIdentifies the user who created the view
"uuid"
deleted_at
stringDate of role deletion, or null if the role is still active
"date-time"
Returns the new view object
Create or replace view
Create or replace view. If there is an existing view with the same name as the one specified in the request, will replace the existing view with the provided fields
Authorization
Authorization
Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key]
to your HTTP request. You can create an API key in the Braintrust organization settings page.
In: header
Request Body
application/json
OptionalAny desired information about the new view object
object_type
The object type that the ACL applies to
"organization" | "project" | "experiment" | "dataset" | "prompt" | "prompt_session" | "group" | "role" | "org_member" | "project_log" | "org_project"
object_id
The id of the object the view applies to
"uuid"
view_type
Type of table that the view corresponds to.
"projects" | "experiments" | "experiment" | "playgrounds" | "playground" | "datasets" | "dataset" | "prompts" | "tools" | "scorers" | "logs" | null
name
Name of the view
view_data
objectThe view definition
options
objectOptions for the view in the app
user_id
stringIdentifies the user who created the view
"uuid"
deleted_at
stringDate of role deletion, or null if the role is still active
"date-time"
Returns the new view object
Get view
Get a view object by its id
Authorization
Authorization
Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key]
to your HTTP request. You can create an API key in the Braintrust organization settings page.
In: header
Path Parameters
view_id
View id
"uuid"
Query Parameters
object_type
The object type that the ACL applies to
"organization" | "project" | "experiment" | "dataset" | "prompt" | "prompt_session" | "group" | "role" | "org_member" | "project_log" | "org_project"
object_id
The id of the object the ACL applies to
"uuid"
Returns the view object
Partially update view
Partially update a view object. Specify the fields to update in the payload. Any object-type fields will be deep-merged with existing content. Currently we do not support removing fields or setting them to null.
Authorization
Authorization
Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key]
to your HTTP request. You can create an API key in the Braintrust organization settings page.
In: header
Request Body
application/json
OptionalFields to update
object_type
The object type that the ACL applies to
"organization" | "project" | "experiment" | "dataset" | "prompt" | "prompt_session" | "group" | "role" | "org_member" | "project_log" | "org_project"
object_id
The id of the object the view applies to
"uuid"
view_type
stringType of table that the view corresponds to.
"projects" | "experiments" | "experiment" | "playgrounds" | "playground" | "datasets" | "dataset" | "prompts" | "tools" | "scorers" | "logs" | null
name
stringName of the view
view_data
objectThe view definition
options
objectOptions for the view in the app
user_id
stringIdentifies the user who created the view
"uuid"
Path Parameters
view_id
View id
"uuid"
Returns the view object
Delete view
Delete a view object by its id
Authorization
Authorization
Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key]
to your HTTP request. You can create an API key in the Braintrust organization settings page.
In: header
Request Body
application/json
OptionalAdditional parameters for the delete operation
object_type
The object type that the ACL applies to
"organization" | "project" | "experiment" | "dataset" | "prompt" | "prompt_session" | "group" | "role" | "org_member" | "project_log" | "org_project"
object_id
The id of the object the view applies to
"uuid"
Path Parameters
view_id
View id
"uuid"
Returns the deleted view object