Braintrust CORS API
The CORS API from Braintrust — 65 operation(s) for cors.
The CORS API from Braintrust — 65 operation(s) for cors.
openapi: 3.1.1
info:
version: 1.0.0
title: Braintrust Acls CORS 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:
- name: CORS
paths:
/v1/project:
options:
operationId: optionsProject
description: Enable CORS
summary: Enable CORS (`/v1/project`)
security: []
tags:
- CORS
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/project/{project_id}:
options:
operationId: optionsProjectId
description: Enable CORS
summary: Enable CORS (`/v1/project/{project_id}`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/ProjectIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/project_logs/{project_id}/insert:
options:
operationId: optionsProjectLogsIdInsert
description: Enable CORS
summary: Enable CORS (`/v1/project_logs/{project_id}/insert`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/ProjectIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/project_logs/{project_id}/fetch:
options:
operationId: optionsProjectLogsIdFetch
description: Enable CORS
summary: Enable CORS (`/v1/project_logs/{project_id}/fetch`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/ProjectIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/project_logs/{project_id}/feedback:
options:
operationId: optionsProjectLogsIdFeedback
description: Enable CORS
summary: Enable CORS (`/v1/project_logs/{project_id}/feedback`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/ProjectIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/experiment:
options:
operationId: optionsExperiment
description: Enable CORS
summary: Enable CORS (`/v1/experiment`)
security: []
tags:
- CORS
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/experiment/{experiment_id}:
options:
operationId: optionsExperimentId
description: Enable CORS
summary: Enable CORS (`/v1/experiment/{experiment_id}`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/ExperimentIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/experiment/{experiment_id}/insert:
options:
operationId: optionsExperimentIdInsert
description: Enable CORS
summary: Enable CORS (`/v1/experiment/{experiment_id}/insert`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/ExperimentIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/experiment/{experiment_id}/fetch:
options:
operationId: optionsExperimentIdFetch
description: Enable CORS
summary: Enable CORS (`/v1/experiment/{experiment_id}/fetch`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/ExperimentIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/experiment/{experiment_id}/feedback:
options:
operationId: optionsExperimentIdFeedback
description: Enable CORS
summary: Enable CORS (`/v1/experiment/{experiment_id}/feedback`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/ExperimentIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/experiment/{experiment_id}/summarize:
options:
operationId: optionsExperimentIdSummarize
description: Enable CORS
summary: Enable CORS (`/v1/experiment/{experiment_id}/summarize`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/ExperimentIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/dataset:
options:
operationId: optionsDataset
description: Enable CORS
summary: Enable CORS (`/v1/dataset`)
security: []
tags:
- CORS
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/dataset/{dataset_id}:
options:
operationId: optionsDatasetId
description: Enable CORS
summary: Enable CORS (`/v1/dataset/{dataset_id}`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/DatasetIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/dataset/{dataset_id}/insert:
options:
operationId: optionsDatasetIdInsert
description: Enable CORS
summary: Enable CORS (`/v1/dataset/{dataset_id}/insert`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/DatasetIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/dataset/{dataset_id}/fetch:
options:
operationId: optionsDatasetIdFetch
description: Enable CORS
summary: Enable CORS (`/v1/dataset/{dataset_id}/fetch`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/DatasetIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/dataset/{dataset_id}/feedback:
options:
operationId: optionsDatasetIdFeedback
description: Enable CORS
summary: Enable CORS (`/v1/dataset/{dataset_id}/feedback`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/DatasetIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/dataset/{dataset_id}/summarize:
options:
operationId: optionsDatasetIdSummarize
description: Enable CORS
summary: Enable CORS (`/v1/dataset/{dataset_id}/summarize`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/DatasetIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/prompt:
options:
operationId: optionsPrompt
description: Enable CORS
summary: Enable CORS (`/v1/prompt`)
security: []
tags:
- CORS
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/prompt/{prompt_id}:
options:
operationId: optionsPromptId
description: Enable CORS
summary: Enable CORS (`/v1/prompt/{prompt_id}`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/PromptIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/role:
options:
operationId: optionsRole
description: Enable CORS
summary: Enable CORS (`/v1/role`)
security: []
tags:
- CORS
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/role/{role_id}:
options:
operationId: optionsRoleId
description: Enable CORS
summary: Enable CORS (`/v1/role/{role_id}`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/RoleIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/group:
options:
operationId: optionsGroup
description: Enable CORS
summary: Enable CORS (`/v1/group`)
security: []
tags:
- CORS
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/group/{group_id}:
options:
operationId: optionsGroupId
description: Enable CORS
summary: Enable CORS (`/v1/group/{group_id}`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/GroupIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/acl:
options:
operationId: optionsAcl
description: Enable CORS
summary: Enable CORS (`/v1/acl`)
security: []
tags:
- CORS
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/acl/{acl_id}:
options:
operationId: optionsAclId
description: Enable CORS
summary: Enable CORS (`/v1/acl/{acl_id}`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/AclIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/acl/list_org:
options:
operationId: optionsAclListOrg
description: Enable CORS
summary: Enable CORS (`/v1/acl/list_org`)
security: []
tags:
- CORS
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/acl/acl/batch_update:
options:
operationId: optionsAclBatchUpdate
description: Enable CORS
summary: Enable CORS (`/v1/acl/acl/batch_update`)
security: []
tags:
- CORS
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/user:
options:
operationId: optionsUser
description: Enable CORS
summary: Enable CORS (`/v1/user`)
security: []
tags:
- CORS
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
Access-Control-Max-Age:
schema:
type: string
content: {}
'400':
description: The request was unacceptable, often due to missing a required parameter
content:
text/plain:
schema:
type: string
application/json:
schema:
nullable: true
/v1/user/{user_id}:
options:
operationId: optionsUserId
description: Enable CORS
summary: Enable CORS (`/v1/user/{user_id}`)
security: []
tags:
- CORS
parameters:
- $ref: '#/components/parameters/UserIdParam'
responses:
'200':
description: Response for CORS method
headers:
Access-Control-Allow-Credentials:
schema:
type: string
Access-Control-Allow-Headers:
schema:
type: string
Access-Control-Allow-Methods:
schema:
type: string
Access-Control-Allow-Origin:
schema:
type: string
# --- truncated at 32 KB (77 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/braintrust/refs/heads/main/openapi/braintrust-cors-api-openapi.yml