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

Generate a client secret

Generates a client secret for a client application that has none, making it a confidential OAuth2 / OIDC client. Returns the plaintext secret exactly once. Requires management access; hardcoded apps cannot be configured.

operationId post_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 POST 'https://auth.schemavaults.com/api/apps/<app_id>/client-secret' \
  -b 'refresh_token_<auth_server_app_id>=<value>'