curl --request GET \
--url https://app.kapso.ai/api/v1/functions \
--header 'X-API-Key: <api-key>'
{
"data": [
{
"id": "function-123abc",
"name": "Process Order",
"slug": "process-order",
"description": "Function to process incoming orders",
"code": "export default function handler(request) {\n return new Response(JSON.stringify({ status: 'success' }));\n}\n",
"version": 1,
"status": "deployed",
"last_deployed_at": "2023-11-07T05:31:56Z",
"runtime_config": {},
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_url": "https://app.kapso.ai/api/v1/functions/function-123abc/invoke",
"cf_worker_url": "https://kapso-functions.workers.dev/function-123abc",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
Returns a list of all functions for the authenticated project
curl --request GET \
--url https://app.kapso.ai/api/v1/functions \
--header 'X-API-Key: <api-key>'
{
"data": [
{
"id": "function-123abc",
"name": "Process Order",
"slug": "process-order",
"description": "Function to process incoming orders",
"code": "export default function handler(request) {\n return new Response(JSON.stringify({ status: 'success' }));\n}\n",
"version": 1,
"status": "deployed",
"last_deployed_at": "2023-11-07T05:31:56Z",
"runtime_config": {},
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_url": "https://app.kapso.ai/api/v1/functions/function-123abc/invoke",
"cf_worker_url": "https://kapso-functions.workers.dev/function-123abc",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
API key required for all endpoints
A list of functions
The response is of type object
.
Was this page helpful?