Set a secret
PUT
Create or replace one secret's value in an environment (and optionally one project); the value is never returned. A value for a known provider may be checked first: 409 OVERSCOPE_ACK_REQUIRED when it grants more than runs need (resend with acknowledge_risk), 422 VERIFY_FAILED when the provider rejects it. Runs paused waiting for this secret resume. Requires coding:secrets:write.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
key_name*stringMatch
^[A-Z][A-Z0-9_]{0,127}$customer_id?|nullapplication/json- body
acknowledge_risk?booleanDefault
falsedescription?string|nullenvironment?|nullkind?stringDefault
"env"Value in
"env""service"repository_id?|nullvalue*stringFormat
passwordRequest fulfilled, document follows
application/json- response
secret*verify_detail?string|nullcurl -X PUT 'https://api.syndai.ai/api/v1/external/coding/secrets/string' \ -H 'Content-Type: application/json' \ -d '{ "description": "Stripe test key", "kind": "env", "value": "sk_test_example"}'Example Response
{ "secret": { "description": "Stripe test key", "key_name": "STRIPE_SECRET_KEY", "kind": "env", "updated_at": "2026-10-27T09:00:00Z" }, "verify_detail": null}