# Regenerate service account secret **POST** `/v1/service-accounts/{id}/secret/regenerate` **Operation ID**: `regenerateServiceAccountSecret` **Summary**: Regenerate service account secret Generates a new OAuth2 client secret for the service account. The old secret will be invalidated immediately. ## Tags - Service Accounts ## Parameters - **id** (required) - path - Type: string ## Responses ### 200 Secret regenerated successfully - **Content-Type**: `application/json` / string ### 401 Unauthorized ### 403 Forbidden ### 404 Service account not found