Functions

Invoke function

Invoke a function.

post/v1/function/{function_id}/invoke

Path parameters

function_idstring uuid required

Function id

Function id

Request body

{"stackTrail":"paths:/v1/function/{function_id}/invoke:post:requestBody:content:application/json:schema:properties:input","oasType":"schema","type":"unknown","description":"Argument to the function, which can be any JSON serializable value","extensionFields":{"x-stainless-any":true}}
streamboolean

Whether to stream the response. If true, results will be returned in the Braintrust SSE format.

versionstring

The version of the function

Response

Function invocation response

{"stackTrail":"paths:/v1/function/{function_id}/invoke:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown","extensionFields":{"x-stainless-any":true}}

Changes