Skip to main content
POST
/
functions
/
{function_id}
/
deploy
Deploy function
curl --request POST \
  --url https://api.kapso.ai/platform/v1/functions/{function_id}/deploy \
  --header 'X-API-Key: <api-key>'
{
  "message": "Function deployment initiated",
  "function_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "deploying"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

function_id
string<uuid>
required

Function identifier

Response

Deployment initiated successfully (processing in background)

Async deployment response (HTTP 202 Accepted). Deployment happens in the background and may take 10-60 seconds. Poll GET /functions/{id} to check when status changes from 'draft' to 'deployed' (or 'error' if deployment fails).

message
string
required

Deployment confirmation message

Example:

"Function deployment initiated"

function_id
string<uuid>
required

ID of the function being deployed

status
string
required

Deployment status indicator

Example:

"deploying"