Execute a deployed serverless function with a custom JSON payload. The request body is forwarded directly to your function code.
Request payload structure is completely flexible - send any valid JSON that your function expects. Your function receives the payload as the request body and can parse it however needed.
Successful response behavior depends on invoke_response_mode:
passthrough, so Kapso forwards the function response body, success status code, and Content-Type directlywrapped, which preserves the legacy API shape and returns successful JSON results under dataThe function must be in ‘deployed’ status to be invoked. If the function is in ‘draft’ or ‘error’ status, the request will fail with 422 validation error.
Authentication:
X-API-Keypublic_endpoint=true) can be invoked without an API key404 from this routeExecution tracking:
invocation_id for debuggingError handling:
Documentation Index
Fetch the complete documentation index at: https://docs.kapso.ai/llms.txt
Use this file to discover all available pages before exploring further.
Function identifier
Payload to send to the function. Structure is completely flexible - send any valid JSON that your function expects. The payload will be forwarded to your function as the request body.
Function executed successfully. wrapped functions return successful JSON under data.
passthrough functions may also return other 2xx status codes and non-JSON content types depending on the function response.
Successful invoke output for functions using invoke_response_mode=passthrough.
Kapso forwards the upstream response body directly and preserves the upstream success status code and Content-Type.