We need to rotate our Stripe secret key. GET on the service config shows the key masked, so we can't copy the current config, edit it and PUT it back.
Rotating a provider key without re-entering the whole config
Common question, written up by the Supero team.
1 answer
You don't need to resend it. PUT /api/v1/services/{service_id}/config merges config_data into what's stored, so send only the field you're changing:
curl -X PUT https://api.supero.dev/api/v1/services/stripe_checkout/config \
-H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
-d '{"config_data": {"stripe_api_key": "sk_live_..."}}'Fields marked secret are stored encrypted and always come back masked on read, so a masked value in the GET means it's set.
After the change, run GET /api/v1/services/preflight?domain={domain}&project_uuid={project_uuid}. It reports, for every imported service, whether the required config fields are present. For providers it can safely probe, such as SendGrid and Twilio, it also runs a live auth check without returning the secret. It checks that each workflow's bound services are imported and configured as well.
Your answer
Know the answer? Sign in to post it. It takes an email address and a 6-digit code.
Sign in to answer