---
title: "POST /call/BuildTree"
method: POST
path: "/call/BuildTree"
---

# POST /call/BuildTree

`POST /call/BuildTree`

## Request body

- object
  - `input` BinaryNode, required
    - `data` integer, required
    - `left` BinaryNode — recursive
    - `right` BinaryNode — recursive
  - `__baml_options__` BamlOptions
    - `client_registry` object, required
      - `clients` ClientProperty[], required
        - `name` string, required
        - `provider` string, required
        - `options` object, required
      - `primary` string

## Response `200`

Successful operation

- Tree
  - `children` Forest, required
    - `trees` Tree[], required
  - `data` integer, required

## Changes

> 52 revisions in range; 47 could not be searched.

- **2025-03-11** `e28c8736c70e` — 2 info
  - added the new optional request property `__baml_options__/client_registry/clients/items/retry_policy`
  - the request property `__baml_options__/client_registry` became optional

[Change history](https://skmtc.dev/boundaryml/apis/baml-cli-serve/changes/call/BuildTree/post.md)

---

[API](https://skmtc.dev/boundaryml/apis/baml-cli-serve.md) · [All operations](https://skmtc.dev/boundaryml/apis/baml-cli-serve/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/boundaryml/baml-cli-serve/revisions/3f3e2166cbf3/schema)
