View an OpenID Connect Client Secret

Endpoint URL: {identityDomain}/{customerId}/config/clients/{oidcClientId}/secret


Returns the client secret for the specified OIDC client. Note that this is the only way to return the secret for a confidential or configuration client: the /{customerId}/config/clients/{oidcClientId} endpoint returns detailed information about an OIDC client, but does not return the client secret.

Manages client secrets for OpenID Connect (OIDC) confidential and configuration clients.  The GET method provides a way to return the secret for an OIDC client, while the PUT method enables you to reset a client secret . Resetting the secret lets periodically rotate client secrets or to change a client secret you believe might have been compromised.

Note that, when you change a client secret, the change takes effect immediately: there is no grace period in which both the old secret and the new secret are valid.

Respects the API Client Allow List: No


This endpoint requires token-based authentication. To obtain an access token, you must use a configuration client (using the client ID as the username and the client secret as the password) to access the /{customerId}/login/token endpoint. The access token returned from the /{customerId}/login/token endpoint is then used in the Authorization header of your API call.

For example, if you get back the access token Ki712dpGq5GPQcsxMHY6ShHY7wU_iTs0o9dPx4TEzf5yLIvddjnDVBJxjPDucf5YVB then your Authorization header would look like this when using Curl:

-H 'Authorization: Bearer Ki712dpGq5GPQcsxMHY6ShHY7wU_iTs0o9dPx4TEzf5yLIvddjnDVBJxjPDucf5YVB'

In Postman, set the Authorization Type to Bearer and use the access token as the value of the Token field.

Path Parameters

Path parameters that must be included in the request are listed in the following table:





Unique identifier of the customer associated with the OIDC client. 




Unique identifier of the OIDC client whose secret is being retrieved.

Sample Request (Curl)

The following command returns the client secret for the confidential client 6be73a3a-5bf0-4190-a0de-698aa409ff28:

curl -X GET \ \
  -H 'Authorization: Bearer Ki712dpGq5GPQcsxMHY6ShHY7wU_iTs0o9dPx4TEzf5yLIvddjnDVBJxjPDucf5YVB'


200 OK

If your call to this endpoint succeeds, you'll get back the new client secret:

    "secret": "7iv-pLUhFXOta3nN3aqIkOtEh0H_WRel9h65qE3JWgp9HVw4idRz9q5N3ZTCzFXmBvEEk79G6232U0utf5SKdA"