Skip to main content

Get Function by ID

Retrieve a specific function by its ID.

Path Parameters

string
required
The function identifier

Response

Returns the complete FunctionModel object including content and configuration.

Update Function

Update an existing function’s code and metadata.

Request Body

Same as Create Function request body.

Toggle Function

Toggle a function’s active state (enable/disable).

Response

Returns the updated FunctionModel with the new is_active value.

Toggle Global

Toggle a function’s global availability.

Response

Returns the updated FunctionModel with the new is_global value.

Delete Function

Delete a function and remove it from the system cache.

Response

boolean
true if deletion was successful, false otherwise

Valve Management

Get Function Valves

Retrieve the current valve configuration for a function.

Response

Returns a dictionary of valve values.

Get Valves Schema

Retrieve the valve schema definition (if the function defines a Valves class).

Response

Returns a JSON schema object with valve field definitions and options.

Update Function Valves

Update valve configuration values. The request body should match the valve schema.

User Valves

Get User Valves

Retrieve user-specific valve values for the authenticated user.

Get User Valves Schema

Retrieve the user valve schema definition (if the function defines a UserValves class).

Update User Valves

Update user-specific valve values. Stored in user settings.

Load Function from URL

Load a function from a GitHub URL. Supports both file and folder URLs.

Request Body

string
required
GitHub URL to the function file or folder. URLs are automatically converted to raw.githubusercontent.com format.

Response

string
Suggested function name extracted from the filename/folder
string
Function source code

Sync Functions

Synchronize multiple functions at once. Updates existing functions, creates new ones, and removes functions not in the list.

Request Body

array
required
Array of FunctionWithValvesModel objects to sync

Response

Returns the complete list of synced functions.

Authentication

Most endpoints require admin privileges. User valve endpoints only require verified user authentication.