List Functions
curl --request GET \
--url https://api.example.com/api/functions/{
"functions": [
{
"id": "<string>",
"user_id": "<string>",
"type": "<string>",
"name": "<string>",
"content": "<string>",
"meta": {},
"is_active": true,
"is_global": true,
"user": {},
"updated_at": 123,
"created_at": 123
}
]
}Functions & Tools
List Functions
Retrieve all functions or function list with user information
GET
/
api
/
functions
List Functions
curl --request GET \
--url https://api.example.com/api/functions/{
"functions": [
{
"id": "<string>",
"user_id": "<string>",
"type": "<string>",
"name": "<string>",
"content": "<string>",
"meta": {},
"is_active": true,
"is_global": true,
"user": {},
"updated_at": 123,
"created_at": 123
}
]
}Endpoints
Get Functions
curl -X GET "https://your-instance.com/api/functions/" \
-H "Authorization: Bearer YOUR_API_KEY"
Response
Array of function objects
Show FunctionResponse properties
Show FunctionResponse properties
Unique identifier for the function
ID of the user who created the function
Function type (e.g., “filter”, “action”)
Display name of the function
Whether the function is currently active
Whether the function is globally available
Unix timestamp of last update
Unix timestamp of creation
Get Function List (Admin)
curl -X GET "https://your-instance.com/api/functions/list" \
-H "Authorization: Bearer YOUR_ADMIN_API_KEY"
Response
Array of function objects with user details
Show FunctionUserResponse properties
Show FunctionUserResponse properties
Function identifier
Creator user ID
Function type
Function name
Function source code
Function metadata
Active status
Global availability
User information of the function creator
Last update timestamp
Creation timestamp
Export Functions (Admin)
curl -X GET "https://your-instance.com/api/functions/export?include_valves=true" \
-H "Authorization: Bearer YOUR_ADMIN_API_KEY"
Query Parameters
Include valve configurations in the export
Response
Returns an array ofFunctionModel or FunctionWithValvesModel objects depending on the include_valves parameter.
Authentication
All endpoints require authentication via bearer token. The/list and /export endpoints require admin privileges.⌘I