POST
/
functions
/
{function_id}
/
invoke
Invoke a deployed function
curl --request POST \
  --url https://app.kapso.ai/api/v1/functions/{function_id}/invoke \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "action": "process",
  "data": {
    "orderId": 12345,
    "items": [
      {
        "sku": "ITEM-001",
        "quantity": 2
      }
    ]
  }
}'
{
  "status": "success",
  "processedAt": "2024-01-15T10:30:00Z",
  "orderId": 12345
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Path Parameters

function_id
string<uuid>
required

Body

application/json · object

Any JSON payload to send to the function

Response

200
application/json

Function executed successfully

The response from the function