cURL
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" } }
Creates a new secret for a deployed function. Secrets are encrypted environment variables accessible in your function code:
env.SECRET_NAME
Deno.env.get('SECRET_NAME')
Note: Secret values are write-only and cannot be retrieved after creation.
API key required for all endpoints
Show child attributes
Secret created successfully