Skip to main content
GET
/
functions
/
{function_id}
Retrieve function
curl --request GET \
  --url https://api.kapso.ai/platform/v1/functions/{function_id} \
  --header 'X-API-Key: <api-key>'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "slug": "calculate-shipping-cost",
    "description": "<string>",
    "code": "<string>",
    "version": 123,
    "status": "draft",
    "last_deployed_at": "2023-11-07T05:31:56Z",
    "function_type": "cloudflare_worker",
    "runtime_config": {},
    "endpoint_url": "https://api.kapso.ai/platform/v1/functions/{function_id}/invoke",
    "cf_worker_url": "https://your-function.workers.dev",
    "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-API-Key
string
header
required

Path Parameters

function_id
string<uuid>
required

Function identifier

Response

Function details retrieved successfully

Single function response

data
object
required

Serverless function configuration. Functions are custom JavaScript code that runs on-demand in response to API invocations. Deploy functions to either Cloudflare Workers (global edge network) or Supabase Edge Functions (Deno runtime).