Reveal the stored client secret
POST
/api/settings/sso/client-secret/reveal
const url = 'https://forge.example.com/api/settings/sso/client-secret/reveal';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/settings/sso/client-secret/reveal \ --header 'Authorization: Bearer <token>'For an administrator who confirmed it is them, with a code or a passkey, in the last 10 minutes; otherwise 409 with stepUpNeeded. Each reveal is recorded in the activity log before the secret is opened. Never cached. 404 when no secret is stored.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
value
required
string
revealedAt
required
string format: date-time
Example generated
{ "value": "example", "revealedAt": "2026-04-15T12:00:00Z"}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}