PUT/api/apps/{app_id}/client-secretAuthenticated

Rotate a client secret

Rotates (or creates) the client secret of a client application on demand. The previous secret is invalidated immediately. Returns the new plaintext secret exactly once. Requires management access; hardcoded apps cannot be configured.

operationId put_api_apps_app_id_client_secretClient applications

Authentication & permissionsAuthenticated

Any authenticated user

Accepted credentials
Who may call
Any authenticated user

Path parameters

NameTypeDescription
app_id*string

Client application id

Responses

application/json
ClientSecretGenerationResponse
PropertyTypeDescription
success*true
message*string
client_secret*string

The plaintext client secret: shown once, never retrievable again

JSONExample
"success"true
"message""string"
"client_secret""string"

Example request

bashcurl
curl -X PUT 'https://auth.schemavaults.com/api/apps/<app_id>/client-secret' \
  -b 'refresh_token_<auth_server_app_id>=<value>'