REST API - Custom Functions
Get Custom Function
Get a custom function by ID, including its source code, input schema, and status
GET
Get Custom Function
Retrieve a custom function by its ID, including the full source code, auto-extracted input schema, and current status.
Path Parameters
Response
Returns the fullCustomFunctionItem object.
Example Request
Response
Successful Response
Public-facing custom function response model.
Returned by list and get endpoints. Contains function metadata, status, auto-detected input schema, and source code.
To use a custom function as an agent tool:
- Add to attached_tools: {"id": "xpander-custom-functions", "operation_ids": ["<function_id>"]}
- Add to graph: {"item_id": "<function_id>", "name": "<function_name>", "type": "tool", "targets": []}

