Get Custom Function
Get a custom function by ID, including its source code, input schema, and status
Path Parameters
Response
Returns the fullCustomFunctionItem object.
Example Request
Authorizations
API Key for authentication
Path Parameters
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": []}
Unique identifier of the custom function.
Human-readable name of the function.
Description of what the function does.
Auto-generated technical description from code analysis. Explains the function's logic, inputs, and outputs.
Current function status. 'analysing' = being analyzed after create/update, 'ready' = available for execution, 'error' = analysis failed (check analysis_error_details), 'draft' = not yet analyzed.
Resource limits for execution.
Auto-detected JSON schema of the function's input parameters. Generated during analysis from the function signature and type hints.
Python source code of the function. Only included in get-by-id responses, not in list.
Error details if the function analysis failed. Only present when status is 'error'.
Organization that owns this function.
ISO timestamp of when the function was created.

