Braintrust Org Automations API

The OrgAutomations API from Braintrust — 2 operation(s) for orgautomations.

GitHub OpenAPI

Operations 6

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

POST /v1/org_automation Create an org automation · Create org_automation #
Ask an LLM
“How do I add a new organization automation without replacing one that already exists?”
“What happens if I create an org automation with a name that is already taken?”
Tell an agent
Create org automation {name} in {org_id} with config {config}.
Add a new org automation {name} to {org_id} using config {config}.
PUT /v1/org_automation Create or replace an org automation · Create or replace org_automation #
Ask an LLM
“How do I create an organization automation that replaces an existing one with the same name?”
“Can I overwrite an org automation by name?”
Tell an agent
Create or replace org automation {name} in {org_id} with config {config}.
Replace the existing org automation {name} in {org_id} using config {config}.
GET /v1/org_automation List organization automations · List org_automations #
Ask an LLM
“Which project automations are set up in my organization?”
“Can I find an org automation by name?”
Tell an agent
List org_automations in {org_name}.
Find the org automation named {org_automation_name}.
GET /v1/org_automation/{org_automation_id} Get an org automation · Get org_automation #
Ask an LLM
“How do I look up one organization automation by its ID?”
“Can I see the config of a single org automation?”
Tell an agent
Get org automation {org_automation_id}.
Show the configuration of org automation {org_automation_id}.
PATCH /v1/org_automation/{org_automation_id} Update an org automation · Partially update org_automation #
Ask an LLM
“How do I change the description of an existing org automation?”
“Can I modify only part of an organization automation's config?”
Tell an agent
Update the description of org automation {org_automation_id} to {description}.
Change the config of org automation {org_automation_id} to {config}.
DELETE /v1/org_automation/{org_automation_id} Delete an org automation · Delete org_automation #
Ask an LLM
“How do I delete an organization automation?”
“Can I remove an org automation by its ID?”
Tell an agent destructive · confirm first
Delete org automation {org_automation_id}.
Remove the organization automation {org_automation_id}.

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-orgautomations-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-orgautomations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.0
  title: Braintrust Org Automations 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: OrgAutomations
paths:
  /v1/org_automation:
    post:
      tags:
      - OrgAutomations
      security:
      - bearerAuth: []
      - {}
      operationId: postOrgAutomation
      description: Create a new org_automation. If there is an existing org_automation with the same name as the one specified in the request, will return the existing org_automation unmodified
      summary: Create org_automation
      requestBody:
        description: Any desired information about the new org_automation object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOrgAutomation'
      responses:
        '200':
          description: Returns the new org_automation object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAutomation'
        '400':
          description: The request was unacceptable, often due to missing a required parameter
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '401':
          description: No valid API key provided
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '403':
          description: The API key doesn’t have permissions to perform the request
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '429':
          description: Too many requests hit the API too quickly. We recommend an exponential backoff of your requests
          headers:
            Retry-After:
              schema:
                type: string
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '500':
          description: Something went wrong on Braintrust's end. (These are rare.)
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
    put:
      tags:
      - OrgAutomations
      security:
      - bearerAuth: []
      - {}
      operationId: putOrgAutomation
      description: Create or replace org_automation. If there is an existing org_automation with the same name as the one specified in the request, will replace the existing org_automation with the provided fields
      summary: Create or replace org_automation
      requestBody:
        description: Any desired information about the new org_automation object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOrgAutomation'
      responses:
        '200':
          description: Returns the new org_automation object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAutomation'
        '400':
          description: The request was unacceptable, often due to missing a required parameter
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '401':
          description: No valid API key provided
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '403':
          description: The API key doesn’t have permissions to perform the request
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '429':
          description: Too many requests hit the API too quickly. We recommend an exponential backoff of your requests
          headers:
            Retry-After:
              schema:
                type: string
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '500':
          description: Something went wrong on Braintrust's end. (These are rare.)
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
    get:
      operationId: getOrgAutomation
      tags:
      - OrgAutomations
      description: List out all org_automations. The org_automations are sorted by creation date, with the most recently-created org_automations coming first
      summary: List org_automations
      security:
      - bearerAuth: []
      - {}
      parameters:
      - $ref: '#/components/parameters/AppLimitParam'
      - $ref: '#/components/parameters/StartingAfter'
      - $ref: '#/components/parameters/EndingBefore'
      - $ref: '#/components/parameters/Ids'
      - $ref: '#/components/parameters/OrgAutomationName'
      - $ref: '#/components/parameters/OrgName'
      responses:
        '200':
          description: Returns a list of org_automation objects
          content:
            application/json:
              schema:
                type: object
                properties:
                  objects:
                    type: array
                    items:
                      $ref: '#/components/schemas/OrgAutomation'
                    description: A list of org_automation objects
                required:
                - objects
                additionalProperties: false
        '400':
          description: The request was unacceptable, often due to missing a required parameter
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '401':
          description: No valid API key provided
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '403':
          description: The API key doesn’t have permissions to perform the request
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '429':
          description: Too many requests hit the API too quickly. We recommend an exponential backoff of your requests
          headers:
            Retry-After:
              schema:
                type: string
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '500':
          description: Something went wrong on Braintrust's end. (These are rare.)
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
  /v1/org_automation/{org_automation_id}:
    get:
      operationId: getOrgAutomationId
      tags:
      - OrgAutomations
      description: Get a org_automation object by its id
      summary: Get org_automation
      security:
      - bearerAuth: []
      - {}
      parameters:
      - $ref: '#/components/parameters/OrgAutomationIdParam'
      responses:
        '200':
          description: Returns the org_automation object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAutomation'
        '400':
          description: The request was unacceptable, often due to missing a required parameter
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '401':
          description: No valid API key provided
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '403':
          description: The API key doesn’t have permissions to perform the request
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '429':
          description: Too many requests hit the API too quickly. We recommend an exponential backoff of your requests
          headers:
            Retry-After:
              schema:
                type: string
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '500':
          description: Something went wrong on Braintrust's end. (These are rare.)
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
    patch:
      operationId: patchOrgAutomationId
      tags:
      - OrgAutomations
      description: Partially update a org_automation 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.
      summary: Partially update org_automation
      security:
      - bearerAuth: []
      - {}
      parameters:
      - $ref: '#/components/parameters/OrgAutomationIdParam'
      requestBody:
        description: Fields to update
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchOrgAutomation'
      responses:
        '200':
          description: Returns the org_automation object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAutomation'
        '400':
          description: The request was unacceptable, often due to missing a required parameter
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '401':
          description: No valid API key provided
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '403':
          description: The API key doesn’t have permissions to perform the request
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '429':
          description: Too many requests hit the API too quickly. We recommend an exponential backoff of your requests
          headers:
            Retry-After:
              schema:
                type: string
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '500':
          description: Something went wrong on Braintrust's end. (These are rare.)
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
    delete:
      operationId: deleteOrgAutomationId
      tags:
      - OrgAutomations
      description: Delete a org_automation object by its id
      summary: Delete org_automation
      security:
      - bearerAuth: []
      - {}
      parameters:
      - $ref: '#/components/parameters/OrgAutomationIdParam'
      responses:
        '200':
          description: Returns the deleted org_automation object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAutomation'
        '400':
          description: The request was unacceptable, often due to missing a required parameter
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '401':
          description: No valid API key provided
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '403':
          description: The API key doesn’t have permissions to perform the request
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '429':
          description: Too many requests hit the API too quickly. We recommend an exponential backoff of your requests
          headers:
            Retry-After:
              schema:
                type: string
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
        '500':
          description: Something went wrong on Braintrust's end. (These are rare.)
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                nullable: true
components:
  schemas:
    OrgName:
      type: string
      description: Filter search results to within a particular organization
    StartingAfter:
      type: string
      format: uuid
      description: 'Pagination 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`'
    OrgAutomationIdParam:
      type: string
      format: uuid
      description: OrgAutomation id
    Ids:
      anyOf:
      - type: string
        format: uuid
      - type: array
        items:
          type: string
          format: uuid
      description: Filter search results to a particular set of object IDs. To specify a list of IDs, include the query param multiple times
    OrgAutomationName:
      type: string
      description: Name of the org_automation to search for
    RetentionObjectType:
      type: string
      enum:
      - project_logs
      - experiment
      - dataset
      description: The object type that the retention policy applies to
    CreateOrgAutomation:
      type: object
      properties:
        org_id:
          type: string
          format: uuid
          description: Unique identifier for the organization that the org automation belongs under
        name:
          type: string
          description: Name of the project automation
        description:
          type: string
          nullable: true
          description: Textual description of the project automation
        config:
          type: object
          properties:
            event_type:
              type: string
              enum:
              - retention
              description: The type of automation.
            object_type:
              $ref: '#/components/schemas/RetentionObjectType'
            retention_days:
              type: integer
              minimum: 0
              description: The number of days to retain the object
          required:
          - event_type
          - object_type
          - retention_days
          description: The configuration for the org automation rule
      required:
      - org_id
      - name
      - config
    AppLimitParam:
      type: integer
      nullable: true
      minimum: 0
      description: Limit the number of objects to return
    EndingBefore:
      type: string
      format: uuid
      description: 'Pagination 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`'
    PatchOrgAutomation:
      type: object
      properties:
        name:
          type: string
          nullable: true
          description: Name of the project automation
        description:
          type: string
          nullable: true
          description: Textual description of the project automation
        config:
          type: object
          nullable: true
          properties:
            event_type:
              type: string
              enum:
              - retention
              description: The type of automation.
            object_type:
              $ref: '#/components/schemas/RetentionObjectType'
            retention_days:
              type: integer
              minimum: 0
              description: The number of days to retain the object
          required:
          - event_type
          - object_type
          - retention_days
          description: The configuration for the org automation rule
    OrgAutomation:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the project automation
        org_id:
          type: string
          format: uuid
          description: Unique identifier for the organization that the org automation belongs under
        user_id:
          type: string
          nullable: true
          format: uuid
          description: Identifies the user who created the project automation
        created:
          type: string
          nullable: true
          format: date-time
          description: Date of project automation creation
        name:
          type: string
          description: Name of the project automation
        description:
          type: string
          nullable: true
          description: Textual description of the project automation
        config:
          type: object
          properties:
            event_type:
              type: string
              enum:
              - retention
              description: The type of automation.
            object_type:
              $ref: '#/components/schemas/RetentionObjectType'
            retention_days:
              type: integer
              minimum: 0
              description: The number of days to retain the object
          required:
          - event_type
          - object_type
          - retention_days
          description: The configuration for the org automation rule
      required:
      - id
      - org_id
      - name
      - config
  parameters:
    Ids:
      schema:
        $ref: '#/components/schemas/Ids'
      required: false
      description: Filter search results to a particular set of object IDs. To specify a list of IDs, include the query param multiple times
      name: ids
      in: query
    EndingBefore:
      schema:
        $ref: '#/components/schemas/EndingBefore'
      required: false
      description: 'Pagination 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`'
      name: ending_before
      in: query
    StartingAfter:
      schema:
        $ref: '#/components/schemas/StartingAfter'
      required: false
      description: 'Pagination 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`'
      name: starting_after
      in: query
    OrgAutomationIdParam:
      schema:
        $ref: '#/components/schemas/OrgAutomationIdParam'
      required: true
      description: OrgAutomation id
      name: org_automation_id
      in: path
    OrgAutomationName:
      schema:
        $ref: '#/components/schemas/OrgAutomationName'
      required: false
      description: Name of the org_automation to search for
      name: org_automation_name
      in: query
      allowReserved: true
    OrgName:
      schema:
        $ref: '#/components/schemas/OrgName'
      required: false
      description: Filter search results to within a particular organization
      name: org_name
      in: query
      allowReserved: true
    AppLimitParam:
      schema:
        $ref: '#/components/schemas/AppLimitParam'
      required: false
      description: Limit the number of objects to return
      name: limit
      in: query
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key or JWT
      description: '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](https://www.braintrustdata.com/app/settings?subroute=api-keys).'