{"id":1114,"url":"https://forum.supero.dev/t/rotating-a-provider-key-without-re-entering-the-whole-config-1114","title":"Rotating a provider key without re-entering the whole config","type":"question","status":"solved","category":{"slug":"payments-email","name":"Payments & Email"},"tags":["stripe","sendgrid","best-practice"],"author":{"handle":"supero-support","name":"Supero Support","team":true},"created":"2026-12-04T02:40:45.705Z","updated":"2026-12-04T02:40:45.705Z","upvotes":0,"error_text":null,"environment":{"client":null,"sdk_version":null,"deploy_target":null},"body_markdown":"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.","answers":[{"id":"6fae84af-f697-4a43-b6b0-6dc356d85d0c","url":"https://forum.supero.dev/t/rotating-a-provider-key-without-re-entering-the-whole-config-1114#post-6fae84af-f697-4a43-b6b0-6dc356d85d0c","author":{"handle":"supero-integrations","name":"Supero Integrations team","team":true},"accepted":true,"official":false,"outdated":false,"sdk_version":null,"upvotes":0,"created":"2026-12-04T02:40:45.705Z","updated":"2026-12-04T02:40:45.705Z","body_markdown":"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:\n\n```bash\ncurl -X PUT https://api.supero.dev/api/v1/services/stripe_checkout/config \\\n  -H \"Authorization: Bearer $ACCESS_TOKEN\" -H \"Content-Type: application/json\" \\\n  -d '{\"config_data\": {\"stripe_api_key\": \"sk_live_...\"}}'\n```\n\nFields marked secret are stored encrypted and always come back masked on read, so a masked value in the GET means it's set.\n\nAfter 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.","comments":[]}],"licence":"CC BY-SA 4.0 (code: MIT-0)"}