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

# POST /call/CustomTask

`POST /call/CustomTask`

## Request body

- object
  - `input` string, required
  - `__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

- union
  - BookOrder
    - `orderId` string, required
    - `price` number, required
    - `quantity` integer, required
    - `title` string, required
  - FlightConfirmation
    - `arrivalTime` string, required
    - `confirmationNumber` string, required
    - `departureTime` string, required
    - `flightNumber` string, required
    - `seatNumber` string, required
  - GroceryReceipt
    - `items` union[], required
      - union
        - string
        - integer
        - number
    - `receiptId` string, required
    - `storeName` string, required
    - `totalAmount` number, required

## Changes

- **2025-09-08** `99302493e325` — 1 breaking, 3 warning, 1 info
  - added the new required request property `__baml_options__/client_registry/clients`
  - removed the request property `__baml_options__/client_registry/name`
  - removed the request property `__baml_options__/client_registry/options`
  - removed the request property `__baml_options__/client_registry/provider`
  - …1 more
- **2025-07-18** `a03327cea083` — 4 breaking
  - added the new required request property `__baml_options__/client_registry/name`
  - added the new required request property `__baml_options__/client_registry/options`
  - added the new required request property `__baml_options__/client_registry/provider`
  - the `__baml_options__/client_registry` request property type/format changed from ``/`` to `object`/``
- **2025-06-19** `a0c7a2bb989d` — 2 breaking, 2 warning
  - the request property `__baml_options__/client_registry` became required
  - the `__baml_options__/client_registry` request property type/format changed from `object`/`` to ``/``
  - removed the request property `__baml_options__/client_registry/clients`
  - removed the request property `__baml_options__/client_registry/primary`
- **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/CustomTask/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)
