List views
List out all views. The views are sorted by creation date, with the most recently-created views coming first
Authorization
AuthorizationMost 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
limitintegerLimit the number of objects to return
0starting_afterstringPagination 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_beforestringPagination 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"idsAny 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_namestringName of the view to search for
view_typestringType of table that the view corresponds to.
"projects" | "experiments" | "experiment" | "playgrounds" | "playground" | "datasets" | "dataset" | "prompts" | "tools" | "scorers" | "logs" | nullobject_typeThe object type that the ACL applies to
"organization" | "project" | "experiment" | "dataset" | "prompt" | "prompt_session" | "group" | "role" | "org_member" | "project_log" | "org_project"object_idThe 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
AuthorizationMost 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/jsonOptionalAny desired information about the new view object
object_typeThe object type that the ACL applies to
"organization" | "project" | "experiment" | "dataset" | "prompt" | "prompt_session" | "group" | "role" | "org_member" | "project_log" | "org_project"object_idThe id of the object the view applies to
"uuid"view_typeType of table that the view corresponds to.
"projects" | "experiments" | "experiment" | "playgrounds" | "playground" | "datasets" | "dataset" | "prompts" | "tools" | "scorers" | "logs" | nullnameName of the view
view_dataobjectThe view definition
optionsobjectOptions for the view in the app
user_idstringIdentifies the user who created the view
"uuid"deleted_atstringDate 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
AuthorizationMost 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/jsonOptionalAny desired information about the new view object
object_typeThe object type that the ACL applies to
"organization" | "project" | "experiment" | "dataset" | "prompt" | "prompt_session" | "group" | "role" | "org_member" | "project_log" | "org_project"object_idThe id of the object the view applies to
"uuid"view_typeType of table that the view corresponds to.
"projects" | "experiments" | "experiment" | "playgrounds" | "playground" | "datasets" | "dataset" | "prompts" | "tools" | "scorers" | "logs" | nullnameName of the view
view_dataobjectThe view definition
optionsobjectOptions for the view in the app
user_idstringIdentifies the user who created the view
"uuid"deleted_atstringDate 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
AuthorizationMost 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_idView id
"uuid"Query Parameters
object_typeThe object type that the ACL applies to
"organization" | "project" | "experiment" | "dataset" | "prompt" | "prompt_session" | "group" | "role" | "org_member" | "project_log" | "org_project"object_idThe 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
AuthorizationMost 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/jsonOptionalFields to update
object_typeThe object type that the ACL applies to
"organization" | "project" | "experiment" | "dataset" | "prompt" | "prompt_session" | "group" | "role" | "org_member" | "project_log" | "org_project"object_idThe id of the object the view applies to
"uuid"view_typestringType of table that the view corresponds to.
"projects" | "experiments" | "experiment" | "playgrounds" | "playground" | "datasets" | "dataset" | "prompts" | "tools" | "scorers" | "logs" | nullnamestringName of the view
view_dataobjectThe view definition
optionsobjectOptions for the view in the app
user_idstringIdentifies the user who created the view
"uuid"Path Parameters
view_idView id
"uuid"Returns the view object
Delete view
Delete a view object by its id
Authorization
AuthorizationMost 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/jsonOptionalAdditional parameters for the delete operation
object_typeThe object type that the ACL applies to
"organization" | "project" | "experiment" | "dataset" | "prompt" | "prompt_session" | "group" | "role" | "org_member" | "project_log" | "org_project"object_idThe id of the object the view applies to
"uuid"Path Parameters
view_idView id
"uuid"Returns the deleted view object