POST
/api/apps/{app_id}/client-secretAuthenticatedGenerate 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 applicationsAuthentication & permissionsAuthenticated
Any authenticated user
- Accepted credentials
- Auth server session (refresh token cookie)
cookie "refresh_token_<auth_server_app_id>" - Access token (cookie)
cookie "access_token_<auth_server_app_id>" - Access token (Bearer)
Authorization: Bearer <JWT>
- Auth server session (refresh token cookie)
- Who may call
- Any authenticated user
Path parameters
| Name | Type | Description |
|---|---|---|
| app_id* | string | Client application id |
Responses
application/json
ClientSecretGenerationResponse
| Property | Type | Description |
|---|---|---|
| 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>'