Skip to content
Community forum

Rotating a provider key without re-entering the whole config

SolvedSupero SupportSupero team asked

Common question, written up by the Supero team.

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.

Link

1 answer

Accepted answer
Accepted 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:

bash
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.

Supero Integrations teamSupero team answered
Link

Your answer

Rotating a provider key without re-entering the whole config | Supero Community