REST API - Custom Functions
Execute Custom Function
Execute a custom function with the provided parameters
POST
Execute Custom Function
Execute a custom function directly with the provided parameters. The function must be in
ready status. Parameters are passed as key-value pairs matching the function’s input_schema.
Path Parameters
string
required
Unique identifier of the custom function to execute
Request Body
Pass parameters as key-value pairs matching the function’sinput_schema. The exact fields depend on the function definition.
Response
any
What
xpander_run_action returnedstring
The error text when the run failed, or an empty string
number
How long the run took, in seconds
Example Request
Notes
- The function must be in
readystatus — functions inanalysingorerrorstatus cannot be executed - Parameters must match the function’s
input_schema(see Get Custom Function) - Useful for testing functions before attaching them to agents

