Get a custom function by ID, including its source code, input schema, and status
CustomFunctionItem object.
API Key for authentication
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:
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.