GET
/
functions
List all functions
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"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Response

200
application/json

A list of functions

The response is of type object.