POST
/
functions
/
{function_id}
/
secrets
Create a function secret
curl --request POST \
  --url https://app.kapso.ai/api/v1/functions/{function_id}/secrets \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "secret": {
    "name": "API_KEY",
    "value": "sk-1234567890abcdef"
  }
}'
{
  "data": {
    "message": "Secret created successfully"
  }
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Path Parameters

function_id
string<uuid>
required

Body

application/json

Response

201
application/json

Secret created successfully

The response is of type object.